CFD中文网

    CFD中文网

    • 登录
    • 搜索
    • 最新

    算例求助

    OpenFOAM
    2
    2
    357
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • L
      luca 最后由 编辑

      我的模型是y型通道。但是气体在刚刚通入管道之后就发散了,老师说是网格流动性有问题,可是这方面应该怎么改,下面是我的相关文件,求各位老师指点。
      这是p文件和u文件以及时间步长文件

      /*--------------------------------*- C++ -*----------------------------------*\
      | =========                 |                                                 |
      | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
      |  \\    /   O peration     | Version:  2.4.0                                 |
      |   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
      |    \\/     M anipulation  |                                                 |
      \*---------------------------------------------------------------------------*/
      FoamFile
      {
          version     2.0;
          format      ascii;
          class       volScalarField;
          location    "0";
          object      p;
      }
      // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
      
      dimensions      [ 1 -1 -2 0 0 0 0 ];
      
      internalField   uniform 101325;
      
      boundaryField
      {
          fuel
          {
             type            fixedValue;
             value           uniform 101325;
          }
          air
          {
             type            fixedValue;
             value           uniform 101325;
          }
          outlet
          {
              type            fixedValue;
              value           uniform 101325;
          }
          front
          {
              type            empty;
          }
          back
          {
              type            empty;
          }
          lowwall
          {
              type            zeroGradient;
              value           uniform 0;
          }
          upwall
          {
              type            zeroGradient;
              value           uniform 0;
          }
         otherwall
         {
             type            zeroGradient;
             value           uniform 0;
         }
      }
      
      
      /*--------------------------------*- C++ -*----------------------------------*\
      | =========                 |                                                 |
      | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
      |  \\    /   O peration     | Version:  2.4.0                                 |
      |   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
      |    \\/     M anipulation  |                                                 |
      \*---------------------------------------------------------------------------*/
      FoamFile
      {
          version     2.0;
          format      ascii;
          class       volVectorField;
          location    "0";
          object      U;
      }
      // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
      
      dimensions      [ 0 1 -1 0 0 0 0 ];
      
      internalField   uniform ( 4 0 0 );
      
      boundaryField
      {
          fuel
          {
              type            fixedValue;
              value           uniform ( 0.25 -0.25 0 );
          }
           air
          {
            type              fixedValue;
              value           uniform ( 0.25  0.25 0 );
           }
          outlet
          {
              type            zeroGradient;
          }
          front
          {
              type            empty;
          }
          back
          {
              type            empty;
          }
          otherwall
           {
              type            fixedValue;
              value           uniform ( 0 0 0 );
          }
          lowwall
          {
              type            fixedValue;
              value           uniform ( 0 0 0 );
          }
          upwall
          {
              type            fixedValue;
              value           uniform ( 0 0 0 );
          }
      }
      
      /*--------------------------------*- C++ -*----------------------------------*\
      | =========                 |                                                 |
      | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
      |  \\    /   O peration     | Version:  2.4.0                                 |
      |   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
      |    \\/     M anipulation  |                                                 |
      \*---------------------------------------------------------------------------*/
      FoamFile
      {
          version     2.0;
          format      ascii;
          class       dictionary;
          location    "system";
          object      controlDict;
      }
      // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
      
      application     MDreactingLMFoam;
      
      startFrom       latestTime;
      
      startTime       0;
      
      stopAt          endTime;
      
      endTime         0.05;
      
      deltaT          1e-4;
      
      writeControl    adjustableRunTime;
      
      writeInterval   1e-4;
      
      purgeWrite      0;
      
      writeFormat     ascii;
      
      writePrecision  6;
      
      writeCompression off;
      
      timeFormat      general;
      
      timePrecision   6;
      
      runTimeModifiable true;
      
      adjustTimeStep  yes;
      
      maxCo           0.1;
      
      1 条回复 最后回复 回复 引用
      • 李东岳
        李东岳 管理员 最后由 编辑

        网格流动性是什么..

        线上CFD课程开始报名:http://www.dyfluid.com/class.html

        CFD高性能服务器 http://dyfluid.com/servers.html

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