See tutorials/compressible/rhoSimpleFoam/squareBend
SIMPLE
{
nNonOrthogonalCorrectors 0;
rhoMin 0.1;
rhoMax 1.0;
transonic yes;
consistent yes;
residualControl
{
p 1e-3;
U 1e-4;
e 1e-3;
// possibly check turbulence fields
"(k|epsilon|omega)" 1e-3;
}
}
relaxationFactors
{
fields
{
p 1;
rho 1;
}
equations
{
p 1;
U 0.9;
e 0.9;
k 0.9;
epsilon 0.9;
}
}
49 lines
1.3 KiB
C++
49 lines
1.3 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 "constant";
|
|
object thermophysicalProperties;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
thermoType
|
|
{
|
|
type hePsiThermo;
|
|
mixture pureMixture;
|
|
transport sutherland;
|
|
thermo hConst;
|
|
equationOfState perfectGas;
|
|
specie specie;
|
|
energy sensibleInternalEnergy;
|
|
}
|
|
|
|
mixture
|
|
{
|
|
specie
|
|
{
|
|
nMoles 1;
|
|
molWeight 28.9;
|
|
}
|
|
thermodynamics
|
|
{
|
|
Cp 1007;
|
|
Hf 0;
|
|
}
|
|
transport
|
|
{
|
|
As 1.4792e-06;
|
|
Ts 116;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|