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. 算例求助

算例求助

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

    我的模型是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 条回复 最后回复
  • 李东岳李 离线
    李东岳李 离线
    李东岳 管理员
    写于 最后由 编辑
    #2

    网格流动性是什么..

    http://dyfluid.com/index.html
    需要帮助debug算例的看这个 https://cfd-china.com/topic/8018

    1 条回复 最后回复

  • 登录

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