Go to the documentation of this file.
75 Tc_(
dict.get<label>(
"Tc")),
76 Pc_(
dict.get<label>(
"Pc")),
77 Vc_(
dict.get<label>(
"Vc")),
78 Zc_(
dict.get<label>(
"Zc")),
79 Tt_(
dict.get<label>(
"Tt")),
80 Pt_(
dict.get<label>(
"Pt")),
81 Tb_(
dict.get<label>(
"Tb")),
82 dipm_(
dict.get<label>(
"dipm")),
83 omega_(
dict.get<label>(
"omega")),
84 delta_(
dict.get<label>(
"delta"))
97 auto cstrIter = ConstructorTablePtr_->cfind(
name);
99 if (!cstrIter.found())
105 *ConstructorTablePtr_
126 if (
dict.
get<
bool>(
"defaultCoeffs"))
128 return New(liquidType);
131 auto cstrIter = dictionaryConstructorTablePtr_->cfind(liquidType);
133 if (!cstrIter.found())
140 *dictionaryConstructorTablePtr_
153 auto cstrIter = dictionaryConstructorTablePtr_->cfind(liquidType);
155 if (!cstrIter.found())
162 *dictionaryConstructorTablePtr_
191 <<
"Pressure below triple point pressure: "
192 <<
"p = " <<
p <<
" < Pt = " << Pt_ <<
nl <<
endl;
204 while ((Thi - Tlo) > 1.0
e-4)
206 if ((pv(
p,
T) -
p) <= 0)
int debug
Static debugging option.
A class for handling words, derived from Foam::string.
static autoPtr< liquidProperties > New(const word &name)
Return a pointer to a new liquidProperties created from name.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
virtual void writeData(Ostream &os) const =0
Write the function coefficients.
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Base-class for thermophysical properties of solids, liquids and gases providing an interface compatib...
The thermophysical properties of a liquid.
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.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
#define DebugInFunction
Report an information message using Foam::Info.
word name(const complex &c)
Return string representation of complex.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual void writeData(Ostream &os) const =0
Write the function coefficients.
scalar S(const scalar p, const scalar T) const
virtual scalar pvInvert(scalar p) const
Invert the vapour pressure relationship to retrieve the.
word dictName() const
The local dictionary name (final part of scoped name)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
const dimensionedScalar e
Elementary charge.
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const