liquidProperties: Simplified dictionary format

The defaultCoeffs entry is now redundant and supported only for backward
compatibility.  To specify a liquid with default coefficients simply leave the
coefficients dictionary empty:

    liquids
    {
        H2O {}
    }

Any or all of the coefficients may be overridden by specifying the properties in
the coefficients dictionary, e.g.

    liquids
    {
        H2O
        {
            rho
            {
                a 1000;
                b 0;
                c 0;
                d 0;
            }
        }
    }
This commit is contained in:
Henry Weller
2017-02-17 22:08:42 +00:00
parent a6fd99b874
commit 9b4f327e2b
14 changed files with 82 additions and 117 deletions

View File

@ -36,10 +36,7 @@ inertSpecie N2;
liquids
{
H2O
{
defaultCoeffs yes;
}
H2O {}
}
solids
@ -47,7 +44,7 @@ solids
C
{
defaultCoeffs no;
// if defaultCoeffs no properties should be :
CCoeffs
{
rho 2010;
@ -57,10 +54,8 @@ solids
emissivity 1.0;
}
}
ash
{
defaultCoeffs yes;
}
ash {}
}

View File

@ -36,16 +36,11 @@ inertSpecie N2;
liquids
{
H2O
{
defaultCoeffs yes;
}
H2O {}
}
solids
{
// none
}
{}
// ************************************************************************* //

View File

@ -36,16 +36,11 @@ inertSpecie N2;
liquids
{
H2O
{
defaultCoeffs yes;
}
H2O {}
}
solids
{
// none
}
{}
// ************************************************************************* //

View File

@ -36,16 +36,11 @@ inertSpecie N2;
liquids
{
H2O
{
defaultCoeffs yes;
}
H2O {}
}
solids
{
// none
}
{}
// ************************************************************************* //

View File

@ -36,16 +36,11 @@ inertSpecie N2;
liquids
{
H2O
{
defaultCoeffs yes;
}
H2O {}
}
solids
{
// none
}
{}
// ************************************************************************* //

View File

@ -36,16 +36,11 @@ foamChemistryThermoFile "$FOAM_CASE/constant/thermo.incompressiblePoly";
liquids
{
H2O
{
defaultCoeffs yes;
}
H2O {}
}
solids
{
// none
}
{}
inertSpecie N2;

View File

@ -38,16 +38,11 @@ inertSpecie air;
liquids
{
H2O
{
defaultCoeffs yes;
}
H2O {}
}
solids
{
// none
}
{}
// ************************************************************************* //

View File

@ -38,16 +38,11 @@ inertSpecie air;
liquids
{
H2O
{
defaultCoeffs yes;
}
H2O {}
}
solids
{
// none
}
{}
// ************************************************************************* //

View File

@ -36,18 +36,14 @@ inertSpecie air;
liquids
{
H2O
{
defaultCoeffs yes;
}
H2O {}
}
solids
{
// none
}
{}
// de-activate the pressure-work term when running local time-stepping
dpdt no;
// ************************************************************************* //

View File

@ -36,16 +36,11 @@ inertSpecie air;
liquids
{
H2O
{
defaultCoeffs yes;
}
H2O {}
}
solids
{
// none
}
{}
// ************************************************************************* //

View File

@ -36,15 +36,11 @@ inertSpecie N2;
liquids
{
C7H16
{
defaultCoeffs yes;
}
C7H16 {}
}
solids
{
// none
}
{}
// ************************************************************************* //