Thermodynamics package templated on the equation of state, using polynomial functions for cp, h and s.
More...
|
| | hPolynomialThermo (const dictionary &dict) |
| | Construct from dictionary.
|
| | hPolynomialThermo (const word &, const hPolynomialThermo &) |
| | Construct as a named copy.
|
| scalar | limit (const scalar) const |
| | Limit temperature to be within the range.
|
| scalar | Cp (const scalar p, const scalar T) const |
| | Heat capacity at constant pressure [J/(kg K)].
|
| scalar | Ha (const scalar p, const scalar T) const |
| | Absolute Enthalpy [J/kg].
|
| scalar | Hs (const scalar p, const scalar T) const |
| | Sensible enthalpy [J/kg].
|
| scalar | Hc () const |
| | Chemical enthalpy [J/kg].
|
| scalar | S (const scalar p, const scalar T) const |
| | Entropy [J/(kg K)].
|
| scalar | Gstd (const scalar T) const |
| | Gibbs free energy of the mixture in the standard state [J/kg].
|
| scalar | Cv (const scalar p, const scalar T) const |
| scalar | Es (const scalar p, const scalar T) const |
| scalar | Ea (const scalar p, const scalar T) const |
| scalar | dCpdT (const scalar p, const scalar T) const |
| | Temperature derivative of heat capacity at constant pressure.
|
| void | write (Ostream &os) const |
| | Write to Ostream.
|
| void | operator+= (const hPolynomialThermo &) |
| void | operator*= (const scalar) |
template<class EquationOfState, int PolySize = 8>
class Foam::hPolynomialThermo< EquationOfState, PolySize >
Thermodynamics package templated on the equation of state, using polynomial functions for cp, h and s.
Polynomials for h and s derived from cp.
- Usage
| 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:
- Note
- Heat of formation is inputted in [J/kg], but internally uses [J/kmol]
- Standard entropy is inputted in [J/kg/K], but internally uses [J/kmol/K]
- Specific heat at constant pressure polynomial coefficients evaluate to an expression in [J/(kg.K)].
- Source files
-
- See also
- Foam::Polynomial
Definition at line 136 of file hPolynomialThermo.H.