CFD中文网

    CFD中文网

    • 登录
    • 搜索
    • 最新

    管道模型RAS并行计算中遇到的问题

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

      因为模型的网格量比较大,所以我选择并行计算,但在过程中遇到了一些问题,之前也没有遇到过,在论坛上向大家请教一下为什么这样?应该怎么进行修正?谢谢!

      decomposeParDict

      numberOfSubdomains  3;
      
      /*
          Main methods are:
          1) Geometric: "simple"; "hierarchical", with ordered sorting, e.g. xyz, yxz
          2) Scotch: "scotch", when running in serial; "ptscotch", running in parallel
      */
      
      method              scotch;
      
      simpleCoeffs
      {
          n               (4 2 1); // total must match numberOfSubdomains
          delta           0.001;
      }
      
      hierarchicalCoeffs
      {
          n               (4 2 1); // total must match numberOfSubdomains
          delta           0.001;
          order           xyz;
      }
      
      

      运行的代码

      mpirun -np 2 rhoSimpleFoam parallel
      

      报错

      --> FOAM FATAL ERROR: 
      Wrong number of arguments, expected 0 found 1
      
      --> FOAM FATAL ERROR: 
      Wrong number of arguments, expected 0 found 1
      
      
      FOAM exiting
      
      
      FOAM exiting
      
      -------------------------------------------------------
      Primary job  terminated normally, but 1 process returned
      a non-zero exit code.. Per user-direction, the job has been aborted.
      -------------------------------------------------------
      --------------------------------------------------------------------------
      mpirun detected that one or more processes exited with non-zero status, thus causing
      the job to be terminated. The first process to do so was:
      
        Process name: [[65460,1],1]
        Exit code:    1
      --------------------------------------------------------------------------
      
      

      为真理而战

      1 条回复 最后回复 回复 引用
      • C
        cccrrryyy 教授 最后由 编辑

        你用scotch分了3块,但是mpirun的-np是2。

        I don't want to survive, I want to thrive.

        1 条回复 最后回复 回复 引用
        • 疾风GAVIN
          疾风GAVIN 最后由 编辑

          我把它改成3之后还是一样的报错,后面我是了一下不并行进行计算,它显示的报错是
          :

          --> FOAM FATAL IO ERROR: 
          inconsistent patch and patchField types for 
              patch type symmetry and patchField type symmetryPlane
          
          file: /home/jifeng/OpenFOAM/jifeng-6/run/Isolater-Huang/Isolater-Huang_1/0/alphat.boundaryField.symmetryPlane from line 59 to line 59.
          
              From function static Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&, const Foam::dictionary&) [with Type = double]
              in file /home/jifeng/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 160.
          
          

          但是我的alphat以及其他的初始条件以及polyMesh文件夹里面的boundary里面的symmetryPlane边界面都是用的是symmetry,不知道为什么它会说alphat里面会

          inconsistent patch and patchField types for 
              patch type symmetry and patchField type symmetryPlane
          

          为真理而战

          1 条回复 最后回复 回复 引用
          • 疾风GAVIN
            疾风GAVIN 最后由 编辑

            刚刚我发现原因了,对称面不能命名为symmetryPlane,不然在运行的时候会报错:

            inconsistent patch and patchField types for 
                patch type symmetry and patchField type symmetryPlane
            

            我把对称面改称sym后就可以开始计算了!
            2020-02-25 00-56-26屏幕截图.png

            为真理而战

            C 1 条回复 最后回复 回复 引用
            • C
              cccrrryyy 教授 @疾风GAVIN 最后由 编辑

              @疾风GAVIN symmetryPlane的要求好像特别严格,我以前也碰到过,后来再也不用symmetryPlane,一律用symmetry

              I don't want to survive, I want to thrive.

              疾风GAVIN 1 条回复 最后回复 回复 引用
              • 疾风GAVIN
                疾风GAVIN @cccrrryyy 最后由 编辑

                @cccrrryyy 嗯嗯是的,symmetryPlane要求对称面的normal必须一样,有些时候就算差的很小不影响计算,但是它也会报错的,我后面修改成symmetry后,发现并行计算也可以进行了,问题应该就是在symmetry和symmetryPlane的区别上。谢谢您~

                为真理而战

                1 条回复 最后回复 回复 引用
                • C
                  cccrrryyy 教授 最后由 编辑

                  加油加油

                  I don't want to survive, I want to thrive.

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