Go to the documentation of this file.
79 #ifndef hPolynomialThermo_H
80 #define hPolynomialThermo_H
92 template<
class EquationOfState,
int PolySize>
93 class hPolynomialThermo;
95 template<
class EquationOfState,
int PolySize>
96 inline hPolynomialThermo<EquationOfState, PolySize>
operator+
98 const hPolynomialThermo<EquationOfState, PolySize>&,
99 const hPolynomialThermo<EquationOfState, PolySize>&
102 template<
class EquationOfState,
int PolySize>
103 inline hPolynomialThermo<EquationOfState, PolySize>
operator*
109 template<
class EquationOfState,
int PolySize>
116 template<
class EquationOfState,
int PolySize>
128 template<
class EquationOfState,
int PolySize=8>
131 public EquationOfState
167 inline static word coeffsName(
const char*
name)
169 return word(
name + (
"Coeffs<" + std::to_string(PolySize) +
'>'));
175 const EquationOfState& pt,
203 return "hPolynomial<" + EquationOfState::typeName() +
'>';
207 inline scalar
limit(
const scalar)
const;
213 inline scalar
Cp(
const scalar
p,
const scalar
T)
const;
216 inline scalar
Ha(
const scalar
p,
const scalar
T)
const;
219 inline scalar
Hs(
const scalar
p,
const scalar
T)
const;
222 inline scalar
Hc()
const;
225 inline scalar
S(
const scalar
p,
const scalar
T)
const;
228 inline scalar
Gstd(
const scalar
T)
const;
238 inline scalar
dCpdT(
const scalar
p,
const scalar
T)
const;
277 friend Ostream& operator<< <EquationOfState, PolySize>
A class for handling words, derived from Foam::string.
scalar limit(const scalar) const
Limit temperature to be within the range.
scalar Gstd(const scalar T) const
Gibbs free energy of the mixture in the standard state [J/kg].
void write(Ostream &os) const
Write to Ostream.
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
scalar dCpdT(const scalar p, const scalar T) const
Temperature derivative of heat capacity at constant pressure.
scalar S(const scalar p, const scalar T) const
Entropy [J/(kg K)].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
scalar Ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kg].
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
static word typeName()
Return the instantiated type name.
void operator*=(const scalar)
Thermodynamics package templated on the equation of state, using polynomial functions for cp,...
Polynomial templated on size (order):
void operator+=(const hPolynomialThermo &)
scalar Cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kg K)].
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
scalar Hc() const
Chemical enthalpy [J/kg].