Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    算例求助

    OpenFOAM
    2
    2
    239
    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.
    • L
      luca last edited by

      我的模型是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 Reply Last reply Reply Quote
      • 李东岳
        李东岳 管理员 last edited by

        网格流动性是什么..

        CFD课程 改成线上了 http://dyfluid.com/class.html
        CFD高性能服务器 http://dyfluid.com/servers.html

        1 Reply Last reply Reply Quote
        • First post
          Last post

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