128 const word liquidPropertiesType(is);
129 const word coeffs(is);
131 if (coeffs ==
"defaultCoeffs")
133 ConstructorTable::iterator cstrIter =
134 ConstructorTablePtr_->find(liquidPropertiesType);
136 if (cstrIter == ConstructorTablePtr_->end())
139 <<
"Unknown liquidProperties type " 140 << liquidPropertiesType <<
nl <<
nl 141 <<
"Valid liquidProperties types are:" <<
nl 142 << ConstructorTablePtr_->sortedToc()
148 else if (coeffs ==
"coeffs")
155 <<
"liquidProperties type " << liquidPropertiesType
156 <<
", option " << coeffs <<
" given" 157 <<
", should be coeffs or defaultCoeffs" 177 const Switch defaultCoeffs(dict.
lookup(
"defaultCoeffs"));
181 ConstructorTable::iterator cstrIter =
182 ConstructorTablePtr_->find(liquidPropertiesTypeName);
184 if (cstrIter == ConstructorTablePtr_->end())
187 <<
"Unknown liquidProperties type " 188 << liquidPropertiesTypeName <<
nl <<
nl 189 <<
"Valid liquidProperties types are:" <<
nl 190 << ConstructorTablePtr_->sortedToc()
198 dictionaryConstructorTable::iterator cstrIter =
199 dictionaryConstructorTablePtr_->find(liquidPropertiesTypeName);
201 if (cstrIter == dictionaryConstructorTablePtr_->end())
204 <<
"Unknown liquidProperties type " 205 << liquidPropertiesTypeName <<
nl <<
nl 206 <<
"Valid liquidProperties types are:" <<
nl 207 << dictionaryConstructorTablePtr_->sortedToc()
213 cstrIter()(dict.
subDict(liquidPropertiesTypeName +
"Coeffs"))
324 <<
"Pressure below triple point pressure: " 325 <<
"p = " << p <<
" < Pt = " << Pt_ <<
nl <<
endl;
337 while ((Thi - Tlo) > 1.0
e-4)
339 if ((
pv(p, T) - p) <= 0.0)
const double e
Elementary charge.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual scalar h(scalar p, scalar T) const
Liquid enthalpy [J/kg] - reference to 298.15 K.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
const word dictName() const
Return the local dictionary name (final part of scoped name)
virtual void writeData(Ostream &os) const
Write the function coefficients.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
virtual scalar hl(scalar p, scalar T) const
Heat of vapourisation [J/kg].
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual scalar mu(scalar p, scalar T) const
Liquid viscosity [Pa s].
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.
virtual scalar Kg(scalar p, scalar T) const
Vapour thermal conductivity [W/(m K)].
virtual scalar Cpg(scalar p, scalar T) const
Ideal gas heat capacity [J/(kg K)].
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.
stressControl lookup("compactNormalStress") >> compactNormalStress
A class for handling words, derived from string.
virtual scalar sigma(scalar p, scalar T) const
Surface tension [N/m].
The thermophysical properties of a liquidProperties.
virtual scalar Cp(scalar p, scalar T) const
Liquid heat capacity [J/(kg K)].
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
errorManip< error > abort(error &err)
virtual scalar rho(scalar p, scalar T) const
Liquid rho [kg/m^3].
virtual scalar pv(scalar p, scalar T) const
Vapour pressure [Pa].
An Ostream is an abstract base class for all output systems (streams, files, token lists...
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual scalar K(scalar p, scalar T) const
Liquid thermal conductivity [W/(m K)].
virtual scalar pvInvert(scalar p) const
Invert the vapour pressure relationship to retrieve the.
static autoPtr< liquidProperties > New(Istream &is)
Return a pointer to a new liquidProperties created from input.
#define WarningInFunction
Report a warning using Foam::Warning.
virtual scalar mug(scalar p, scalar T) const
Vapour viscosity [Pa s].
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual scalar D(scalar p, scalar T) const
Vapour diffussivity [m2/s].
#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.