Updated tutorials to converge pressure during PIMPLE loop to avoid phase-fraction unboundedness which limits thermodynamics convergence.
92 lines
2.1 KiB
C++
92 lines
2.1 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: dev |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object fvSolution;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
solvers
|
|
{
|
|
alpha.air
|
|
{
|
|
nAlphaCorr 1;
|
|
nAlphaSubCycles 2;
|
|
}
|
|
|
|
p_rgh
|
|
{
|
|
solver GAMG;
|
|
smoother DIC;
|
|
nPreSweeps 0;
|
|
nPostSweeps 2;
|
|
nFinestSweeps 2;
|
|
cacheAgglomeration true;
|
|
nCellsInCoarsestLevel 10;
|
|
agglomerator faceAreaPair;
|
|
mergeLevels 1;
|
|
tolerance 1e-8;
|
|
relTol 0;
|
|
}
|
|
|
|
p_rghFinal
|
|
{
|
|
$p_rgh;
|
|
relTol 0;
|
|
}
|
|
|
|
"U.*"
|
|
{
|
|
solver smoothSolver;
|
|
smoother symGaussSeidel;
|
|
tolerance 1e-5;
|
|
relTol 0;
|
|
minIter 1;
|
|
}
|
|
|
|
"e.*"
|
|
{
|
|
solver smoothSolver;
|
|
smoother symGaussSeidel;
|
|
tolerance 1e-8;
|
|
relTol 0;
|
|
minIter 1;
|
|
}
|
|
|
|
"(k|epsilon|Theta).*"
|
|
{
|
|
solver smoothSolver;
|
|
smoother symGaussSeidel;
|
|
tolerance 1e-7;
|
|
relTol 0;
|
|
minIter 1;
|
|
}
|
|
}
|
|
|
|
PIMPLE
|
|
{
|
|
nOuterCorrectors 3;
|
|
nCorrectors 1;
|
|
nNonOrthogonalCorrectors 0;
|
|
}
|
|
|
|
relaxationFactors
|
|
{
|
|
equations
|
|
{
|
|
".*" 1;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|