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
12 帖子 4 发布者 13.0k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • M 离线
    M 离线
    mark
    写于 最后由 李东岳 编辑
    #3
    /*--------------------------------*- 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      fvSolution;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    solvers
    {
        alpha.fuel
        {
            nAlphaCorr      1;
            nAlphaSubCycles 1;
            cAlpha          1;
        }
    
        ".*(rho|rhoFinal)"
        {
            solver          diagonal;
        }
    
        pcorr
        {
            solver          GAMG;
            preconditioner
            {
                preconditioner  GAMG;
                tolerance       1e-05;
                relTol          0;
                smoother        GaussSeidel;
                nPreSweeps      0;
                nPostSweeps     2;
                nFinestSweeps   2;
                cacheAgglomeration true;
                nCellsInCoarsestLevel 10;
                agglomerator    faceAreaPair;
                mergeLevels     1;
            }
            tolerance       1e-05;
            relTol          0;
            maxIter         100;
        }
    
        p_rgh
        {
            solver          GAMG;
            tolerance       1e-07;
            relTol          0.01;
            smoother        GaussSeidel;
            nPreSweeps      0;
            nPostSweeps     2;
            nFinestSweeps   2;
            cacheAgglomeration true;
            nCellsInCoarsestLevel 10;
            agglomerator    faceAreaPair;
            mergeLevels     1;
        }
    
        p_rghFinal
        {
            solver          GAMG;
            preconditioner
            {
                preconditioner  GAMG;
                tolerance       1e-07;
                relTol          0;
                nVcycles        2;
                smoother        GaussSeidel;
                nPreSweeps      2;
                nPostSweeps     2;
                nFinestSweeps   2;
                cacheAgglomeration true;
                nCellsInCoarsestLevel 10;
                agglomerator    faceAreaPair;
                mergeLevels     1;
            }
            tolerance       1e-07;
            relTol          0;
            maxIter         20;
        }
    
        "(U|T|k|B|nuTilda).*"
        {
            solver          smoothSolver;
            smoother        symGaussSeidel;
            tolerance       1e-08;
            relTol          0;
        }
    "e.*"
        {
            solver          smoothSolver;
            smoother        symGaussSeidel;
            tolerance       1e-8;
            relTol          0;
            minIter         1;
        }
    }
    
    PIMPLE
    {
        momentumPredictor yes;
        transonic       yes;
        nOuterCorrectors 5;
        nCorrectors     1;
        nNonOrthogonalCorrectors 2;
        residualControl
        {
            U
            {
              tolerance 1e-07;
              relTol    0;
            }
            p_rgh
            {
              tolerance 1e-07;
              relTol    0;
            }
            T
            {
              tolerance 1e-07;
              relTol    0;
            }
            k
            {
              tolerance 1e-07;
              relTol    0;
            }
    }
    
    relaxtionFactors
    {
        fields
        {
           p_rgh 0.4;
           p_rghFinal 1;
        }
        equations
        {
           "(U|T|k|B|nuTilda)" 0.4;
           "(U|T|k|B|nuTilda)Final" 1;
        }
    }
    // ************************************************************************* //
    
    1 条回复 最后回复
  • 李东岳李 在线
    李东岳李 在线
    李东岳 管理员
    写于 最后由 编辑
    #4

    Much appreciated if you provide more information and enforce the operation depicted in this thread.

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

    1 条回复 最后回复
  • M 离线
    M 离线
    mark
    写于 最后由 mark 编辑
    #5

    0_1464929999007_QQ截图20160603130508.png
    大口进,小口出

    1 条回复 最后回复
  • M 离线
    M 离线
    mark
    写于 最后由 wwzhao 编辑
    #6

    速度

    /*--------------------------------*- 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;
        object      U;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    dimensions      [0 1 -1 0 0 0 0];
    
    internalField   uniform (0 0 0);
    
    boundaryField
    {
        INLET
        {
            type            zeroGradient;
        }
    
        WALL
        {
            type            zeroGradient;
        }
    
        OUTLET
        {
            type            zeroGradient;
        }
    }
    
    // ************************************************************************* //
    
    1 条回复 最后回复
  • M 离线
    M 离线
    mark
    写于 最后由 wwzhao 编辑
    #7
    /*--------------------------------*- 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;
        object      p;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    dimensions      [1 -1 -2 0 0 0 0];
    
    internalField   uniform 3e+06;
    
    boundaryField
    {
        INLET
        {
            type            fixedValue;
            value           uniform 100e+6;
        }
    
        WALL
        {
            type            zeroGradient;
        }
    
        OUTLET
        {
            type            zeroGradient;
        }
    }
    
    // ************************************************************************* //
    
    1 条回复 最后回复
  • M 离线
    M 离线
    mark
    写于 最后由 wwzhao 编辑
    #8
    /*------------none--------------------*- 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;
        object      p_rgh;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    dimensions      [1 -1 -2 0 0 0 0];
    
    internalField   uniform 3e+06;
    
    boundaryField
    {
        INLET
        {
            type            fixedValue;
            value           uniform 100e+06;
        }
    
        WALL
        {
            type            zeroGradient;
        }
    
        OUTLET
        {
            type            zeroGradient;
        }
    }
    
    // ************************************************************************* //
    
    1 条回复 最后回复
  • M 离线
    M 离线
    mark
    写于 最后由 wwzhao 编辑
    #9
    /*--------------------------------*- 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;
        object      alpha.fuel;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    dimensions      [0 0 0 0 0 0 0];
    
    internalField   uniform 0;
    
    boundaryField
    {
        INLET
        {
            type            fixedValue;
            value           uniform 1;
        }
    
        WALL
        {
            type            zeroGradient;
        }
    
        OUTLET
        {
            type            zeroGradient;
        }
    }
    
    // ************************************************************************* //
    
    1 条回复 最后回复
  • M 离线
    M 离线
    mark
    写于 最后由 编辑
    #10

    速度和压力设置不对?

    evensunE 1 条回复 最后回复
  • chpjz0391C 离线
    chpjz0391C 离线
    chpjz0391
    写于 最后由 编辑
    #11

    请把log文件的信息贴出来。

    1 条回复 最后回复
  • evensunE 离线
    evensunE 离线
    evensun
    在 中回复了 mark 最后由 编辑
    #12

    @mark 今天李老师在课上说,如果进出口速度都设为零梯度的话,进出口的压力好像是都需要给定的

    1 条回复 最后回复

  • 登录

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