CFD中文网

    CFD中文网

    • 登录
    • 搜索
    • 最新

    rhoCentralFoam发散,出现Maximum number of iterations exceeded

    OpenFOAM
    3
    6
    68
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • R
      Rachel0096 最后由 编辑

      在使用rhoCentralFoam求解器时,出现如下错误,想请教一下是什么原因呀
      a335b07d-1914-4623-ab8b-6e28a6c7154d-eeca5b78701ee46ac3785d6666411f4.png
      0923d2dc-92c5-4f49-a6b8-385356024680-image.png
      以下是我的一些设置:
      p:

      dimensions      [1 -1 -2 0 0 0 0];
      
      internalField   uniform 1;
      
      boundaryField
      {
          inlet
          {
              type            zeroGradient;
          }
      
          outlet
          {
              type            fixedValue;
              value           uniform 1;
          }
      
          bottom
          {
              type            zeroGradient;
          }
      
          top
          {
              type            zeroGradient;
          }
      
          defaultFaces
          {
              type            empty;
          }
      }
      
      // ************************************************************************* //
      

      T:

      dimensions      [0 0 0 1 0 0 0];
      
      internalField   uniform 1;
      
      boundaryField
      {
          inlet
          {
              type            fixedValue;
              value           uniform 1;
          }
      
          outlet
          {
              type            zeroGradient;
          }
      
          bottom
          {
              type            zeroGradient;
          }
      
          top
          {
              type            zeroGradient;
          }
      
          defaultFaces
          {
              type            empty;
          }
      }
      
      // ************************************************************************* //
      

      U:

      dimensions      [0 1 -1 0 0 0 0];
      
      internalField   uniform (3 0 0);
      
      boundaryField
      {
          inlet
          {
              type            fixedValue;
              value           uniform (3 0 0);
          }
      
          outlet
          {
              type            zeroGradient;
          }
      
          bottom
          {
              type            zeroGradient;
          }
      
          top
          {
              type            zeroGradient;
          }
      
          defaultFaces
          {
              type            empty;
          }
      }
      

      thermophysicalProperties:

      thermoType
      {
          type            hePsiThermo;
          mixture         pureMixture;
          transport       const;
          thermo          hConst;
          equationOfState perfectGas;
          specie          specie;
          energy          sensibleInternalEnergy;
      }
      
      // Note: these are the properties for a "normalised" inviscid gas
      //       for which the speed of sound is 1 m/s at a temperature of 1K
      //       and gamma = 7/5
      mixture
      {
          specie
          {
              nMoles          1;
              molWeight       11640.3;
          }
          thermodynamics
          {
              Cp              2.5;
              Hf              0;
          }
          transport
          {
              mu              0.00933;
              Pr              1;
          }
      }
      
      R 1 条回复 最后回复 回复 引用
      • R
        Rachel0096 @Rachel0096 最后由 编辑

        看了云图以后发现,应该是温度值出现极高值后导致计算发散,不知道应该如何修改呢?
        ccb19c34-bf04-476d-81ee-bd77d93c6545-d0119da205c07400b7bd634c42a00b6.png

        尚 1 条回复 最后回复 回复 引用
        • 李东岳
          李东岳 管理员 最后由 编辑

          就是发散了,这个也不太好debug ..

          CFD高性能服务器 http://dyfluid.com/servers.html

          1 条回复 最后回复 回复 引用
          • 尚
            尚善若水 @Rachel0096 最后由 编辑

            @Rachel0096 rhoCentralFoam步长不能太大,先调小试试看

            R 1 条回复 最后回复 回复 引用
            • R
              Rachel0096 @尚善若水 最后由 Rachel0096 编辑

              @尚善若水 已经试过将时间步长调小,但作用不是特别大,最后还是会出现上述问题:zoule: :zoule: :zoule:

              R 1 条回复 最后回复 回复 引用
              • R
                Rachel0096 @Rachel0096 最后由 编辑

                应该是我的边界条件设置的不合理,我修改了物性和边界条件以后,目前是能继续算下去的。
                贴一下我参考的网址:
                https://www.researchgate.net/post/Can-anyone-see-this-problem-in-openfoamcan-anyone-solve-it/1

                1 条回复 最后回复 回复 引用
                • First post
                  Last post