Power-function based thermodynamics package templated on EquationOfState. More...
Public Member Functions | |
hPowerThermo (Istream &) | |
Construct from Istream. More... | |
hPowerThermo (const dictionary &) | |
Construct from dictionary. More... | |
hPowerThermo (const word &, const hPowerThermo &) | |
Construct as a named copy. More... | |
autoPtr< hPowerThermo > | clone () const |
Construct and return a clone. More... | |
scalar | limit (const scalar T) const |
Limit the temperature to be in the range Tlow_ to Thigh_. More... | |
scalar | cp (const scalar p, const scalar T) const |
Heat capacity at constant pressure [J/(kg K)]. More... | |
scalar | ha (const scalar p, const scalar T) const |
Absolute enthalpy [J/kmol]. More... | |
scalar | hs (const scalar p, const scalar T) const |
Sensible enthalpy [J/kg]. More... | |
scalar | hc () const |
Chemical enthalpy [J/kg]. More... | |
scalar | s (const scalar p, const scalar T) const |
Entropy [J/(kmol K)]. More... | |
void | operator+= (const hPowerThermo &) |
void | operator-= (const hPowerThermo &) |
Static Public Member Functions | |
static autoPtr< hPowerThermo > | New (Istream &is) |
Selector from Istream. More... | |
static autoPtr< hPowerThermo > | New (const dictionary &dict) |
Selector from dictionary. More... | |
static word | typeName () |
Return the instantiated type name. More... | |
Friends | |
hPowerThermo | operator+ (const hPowerThermo &, const hPowerThermo &) |
hPowerThermo | operator- (const hPowerThermo &, const hPowerThermo &) |
hPowerThermo | operator* (const scalar, const hPowerThermo &) |
hPowerThermo | operator== (const hPowerThermo &, const hPowerThermo &) |
Ostream & | operator (Ostream &, const hPowerThermo &) |
Power-function based thermodynamics package templated on EquationOfState.
In this thermodynamics package the heat capacity is a simple power of temperature:
Cp(T) = c0*(T/Tref)^n0;
which is particularly suitable for solids.
Definition at line 54 of file hPowerThermo.H.
hPowerThermo | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 32 of file hPowerThermo.C.
References IOstream::check().
hPowerThermo | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 48 of file hPowerThermo.C.
References IOstream::check(), Foam::endl(), Foam::nl, and Foam::tab.
|
inline |
Construct as a named copy.
Definition at line 49 of file hPowerThermoI.H.
|
inline |
Construct and return a clone.
Definition at line 84 of file hPowerThermoI.H.
|
inlinestatic |
Selector from Istream.
Definition at line 95 of file hPowerThermoI.H.
|
inlinestatic |
Selector from dictionary.
Definition at line 106 of file hPowerThermoI.H.
References dict, and hPowerThermo< EquationOfState >::limit().
|
inlinestatic |
Return the instantiated type name.
Definition at line 157 of file hPowerThermo.H.
References hPowerThermo< EquationOfState >::cp(), hPowerThermo< EquationOfState >::ha(), hPowerThermo< EquationOfState >::hc(), hPowerThermo< EquationOfState >::hs(), hPowerThermo< EquationOfState >::limit(), hPowerThermo< EquationOfState >::operator+=(), hPowerThermo< EquationOfState >::operator-=(), p, hPowerThermo< EquationOfState >::s(), and Foam::T().
|
inline |
Limit the temperature to be in the range Tlow_ to Thigh_.
Definition at line 119 of file hPowerThermoI.H.
References hPowerThermo< EquationOfState >::cp(), and T.
Referenced by hPowerThermo< EquationOfState >::New(), and hPowerThermo< EquationOfState >::typeName().
|
inline |
Heat capacity at constant pressure [J/(kg K)].
Definition at line 129 of file hPowerThermoI.H.
References cp, hPowerThermo< EquationOfState >::ha(), and Foam::pow().
Referenced by hPowerThermo< EquationOfState >::limit(), and hPowerThermo< EquationOfState >::typeName().
|
inline |
Absolute enthalpy [J/kmol].
Definition at line 139 of file hPowerThermoI.H.
References hPowerThermo< EquationOfState >::hs().
Referenced by hPowerThermo< EquationOfState >::cp(), and hPowerThermo< EquationOfState >::typeName().
|
inline |
Sensible enthalpy [J/kg].
Definition at line 149 of file hPowerThermoI.H.
References Foam::constant::universal::h, Foam::pow(), and Foam::constant::standard::Tstd.
Referenced by hPowerThermo< EquationOfState >::ha(), and hPowerThermo< EquationOfState >::typeName().
|
inline |
Chemical enthalpy [J/kg].
Definition at line 160 of file hPowerThermoI.H.
References hPowerThermo< EquationOfState >::s().
Referenced by hPowerThermo< EquationOfState >::typeName().
|
inline |
Entropy [J/(kmol K)].
Definition at line 168 of file hPowerThermoI.H.
References Foam::pow(), s(), and Foam::constant::standard::Tstd.
Referenced by hPowerThermo< EquationOfState >::hc(), and hPowerThermo< EquationOfState >::typeName().
|
inline |
Definition at line 182 of file hPowerThermoI.H.
Referenced by hPowerThermo< EquationOfState >::typeName().
|
inline |
Definition at line 201 of file hPowerThermoI.H.
References s().
Referenced by hPowerThermo< EquationOfState >::typeName().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |