OpenFOAM-5.x/etc/templates
Henry Weller 655fc78748 rhoSimpleFoam: added support for compressible liquid flows
rhoSimpleFoam now instantiates the lower-level fluidThermo which instantiates
either a psiThermo or rhoThermo according to the 'type' specification in
thermophysicalProperties, e.g.

thermoType
{
    type            hePsiThermo;
    mixture         pureMixture;
    transport       sutherland;
    thermo          janaf;
    equationOfState perfectGas;
    specie          specie;
    energy          sensibleInternalEnergy;
}

instantiates a psiThermo for a perfect gas with JANAF thermodynamics, whereas

thermoType
{
    type            heRhoThermo;
    mixture         pureMixture;
    properties      liquid;
    energy          sensibleInternalEnergy;
}

mixture
{
    H2O;
}

instantiates a rhoThermo for water, see new tutorial
compressible/rhoSimpleFoam/squareBendLiq.

In order to support complex equations of state the pressure can no longer be
unlimited and rhoSimpleFoam now limits the pressure rather than the density to
handle start-up more robustly.

For backward compatibility 'rhoMin' and 'rhoMax' can still be used in the SIMPLE
sub-dictionary of fvSolution which are converted into 'pMax' and 'pMin' but it
is better to set either 'pMax' and 'pMin' directly or use the more convenient
'pMinFactor' and 'pMinFactor' from which 'pMax' and 'pMin' are calculated using
the fixed boundary pressure or reference pressure e.g.

SIMPLE
{
    nNonOrthogonalCorrectors 0;

    pMinFactor      0.1;
    pMaxFactor      1.5;

    transonic       yes;
    consistent      yes;

    residualControl
    {
        p               1e-3;
        U               1e-4;
        e               1e-3;
        "(k|epsilon|omega)" 1e-3;
    }
}
2017-02-24 11:18:01 +00:00
..
axisymmetricJet Template cases: removed solver entries using default values from fvSolution 2016-06-15 16:28:42 +01:00
closedVolume Template cases: commenting out scalarLevels to prevent 0 directory 2016-06-15 18:06:12 +01:00
closedVolumeRotating Template cases: commenting out scalarLevels to prevent 0 directory 2016-06-15 18:06:12 +01:00
compressibleInflowOutflow rhoSimpleFoam: added support for compressible liquid flows 2017-02-24 11:18:01 +00:00
inflowOutflow Template cases: commenting out scalarLevels to prevent 0 directory 2016-06-15 18:06:12 +01:00
inflowOutflowRotating Template cases: commenting out scalarLevels to prevent 0 directory 2016-06-15 18:06:12 +01:00