98 ConstructorTable::iterator cstrIter = ConstructorTablePtr_->find(name);
100 if (cstrIter == ConstructorTablePtr_->end())
103 <<
"Unknown liquidProperties type " 105 <<
"Valid liquidProperties types are:" <<
nl 106 << ConstructorTablePtr_->sortedToc()
126 if (dict.
found(
"defaultCoeffs"))
132 return New(liquidPropertiesTypeName);
136 dictionaryConstructorTable::iterator cstrIter =
137 dictionaryConstructorTablePtr_->find(liquidPropertiesTypeName);
139 if (cstrIter == dictionaryConstructorTablePtr_->end())
142 <<
"Unknown liquidProperties type " 143 << liquidPropertiesTypeName <<
nl <<
nl 144 <<
"Valid liquidProperties types are:" <<
nl 145 << dictionaryConstructorTablePtr_->sortedToc()
160 dictionaryConstructorTable::iterator cstrIter =
161 dictionaryConstructorTablePtr_->find(liquidPropertiesTypeName);
163 if (cstrIter == dictionaryConstructorTablePtr_->end())
166 <<
"Unknown liquidProperties type " 167 << liquidPropertiesTypeName <<
nl <<
nl 168 <<
"Valid liquidProperties types are:" <<
nl 169 << dictionaryConstructorTablePtr_->sortedToc()
199 <<
"Pressure below triple point pressure: " 200 <<
"p = " << p <<
" < Pt = " << Pt_ <<
nl <<
endl;
212 while ((Thi - Tlo) > 1.0
e-4)
214 if ((
pv(p, T) - p) <= 0)
275 dict.
add(
"dipm", dipm_);
276 dict.
add(
"omega", omega_);
277 dict.
add(
"delta", delta_);
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.
Ostream & indent(Ostream &os)
Indent stream.
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.
void write(Ostream &os) const
Write dictionary to Ostream.
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.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none.
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.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
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
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
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].
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if successful.
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.
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)
#define WarningInFunction
Report a warning using Foam::Warning.
virtual void writeData(Ostream &os) const =0
Write the function coefficients.
Ostream & operator<<(Ostream &, const ensightPart &)
void write(Ostream &os) const
Write dictionary to Ostream.
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.
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.