rhoPimpleFoam: Added support for transonic flow of liquids and real gases

Both stardard SIMPLE and the SIMPLEC (using the 'consistent' option in
fvSolution) are now supported for both subsonic and transonic flow of all
fluid types.

rhoPimpleFoam now instantiates the lower-level fluidThermo which instantiates
either a psiThermo or rhoThermo according to the 'type' specification in
thermophysicalProperties, see also commit 655fc78748
This commit is contained in:
Henry Weller
2017-02-28 11:14:59 +00:00
parent 5bc07189ee
commit 99c992d65c
21 changed files with 295 additions and 343 deletions

View File

@ -63,8 +63,9 @@ PIMPLE
nOuterCorrectors 3;
nCorrectors 1;
nNonOrthogonalCorrectors 0;
rhoMin 0.5;
rhoMax 2.0;
pMaxFactor 1.2;
pMinFactor 0.8;
}
relaxationFactors

View File

@ -52,8 +52,9 @@ PIMPLE
nOuterCorrectors 3;
nCorrectors 1;
nNonOrthogonalCorrectors 0;
rhoMin 0.5;
rhoMax 2.0;
pMinFactor 0.5;
pMaxFactor 2.0;
}
relaxationFactors

View File

@ -23,7 +23,7 @@ thermoType
thermo hConst;
equationOfState perfectGas;
specie specie;
energy sensibleEnthalpy;
energy sensibleInternalEnergy;
}
mixture

View File

@ -30,8 +30,9 @@ divSchemes
default none;
div(phi,U) Gauss upwind;
div(phid,p) Gauss upwind;
div(phiv,p) Gauss linear;
div(phi,K) Gauss linear;
div(phi,h) Gauss upwind;
div(phi,e) Gauss upwind;
div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind;
div(phi,R) Gauss upwind;

View File

@ -28,11 +28,10 @@ solvers
pFinal
{
$p;
tolerance 1e-07;
relTol 0;
}
"(rho|U|h|k|epsilon|omega)"
"(rho|U|e|k|epsilon|omega)"
{
solver smoothSolver;
smoother symGaussSeidel;
@ -40,10 +39,9 @@ solvers
relTol 0.1;
}
"(rho|U|h|k|epsilon|omega)Final"
"(rho|U|e|k|epsilon|omega)Final"
{
$U;
tolerance 1e-06;
relTol 0;
}
}
@ -57,8 +55,8 @@ PIMPLE
nNonOrthogonalCorrectors 0;
consistent yes;
rhoMin 0.4;
rhoMax 2.0;
pMaxFactor 1.5;
pMinFactor 0.9;
residualControl
{
@ -76,13 +74,13 @@ relaxationFactors
{
fields
{
"p.*" 0.9;
"p.*" 1;
"rho.*" 1;
}
equations
{
"U.*" 0.9;
"h.*" 0.7;
"e.*" 0.7;
"(k|epsilon|omega).*" 0.8;
}
}

View File

@ -56,8 +56,8 @@ PIMPLE
nCorrectors 1;
nNonOrthogonalCorrectors 0;
rhoMin 0.5;
rhoMax 2.0;
pMaxFactor 1.5;
pMinFactor 0.9;
maxCo 0.2;
rDeltaTSmoothingCoeff 0.1;

View File

@ -59,8 +59,9 @@ PIMPLE
nOuterCorrectors 1;
nCorrectors 2;
nNonOrthogonalCorrectors 0;
rhoMin 0.5;
rhoMax 2.0;
pMax 1.2e5;
pMin 0.8e5;
}

View File

@ -84,14 +84,13 @@ solvers
PIMPLE
{
nOuterCorrectors 1;
nCorrectors 2;
nNonOrthogonalCorrectors 0;
momentumPredictor yes;
rhoMin 0.5;
rhoMax 2.0;
pRefCell 0;
pRefValue 1e5;
nOuterCorrectors 1;
nCorrectors 2;
nNonOrthogonalCorrectors 0;
momentumPredictor yes;
pMax 1.2e5;
pMin 0.8e5;
}
relaxationFactors

View File

@ -52,8 +52,9 @@ PIMPLE
nOuterCorrectors 3;
nCorrectors 1;
nNonOrthogonalCorrectors 0;
rhoMin 0.5;
rhoMax 2.0;
pMinFactor 0.5;
pMaxFactor 2.0;
}
relaxationFactors