Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    foam-extend 4.0 浸没边界法 interIbFoam 边界条件报错

    OpenFOAM
    2
    5
    720
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      ThomasShi last edited by

      我用interIbFoam求解有结构物的明渠流问题,在应用了k-epsilon湍流模型后,nut文件的浸没边界条件出现如下报错:

      --> FOAM FATAL ERROR:
      
          evaluate() cannot be called for a genericFvPatchField (actual type immersedBoundaryWallFunction)
          on patch vegetation of field nut in file "/mnt/g/foam/thomaschi-4.0/run/cylBumpInterIbFoam/0/nut"
          You are probably trying to solve for a field with a generic boundary condition.
      
          From function genericFvPatchField<Type>::evaluate(const Pstream::commsTypes)
          in file fields/fvPatchFields/basic/generic/genericFvPatchField.C at line 760.
      
      FOAM exiting
      

      有人知道是什么原因吗?该怎么解决?

      1 Reply Last reply Reply Quote
      • bestucan
        bestucan 版主 副教授 last edited by

        @ThomasShi 在 foam-extend 4.0 浸没边界法 interIbFoam 边界条件报错 中说:

        evaluate() cannot be called for a genericFvPatchField

        这个函数是你自己定义的么?

        滚来滚去……~(~o ̄▽ ̄)~o 滚来滚去都不能让大家看出来我不是老师么 O_o

        异步沟通方式(《posting style》from wiki)(下载后打开):
        https://www.jianguoyun.com/p/Dc52X2sQsLv2BRiqnKYD
        提问的智慧(github在gitee的镜像):
        https://gitee.com/bestucan/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md

        T 1 Reply Last reply Reply Quote
        • T
          ThomasShi @bestucan last edited by

          @bestucan 您好,感谢回帖。那个并不是我自己定义的。我只是参照simpleIbFoam的湍流算例里的边界条件文件,给我的浸没边界加了同样的边界条件。因为interIbFoam只有层流的算例没有湍流的,所以我只好照着别的类似的来做的,结果出现了边界条件的报错。nut文件浸没边界的边界条件设置如下

          immersedBoundary
          {
                  type            immersedBoundaryWallFunction;
                  patchType       immersedBoundary;
                  refValue        uniform 1e-10;
                  refGradient     uniform 0;
                  fixesValue      false;
                  setDeadCellValue yes;
                  deadCellValue   1e-10;
                  value           nonuniform 0();
          }
          
          bestucan 1 Reply Last reply Reply Quote
          • bestucan
            bestucan 版主 副教授 @ThomasShi last edited by

            @ThomasShi 这个里有interIbFoam使用湍流的讲解,2.3.3。在里面搜immersedBoundaryWall,也可以搜到相关设置。
            http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2016/MohsenIrannezhad/Final_Report.pdf

            这个错误和你的很像,只是函数不一样,兴许他用的不是k~e
            https://www.cfd-online.com/Forums/openfoam-solving/231984-immersed-boundary-method-error-turbulence-model.html
            边界条件没对上,这个讲边界条件很清楚:
            https://technodocbox.com/3D_Graphics/67910317-Immersed-boundary-method-in-foam.html

            滚来滚去……~(~o ̄▽ ̄)~o 滚来滚去都不能让大家看出来我不是老师么 O_o

            异步沟通方式(《posting style》from wiki)(下载后打开):
            https://www.jianguoyun.com/p/Dc52X2sQsLv2BRiqnKYD
            提问的智慧(github在gitee的镜像):
            https://gitee.com/bestucan/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md

            T 1 Reply Last reply Reply Quote
            • T
              ThomasShi @bestucan last edited by

              @bestucan 万分感谢!

              1 Reply Last reply Reply Quote
              • First post
                Last post

              CFD中文网 | 东岳流体 | 京ICP备15017992号-2