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



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

    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
    --------------------------------------------------------------------------
    
    

  • 副教授

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



  • 我把它改成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
    


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

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

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


  • 副教授

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



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


  • 副教授

    加油加油


Log in to reply
 


CFD中文网 | 东岳流体学术 | 东岳流体商业 | 吉ICP备20003622号-1