Thermodynamics package templated on the equation of state, using polynomial functions for cp
, h
and s
.
More...
Public Member Functions | |
hPolynomialThermo (const dictionary &dict) | |
Construct from dictionary. More... | |
hPolynomialThermo (const word &, const hPolynomialThermo &) | |
Construct as a named copy. More... | |
scalar | limit (const scalar) 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/kg]. More... | |
scalar | Hs (const scalar p, const scalar T) const |
Sensible enthalpy [J/kg]. More... | |
scalar | Hf () const |
Enthalpy of formation [J/kg]. More... | |
scalar | S (const scalar p, const scalar T) const |
Entropy [J/kg/K]. More... | |
scalar | Gstd (const scalar T) const |
Gibbs free energy of the mixture in the standard state [J/kg]. More... | |
scalar | dCpdT (const scalar p, const scalar T) const |
Temperature derivative of heat capacity at constant pressure. More... | |
void | write (Ostream &os) const |
Write to Ostream. More... | |
void | operator+= (const hPolynomialThermo &) |
void | operator*= (const scalar) |
Static Public Member Functions | |
static word | typeName () |
Return the instantiated type name. More... | |
Friends | |
hPolynomialThermo | operator+ (const hPolynomialThermo &, const hPolynomialThermo &) |
hPolynomialThermo | operator* (const scalar, const hPolynomialThermo &) |
hPolynomialThermo | operator== (const hPolynomialThermo &, const hPolynomialThermo &) |
Ostream & | operator (Ostream &, const hPolynomialThermo &) |
Thermodynamics package templated on the equation of state, using polynomial functions for cp
, h
and s
.
Polynomials for h
and s
derived from cp
.
Property | Description |
---|---|
Hf | Heat of formation |
Sf | Standard entropy |
CpCoeffs<8> | Specific heat at constant pressure polynomial coeffs |
Example of the specification of the thermodynamic properties:
thermodynamics { Hf 0; Sf 0; CpCoeffs<8> ( 1000 -0.05 0.003 0 0 0 0 0 ); }
The polynomial expression is evaluated as so:
Definition at line 96 of file hPolynomialThermo.H.
hPolynomialThermo | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 33 of file hPolynomialThermo.C.
References Foam::constant::standard::Tstd, and hPolynomialThermo< EquationOfState, PolySize >::write().
|
inline |
Construct as a named copy.
Definition at line 54 of file hPolynomialThermoI.H.
References hPolynomialThermo< EquationOfState, PolySize >::limit().
|
inlinestatic |
Return the instantiated type name.
Definition at line 184 of file hPolynomialThermo.H.
References hPolynomialThermo< EquationOfState, PolySize >::Cp(), hPolynomialThermo< EquationOfState, PolySize >::dCpdT(), hPolynomialThermo< EquationOfState, PolySize >::Gstd(), hPolynomialThermo< EquationOfState, PolySize >::Ha(), hPolynomialThermo< EquationOfState, PolySize >::Hf(), hPolynomialThermo< EquationOfState, PolySize >::Hs(), hPolynomialThermo< EquationOfState, PolySize >::limit(), hPolynomialThermo< EquationOfState, PolySize >::operator*=(), hPolynomialThermo< EquationOfState, PolySize >::operator+=(), p, hPolynomialThermo< EquationOfState, PolySize >::S(), Foam::T(), and hPolynomialThermo< EquationOfState, PolySize >::write().
|
inline |
Limit the temperature to be in the range Tlow_ to Thigh_.
Definition at line 72 of file hPolynomialThermoI.H.
References hPolynomialThermo< EquationOfState, PolySize >::Cp(), and Foam::T().
Referenced by hPolynomialThermo< EquationOfState, PolySize >::hPolynomialThermo(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Heat capacity at constant pressure [J/kg/K].
Definition at line 82 of file hPolynomialThermoI.H.
References Cp(), and hPolynomialThermo< EquationOfState, PolySize >::Hs().
Referenced by hPolynomialThermo< EquationOfState, PolySize >::limit(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Absolute enthalpy [J/kg].
Definition at line 104 of file hPolynomialThermoI.H.
Referenced by hPolynomialThermo< EquationOfState, PolySize >::Hs(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Sensible enthalpy [J/kg].
Definition at line 93 of file hPolynomialThermoI.H.
References hPolynomialThermo< EquationOfState, PolySize >::Ha(), and hPolynomialThermo< EquationOfState, PolySize >::Hf().
Referenced by hPolynomialThermo< EquationOfState, PolySize >::Cp(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Enthalpy of formation [J/kg].
Definition at line 114 of file hPolynomialThermoI.H.
References hPolynomialThermo< EquationOfState, PolySize >::S().
Referenced by hPolynomialThermo< EquationOfState, PolySize >::Hs(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Entropy [J/kg/K].
Definition at line 123 of file hPolynomialThermoI.H.
References hPolynomialThermo< EquationOfState, PolySize >::Gstd(), and Sp.
Referenced by hPolynomialThermo< EquationOfState, PolySize >::Hf(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Gibbs free energy of the mixture in the standard state [J/kg].
Definition at line 134 of file hPolynomialThermoI.H.
References hPolynomialThermo< EquationOfState, PolySize >::dCpdT(), and Foam::T().
Referenced by hPolynomialThermo< EquationOfState, PolySize >::S(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Temperature derivative of heat capacity at constant pressure.
Definition at line 144 of file hPolynomialThermoI.H.
Referenced by hPolynomialThermo< EquationOfState, PolySize >::Gstd(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 65 of file hPolynomialThermo.C.
References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), Foam::name(), Foam::vtkWriteOps::write(), and Ostream::write().
Referenced by hPolynomialThermo< EquationOfState, PolySize >::hPolynomialThermo(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Definition at line 160 of file hPolynomialThermoI.H.
References Foam::mag(), and Y.
Referenced by hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Definition at line 184 of file hPolynomialThermoI.H.
References Foam::mag(), and s().
Referenced by hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
friend |
|
friend |
|
friend |
|
friend |