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)
27 lines
782 B
C++
27 lines
782 B
C++
Info<< "Reading thermodynamicProperties\n" << endl;
|
|
|
|
IOdictionary thermodynamicProperties
|
|
(
|
|
IOobject
|
|
(
|
|
"thermodynamicProperties",
|
|
runTime.constant(),
|
|
mesh,
|
|
IOobject::MUST_READ_IF_MODIFIED,
|
|
IOobject::NO_WRITE
|
|
)
|
|
);
|
|
|
|
dimensionedScalar psil(thermodynamicProperties.lookup("psil"));
|
|
|
|
dimensionedScalar rholSat(thermodynamicProperties.lookup("rholSat"));
|
|
|
|
dimensionedScalar psiv(thermodynamicProperties.lookup("psiv"));
|
|
|
|
dimensionedScalar pSat(thermodynamicProperties.lookup("pSat"));
|
|
|
|
dimensionedScalar rhovSat("rhovSat", psiv*pSat);
|
|
|
|
dimensionedScalar rhol0("rhol0", rholSat - pSat*psil);
|
|
|
|
dimensionedScalar rhoMin(thermodynamicProperties.lookup("rhoMin"));
|