67ab0b5abd
- in FOAM library updated containers backported PackedBoolList, hashedWordList, nullObject, wordRe, backported functions to backported int32 support backported tableReaders backported Function1, TimeFunction1 backported dynamicCode (for codedBCs, ...) -- needs to be mapped out advanced error macros (FatalIOErrorInFunction, ...) -- needs to be mapped out backported IOobject::MUST_READ_IF_MODIFIED and added IOobject::READ_IF_PRESENT_IF_MODIFIED (only in FO) - in postProcessing backported IO FOs (partialWrite, removeRegisteredObject, writeDictionary, writeRegisteredObject) backported field FOs (fieldCoordinateSystemTransform, fieldValues, nearWallFields, processorField, readFields, regionSizeDistribution, streamLine, wallBoundedStreamLine) backported fvTools FOs (calcFvcDiv, calcFvcGrad, calcMag) backported jobControl FOs (abortCalculation) backported utilities FOs (ourantNo, Lambda2, Peclet, Q, codedFunctionObject, pressureTools, residuals, scalarTransport, setTimeStep, timeActivatedFileUpdate, turbulenceFields, vorticity, wallShearStress)
31 lines
684 B
C++
31 lines
684 B
C++
Info<< "Reading thermodynamicProperties\n" << endl;
|
|
|
|
IOdictionary thermodynamicProperties
|
|
(
|
|
IOobject
|
|
(
|
|
"thermodynamicProperties",
|
|
runTime.constant(),
|
|
mesh,
|
|
IOobject::MUST_READ_IF_MODIFIED,
|
|
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);
|