db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
31 lines
672 B
C
31 lines
672 B
C
Info<< "Reading thermodynamicProperties\n" << endl;
|
|
|
|
IOdictionary thermodynamicProperties
|
|
(
|
|
IOobject
|
|
(
|
|
"thermodynamicProperties",
|
|
runTime.constant(),
|
|
mesh,
|
|
IOobject::MUST_READ,
|
|
IOobject::NO_WRITE
|
|
)
|
|
);
|
|
|
|
dimensionedScalar rho0
|
|
(
|
|
thermodynamicProperties.lookup("rho0")
|
|
);
|
|
|
|
dimensionedScalar p0
|
|
(
|
|
thermodynamicProperties.lookup("p0")
|
|
);
|
|
|
|
dimensionedScalar psi
|
|
(
|
|
thermodynamicProperties.lookup("psi")
|
|
);
|
|
|
|
// Density offset, i.e. the constant part of the density
|
|
dimensionedScalar rhoO("rhoO", rho0 - psi*p0);
|