算例求助
-
我的模型是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;