The new optional PIMPLE control transportPredictionFirst is used to select if the transport modelling predictor is executed ever PIMPLE iteration or only on the first, which is the default. Also the transportCorr() function has been renamed correctTransport() for consistency and the tutorials updated to use the new control name transportCorrectionFinal instead of the previous name turbOnFinalIterOnly; support for turbOnFinalIterOnly is maintained for backwards-compatibility.
87 lines
1.7 KiB
C++
87 lines
1.7 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object fvSolution;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
solvers
|
|
{
|
|
p
|
|
{
|
|
solver PCG;
|
|
preconditioner DIC;
|
|
tolerance 1e-07;
|
|
relTol 0.01;
|
|
}
|
|
|
|
pFinal
|
|
{
|
|
$p;
|
|
relTol 0;
|
|
}
|
|
|
|
"(rho|U|e|k|epsilon|omega)"
|
|
{
|
|
solver smoothSolver;
|
|
smoother symGaussSeidel;
|
|
tolerance 1e-06;
|
|
relTol 0.1;
|
|
}
|
|
|
|
"(rho|U|e|k|epsilon|omega)Final"
|
|
{
|
|
$U;
|
|
relTol 0;
|
|
}
|
|
}
|
|
|
|
PIMPLE
|
|
{
|
|
momentumPredictor yes;
|
|
transonic no;
|
|
nOuterCorrectors 50;
|
|
nCorrectors 1;
|
|
nNonOrthogonalCorrectors 0;
|
|
consistent yes;
|
|
simpleRho yes;
|
|
|
|
outerCorrectorResidualControl
|
|
{
|
|
"(U|k|epsilon)"
|
|
{
|
|
relTol 0;
|
|
tolerance 0.0001;
|
|
}
|
|
}
|
|
|
|
transportCorrectionFinal no;
|
|
}
|
|
|
|
relaxationFactors
|
|
{
|
|
fields
|
|
{
|
|
p 1;
|
|
rho 1;
|
|
}
|
|
equations
|
|
{
|
|
U 0.9;
|
|
e 0.7;
|
|
"(k|epsilon|omega)" 0.8;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|