This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/compressible/sonicLiquidFoam/readThermodynamicProperties.H

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);