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 temperature to be within the range. 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 | Hc () const |
| Chemical enthalpy [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 100 of file hPolynomialThermo.H.
| hPolynomialThermo | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 29 of file hPolynomialThermo.C.
References H(), and Foam::constant::standard::Pstd.

|
inline |
Construct as a named copy.
Definition at line 50 of file hPolynomialThermoI.H.
|
inlinestatic |
Return the instantiated type name.
Definition at line 237 of file hPolynomialThermo.H.
|
inline |
Limit temperature to be within the range.
Definition at line 68 of file hPolynomialThermoI.H.
References Foam::T().

|
inline |
Heat capacity at constant pressure [J/(kg K)].
Definition at line 78 of file hPolynomialThermoI.H.
References Cp, p, and Foam::T().

|
inline |
Absolute Enthalpy [J/kg].
Definition at line 88 of file hPolynomialThermoI.H.
References H(), p, and Foam::T().

|
inline |
Sensible enthalpy [J/kg].
Definition at line 98 of file hPolynomialThermoI.H.
References Ha(), p, and Foam::T().

|
inline |
Chemical enthalpy [J/kg].
Definition at line 107 of file hPolynomialThermoI.H.
|
inline |
Entropy [J/(kg K)].
Definition at line 116 of file hPolynomialThermoI.H.

|
inline |
Gibbs free energy of the mixture in the standard state [J/kg].
Definition at line 127 of file hPolynomialThermoI.H.
References Foam::T().

|
inline |
Temperature derivative of heat capacity at constant pressure.
Definition at line 137 of file hPolynomialThermoI.H.
References Foam::T().

| void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 60 of file hPolynomialThermo.C.
References os(), and Foam::vtk::write().

|
inline |
Definition at line 152 of file hPolynomialThermoI.H.
References Foam::mag(), and Y.

|
inline |
Definition at line 176 of file hPolynomialThermoI.H.
References s.
|
friend |
|
friend |
|
friend |
|
friend |