readThermodynamicProperties.H 754 Bytes
Newer Older
shunbo's avatar
shunbo committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Info<< "Reading thermodynamicProperties\n" << endl;

IOdictionary thermodynamicProperties
(
    IOobject
    (
        "thermodynamicProperties",
        runTime.constant(),
        mesh,
        IOobject::MUST_READ_IF_MODIFIED,
        IOobject::NO_WRITE
    )
);

dimensionedScalar psil("psil", dimCompressibility, thermodynamicProperties);

dimensionedScalar rholSat("rholSat", dimDensity, thermodynamicProperties);

dimensionedScalar psiv("psiv", dimCompressibility, thermodynamicProperties);

dimensionedScalar pSat("pSat", dimPressure, thermodynamicProperties);

dimensionedScalar rhovSat("rhovSat", psiv*pSat);

dimensionedScalar rhol0("rhol0", rholSat - pSat*psil);

const dimensionedScalar rhoMin("rhoMin", dimDensity, thermodynamicProperties);