73 name_(
dict.dictName()),
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.0e-4)
188 if ((pv(
p,
T) -
p) <= 0)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const word dictName() const
Return the local dictionary name (final part of scoped name)
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
The thermophysical properties of a liquid.
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.
virtual void write(Ostream &os) const =0
Write the function coefficients.
scalar S(const scalar p, const scalar T) const
Liquid entropy [J/kg/K].
virtual const word & name() const
Return the name of the liquid.
static autoPtr< liquidProperties > New(const word &name)
Return a pointer to a new liquidProperties created from name.
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.
Base-class for thermophysical properties of solids, liquids and gases providing an interface compatib...
virtual void write(Ostream &os) const =0
Write the function coefficients.
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
A class for handling words, derived from string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define WarningInFunction
Report a warning using Foam::Warning.
#define InfoInFunction
Report an information message using Foam::Info.
errorManipArg< error, int > exit(error &err, const int errNo=1)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
defineTypeNameAndDebug(combustionModel, 0)
Ostream & operator<<(Ostream &, const ensightPart &)
word name(const complex &)
Return a string representation of a complex.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const scalarList W(::W(thermo))