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;
179 const Switch defaultCoeffs(dict.
lookup(
"defaultCoeffs"));
183 ConstructorTable::iterator cstrIter =
184 ConstructorTablePtr_->find(liquidPropertiesTypeName);
186 if (cstrIter == ConstructorTablePtr_->end())
190 "liquidProperties::New(const dictionary&)" 191 ) <<
"Unknown liquidProperties type " 192 << liquidPropertiesTypeName <<
nl <<
nl 193 <<
"Valid liquidProperties types are:" <<
nl 194 << ConstructorTablePtr_->sortedToc()
202 dictionaryConstructorTable::iterator cstrIter =
203 dictionaryConstructorTablePtr_->find(liquidPropertiesTypeName);
205 if (cstrIter == dictionaryConstructorTablePtr_->end())
209 "liquidProperties::New(const dictionary&)" 210 ) <<
"Unknown liquidProperties type " 211 << liquidPropertiesTypeName <<
nl <<
nl 212 <<
"Valid liquidProperties types are:" <<
nl 213 << dictionaryConstructorTablePtr_->sortedToc()
219 cstrIter()(dict.
subDict(liquidPropertiesTypeName +
"Coeffs"))
231 "Foam::scalar Foam::liquidProperties::rho(scalar, scalar) const" 241 "Foam::scalar Foam::liquidProperties::pv(scalar, scalar) const" 251 "Foam::scalar Foam::liquidProperties::hl(scalar, scalar) const" 261 "Foam::scalar Foam::liquidProperties::Cp(scalar, scalar) const" 271 "Foam::scalar Foam::liquidProperties::h(scalar, scalar) const" 281 "Foam::scalar Foam::liquidProperties::Cpg(scalar, scalar) const" 291 "Foam::scalar Foam::liquidProperties::mu(scalar, scalar) const" 301 "Foam::scalar Foam::liquidProperties::mug(scalar, scalar) const" 311 "Foam::scalar Foam::liquidProperties::K(scalar, scalar) const" 321 "Foam::scalar Foam::liquidProperties::Kg(scalar, scalar) const" 331 "Foam::scalar Foam::liquidProperties::sigms(scalar, scalar) const" 341 "Foam::scalar Foam::liquidProperties::D(scalar, scalar) const" 351 "Foam::scalar Foam::liquidProperties::D(scalar, scalar) const" 370 "Foam::scalar Foam::liquidProperties::pvInvert(scalar) const" 371 ) <<
"Pressure below triple point pressure: " 372 <<
"p = " << p <<
" < Pt = " << Pt_ <<
nl <<
endl;
384 while ((Thi - Tlo) > 1.0
e-4)
386 if ((
pv(p, T) - p) <= 0.0)
The thermophysical properties of a liquidProperties.
virtual void writeData(Ostream &os) const
Write the function coefficients.
virtual scalar Cp(scalar p, scalar T) const
Liquid heat capacity [J/(kg K)].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A class for handling words, derived from string.
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.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
virtual scalar h(scalar p, scalar T) const
Liquid enthalpy [J/kg] - reference to 298.15 K.
virtual scalar D(scalar p, scalar T) const
Vapour diffussivity [m2/s].
const double e
Elementary charge.
Ostream & endl(Ostream &os)
Add newline and flush stream.
stressControl lookup("compactNormalStress") >> compactNormalStress
#define WarningIn(functionName)
Report a warning using Foam::Warning.
virtual scalar K(scalar p, scalar T) const
Liquid thermal conductivity [W/(m K)].
virtual scalar mug(scalar p, scalar T) const
Vapour viscosity [Pa s].
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
errorManip< error > abort(error &err)
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
virtual scalar pv(scalar p, scalar T) const
Vapour pressure [Pa].
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual scalar pvInvert(scalar p) const
Invert the vapour pressure relationship to retrieve the.
virtual scalar rho(scalar p, scalar T) const
Liquid rho [kg/m^3].
static autoPtr< liquidProperties > New(Istream &is)
Return a pointer to a new liquidProperties created from input.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual scalar Cpg(scalar p, scalar T) const
Ideal gas heat capacity [J/(kg K)].
const word dictName() const
Return the local dictionary name (final part of scoped name)
virtual scalar mu(scalar p, scalar T) const
Liquid viscosity [Pa s].
virtual scalar Kg(scalar p, scalar T) const
Vapour thermal conductivity [W/(m K)].
#define notImplemented(functionName)
Issue a FatalErrorIn for a function not currently implemented.
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 auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual scalar hl(scalar p, scalar T) const
Heat of vapourisation [J/kg].
virtual scalar sigma(scalar p, scalar T) const
Surface tension [N/m].
defineTypeNameAndDebug(combustionModel, 0)