Newer
Older
Andrew Heather
committed
Info<< "Reading thermodynamicProperties\n" << endl;
Andrew Heather
committed
IOdictionary thermodynamicProperties
(
IOobject
Andrew Heather
committed
"thermodynamicProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
Andrew Heather
committed
dimensionedScalar rho0
(
"rho0",
dimDensity,
thermodynamicProperties
);
Andrew Heather
committed
dimensionedScalar p0
(
"p0",
dimPressure,
thermodynamicProperties
);
Andrew Heather
committed
dimensionedScalar psi
(
"psi",
dimCompressibility,
thermodynamicProperties
);
Andrew Heather
committed
// Density offset, i.e. the constant part of the density
dimensionedScalar rhoO("rhoO", rho0 - psi*p0);