Skip to content
  • 最新
  • 版块
  • 东岳流体
  • 随机看[请狂点我]
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(不使用皮肤)
  • 不使用皮肤
折叠
CFD中文网

CFD中文网

  1. CFD中文网
  2. OpenFOAM
  3. 管道模型RAS并行计算中遇到的问题

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

已定时 已固定 已锁定 已移动 OpenFOAM
7 帖子 2 发布者 5.3k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • 疾风GAVIN疾 离线
    疾风GAVIN疾 离线
    疾风GAVIN
    写于 最后由 编辑
    #1

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

    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 离线
    C 离线
    cccrrryyy 超神
    写于 最后由 编辑
    #2

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

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

    1 条回复 最后回复
  • 疾风GAVIN疾 离线
    疾风GAVIN疾 离线
    疾风GAVIN
    写于 最后由 编辑
    #3

    我把它改成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疾 离线
    疾风GAVIN
    写于 最后由 编辑
    #4

    刚刚我发现原因了,对称面不能命名为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 离线
    C 离线
    cccrrryyy 超神
    在 中回复了 疾风GAVIN 最后由 编辑
    #5

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

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

    疾风GAVIN疾 1 条回复 最后回复
  • 疾风GAVIN疾 离线
    疾风GAVIN疾 离线
    疾风GAVIN
    在 中回复了 cccrrryyy 最后由 编辑
    #6

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

    为真理而战

    1 条回复 最后回复
  • C 离线
    C 离线
    cccrrryyy 超神
    写于 最后由 编辑
    #7

    加油加油

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

    1 条回复 最后回复

  • 登录

  • 登录或注册以进行搜索。
  • 第一个帖子
    最后一个帖子
0
  • 最新
  • 版块
  • 东岳流体
  • 随机看[请狂点我]