管道模型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 --------------------------------------------------------------------------
-
我把它改成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