CFD中文网

    CFD中文网

    • 登录
    • 搜索
    • 最新

    平板降膜边界条件设定(interFoam求解器)

    OpenFOAM
    1
    1
    1213
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 飞
      飞火流星jyj 最后由 李东岳 编辑

      0_1512907622643_2.jpg
      fluent中设置是这样的:
      Boundary A, B and C, D
      are set as periodic boundary conditions. Boundary E is set as no slip
      wall. Boundary F is set as opening pressure boundary.
      不知道在OF怎样设置好

      FoamFile
      {
          version     2.0;
          format      ascii;
          class       volScalarField;
          object      p_rgh;
      }
      // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
      
      dimensions      [1 -1 -2 0 0 0 0];
      
      internalField   uniform 100000;
      
      boundaryField
      {
          inlet
          {
              type cyclic;
          }
          gasinlet
          {
              type cyclic;
          }
          outlet1
          {
              type cyclic;
          }
          outlet2
          {
              type cyclic;
          }
          left
          {
             type cyclic;
          }
          right
          {
              type cyclic;
          }
          TWall
          {
             type            fixedFluxPressure;
          }
          
          atmosphere
          {
              type            totalPressure;
              p0              uniform 100000;
              U               U;
              phi             phi;
              rho             rho;
              psi             none;
              gamma           1;
              value           uniform 100000;
          }
      }
      dimensions      [0 1 -1 0 0 0 0];
      
      internalField   uniform (0 0 0);
      
      boundaryField
      {
          inlet
          {
              type cyclic;
          }
          gasinlet
          {
             type cyclic;
          }
         outlet1
          {
             type cyclic;
          }
          outlet2
          {
             type cyclic;
          } 
          left
          {
            type cyclic;
          }
          right
          {
            type cyclic;
          }
          TWall
          {
             type            fixedValue;
             value           uniform (0 0 0);
          }
          
          atmosphere
          {
             type            pressureInletOutletVelocity;
             value           uniform (0 0 0);
          }
      }
      

      体积项用setField,但这样不对,求大神帮忙:big_mouth:

      十分感谢

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