74 Tc_(dict.
lookup<scalar>(
"Tc")),
75 Pc_(dict.
lookup<scalar>(
"Pc")),
76 Vc_(dict.
lookup<scalar>(
"Vc")),
77 Zc_(dict.
lookup<scalar>(
"Zc")),
78 Tt_(dict.
lookup<scalar>(
"Tt")),
79 Pt_(dict.
lookup<scalar>(
"Pt")),
80 Tb_(dict.
lookup<scalar>(
"Tb")),
81 dipm_(dict.
lookup<scalar>(
"dipm")),
82 omega_(dict.
lookup<scalar>(
"omega")),
83 delta_(dict.
lookup<scalar>(
"delta"))
99 ConstructorTable::iterator cstrIter = ConstructorTablePtr_->find(name);
101 if (cstrIter == ConstructorTablePtr_->end())
104 <<
"Unknown liquidProperties type " 106 <<
"Valid liquidProperties types are:" <<
nl 107 << ConstructorTablePtr_->sortedToc()
126 const word& liquidPropertiesTypeName =
129 dictionaryConstructorTable::iterator cstrIter =
130 dictionaryConstructorTablePtr_->find(liquidPropertiesTypeName);
132 if (cstrIter == dictionaryConstructorTablePtr_->end())
135 <<
"Unknown liquidProperties type " 136 << liquidPropertiesTypeName <<
nl <<
nl 137 <<
"Valid liquidProperties types are:" <<
nl 138 << dictionaryConstructorTablePtr_->sortedToc()
173 <<
"Pressure below triple point pressure: " 174 <<
"p = " << p <<
" < Pt = " << Pt_ <<
nl <<
endl;
186 while ((Thi - Tlo) > 1.0
e-4)
188 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.
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)
virtual const word & name() const
Return the name of the liquid.
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)
liquidProperties(const word &name, 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 WarningInFunction
Report a warning using Foam::Warning.
Ostream & operator<<(Ostream &, const ensightPart &)
scalar S(const scalar p, const scalar T) const
Liquid entropy [J/kg/K].
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.
const word dictName("noiseDict")
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.