Go to the documentation of this file.
125 Info<<
"liquidProperties::New(Istream&): "
126 <<
"constructing liquidProperties" <<
endl;
129 const word liquidPropertiesType(is);
130 const word coeffs(is);
132 if (coeffs ==
"defaultCoeffs")
134 ConstructorTable::iterator cstrIter =
135 ConstructorTablePtr_->find(liquidPropertiesType);
137 if (cstrIter == ConstructorTablePtr_->end())
140 <<
"Unknown liquidProperties type "
141 << liquidPropertiesType <<
nl <<
nl
142 <<
"Valid liquidProperties types are:" <<
nl
143 << ConstructorTablePtr_->sortedToc()
149 else if (coeffs ==
"coeffs")
156 <<
"liquidProperties type " << liquidPropertiesType
157 <<
", option " << coeffs <<
" given"
158 <<
", should be coeffs or defaultCoeffs"
173 Info<<
"liquidProperties::New(const dictionary&):"
174 <<
"constructing liquidProperties" <<
endl;
183 ConstructorTable::iterator cstrIter =
184 ConstructorTablePtr_->find(liquidPropertiesTypeName);
186 if (cstrIter == ConstructorTablePtr_->end())
189 <<
"Unknown liquidProperties type "
190 << liquidPropertiesTypeName <<
nl <<
nl
191 <<
"Valid liquidProperties types are:" <<
nl
192 << ConstructorTablePtr_->sortedToc()
200 dictionaryConstructorTable::iterator cstrIter =
201 dictionaryConstructorTablePtr_->find(liquidPropertiesTypeName);
203 if (cstrIter == dictionaryConstructorTablePtr_->end())
206 <<
"Unknown liquidProperties type "
207 << liquidPropertiesTypeName <<
nl <<
nl
208 <<
"Valid liquidProperties types are:" <<
nl
209 << dictionaryConstructorTablePtr_->sortedToc()
215 cstrIter()(
dict.
subDict(liquidPropertiesTypeName +
"Coeffs"))
326 <<
"Pressure below triple point pressure: "
327 <<
"p = " <<
p <<
" < Pt = " << Pt_ <<
nl <<
endl;
339 while ((Thi - Tlo) > 1.0
e-4)
341 if ((pv(
p,
T) -
p) <= 0.0)
const word dictName() const
Return the local dictionary name (final part of scoped name)
virtual scalar K(scalar p, scalar T) const
Liquid thermal conductivity [W/(m K)].
virtual scalar Kg(scalar p, scalar T) const
Vapour thermal conductivity [W/(m K)].
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
A class for handling words, derived from string.
virtual scalar hl(scalar p, scalar T) const
Heat of vapourisation [J/kg].
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual scalar Cp(scalar p, scalar T) const
Liquid heat capacity [J/(kg K)].
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void writeData(Ostream &os) const
Write the function coefficients.
virtual scalar mug(scalar p, scalar T) const
Vapour viscosity [Pa s].
virtual scalar h(scalar p, scalar T) const
Liquid enthalpy [J/kg] - reference to 298.15 K.
virtual scalar mu(scalar p, scalar T) const
Liquid viscosity [Pa s].
virtual scalar sigma(scalar p, scalar T) const
Surface tension [N/m].
static autoPtr< liquidProperties > New(Istream &is)
Return a pointer to a new liquidProperties created from input.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
The thermophysical properties of a liquidProperties.
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.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual scalar rho(scalar p, scalar T) const
Liquid rho [kg/m^3].
virtual scalar pvInvert(scalar p) const
Invert the vapour pressure relationship to retrieve the.
A list of keyword definitions, which are a keyword followed by any number of values (e....
errorManip< error > abort(error &err)
const double e
Elementary charge.
virtual scalar D(scalar p, scalar T) const
Vapour diffussivity [m2/s].
virtual scalar Cpg(scalar p, scalar T) const
Ideal gas heat capacity [J/(kg K)].
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual scalar pv(scalar p, scalar T) const
Vapour pressure [Pa].
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
stressControl lookup("compactNormalStress") >> compactNormalStress