82 dipm_(
dict.
get<scalar>(
"dipm")),
83 omega_(
dict.
get<scalar>(
"omega")),
97 auto* ctorPtr = ConstructorTable(
name);
105 *ConstructorTablePtr_
115 const dictionary&
dict 127 if (
dict.
found(
"defaultCoeffs") && !hadExplicitType)
131 if (
dict.
get<
bool>(
"defaultCoeffs"))
133 return New(liquidType);
136 auto* ctorPtr = dictionaryConstructorTable(liquidType);
145 *dictionaryConstructorTablePtr_
149 return autoPtr<liquidProperties>
155 auto* ctorPtr = dictionaryConstructorTable(liquidType);
164 *dictionaryConstructorTablePtr_
193 <<
"Pressure below triple point pressure: " 194 <<
"p = " <<
p <<
" < Pt = " << Pt_ <<
nl <<
endl;
206 while ((Thi - Tlo) > 1.0
e-4)
208 if ((pv(
p,
T) -
p) <= 0)
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
word dictName() const
The local dictionary name (final part of scoped name)
Base-class for thermophysical properties of solids, liquids and gases providing an interface compatib...
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual scalar pvInvert(scalar p) const
Invert the vapour pressure relationship to retrieve the.
constexpr char nl
The newline '\n' character (0x0a)
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
liquidProperties(scalar W, scalar Tc, scalar Pc, scalar Vc, scalar Zc, scalar Tt, scalar Pt, scalar Tb, scalar dipm, scalar omega, scalar delta)
Construct from components.
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry (const access) with the given keyword.
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
const dimensionedScalar e
Elementary charge.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
#define DebugInFunction
Report an information message using Foam::Info.
The thermophysical properties of a liquid.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
virtual void writeData(Ostream &os) const =0
Write the function coefficients.
int debug
Static debugging option.
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry if present, and assign to T val. FatalIOError if it is found and the number of tokens i...
OBJstream os(runTime.globalPath()/outputName)
defineTypeNameAndDebug(combustionModel, 0)
static autoPtr< liquidProperties > New(const word &name)
Return a pointer to a new liquidProperties created from name.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
#define WarningInFunction
Report a warning using Foam::Warning.
virtual void writeData(Ostream &os) const =0
Write the function coefficients.
scalar S(const scalar p, const scalar T) const
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...