71 Tc_(dict.
lookup<scalar>(
"Tc")),
72 Pc_(dict.
lookup<scalar>(
"Pc")),
73 Vc_(dict.
lookup<scalar>(
"Vc")),
74 Zc_(dict.
lookup<scalar>(
"Zc")),
75 Tt_(dict.
lookup<scalar>(
"Tt")),
76 Pt_(dict.
lookup<scalar>(
"Pt")),
77 Tb_(dict.
lookup<scalar>(
"Tb")),
78 dipm_(dict.
lookup<scalar>(
"dipm")),
79 omega_(dict.
lookup<scalar>(
"omega")),
80 delta_(dict.
lookup<scalar>(
"delta"))
96 ConstructorTable::iterator cstrIter = ConstructorTablePtr_->find(name);
98 if (cstrIter == ConstructorTablePtr_->end())
101 <<
"Unknown liquidProperties type " 103 <<
"Valid liquidProperties types are:" <<
nl 104 << ConstructorTablePtr_->sortedToc()
123 const word& liquidPropertiesTypeName =
126 dictionaryConstructorTable::iterator cstrIter =
127 dictionaryConstructorTablePtr_->find(liquidPropertiesTypeName);
129 if (cstrIter == dictionaryConstructorTablePtr_->end())
132 <<
"Unknown liquidProperties type " 133 << liquidPropertiesTypeName <<
nl <<
nl 134 <<
"Valid liquidProperties types are:" <<
nl 135 << dictionaryConstructorTablePtr_->sortedToc()
164 <<
"Pressure below triple point pressure: " 165 <<
"p = " << p <<
" < Pt = " << Pt_ <<
nl <<
endl;
177 while ((Thi - Tlo) > 1.0
e-4)
179 if ((
pv(p, T) - p) <= 0)
Base-class for thermophysical properties of solids, liquids and gases providing an interface compatib...
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual scalar pvInvert(scalar p) const
Invert the vapour pressure relationship to retrieve the.
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
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.
const word dictName() const
Return the local dictionary name (final part of scoped name)
stressControl lookup("compactNormalStress") >> compactNormalStress
A class for handling words, derived from string.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
The thermophysical properties of a liquid.
virtual scalar pv(scalar p, scalar T) const =0
Vapour pressure [Pa].
An Ostream is an abstract base class for all output systems (streams, files, token lists...
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
virtual void write(Ostream &os) const =0
Write the function coefficients.
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)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
#define WarningInFunction
Report a warning using Foam::Warning.
Ostream & operator<<(Ostream &, const ensightPart &)
scalar S(const scalar p, const scalar T) const
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const doubleScalar e
Elementary charge.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual void write(Ostream &os) const =0
Write the function coefficients.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
#define InfoInFunction
Report an information message using Foam::Info.