79#ifndef hPolynomialThermo_H
80#define hPolynomialThermo_H
92template<
class EquationOfState,
int PolySize>
93class hPolynomialThermo;
95template<
class EquationOfState,
int PolySize>
96inline hPolynomialThermo<EquationOfState, PolySize>
operator+
98 const hPolynomialThermo<EquationOfState, PolySize>&,
99 const hPolynomialThermo<EquationOfState, PolySize>&
102template<
class EquationOfState,
int PolySize>
103inline hPolynomialThermo<EquationOfState, PolySize>
operator*
106 const hPolynomialThermo<EquationOfState, PolySize>&
109template<
class EquationOfState,
int PolySize>
116template<
class EquationOfState,
int PolySize>
128template<
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>
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Polynomial templated on size (order):
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Thermodynamics package templated on the equation of state, using polynomial functions for cp,...
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
static word typeName()
Return the instantiated type name.
scalar dCpdT(const scalar p, const scalar T) const
Temperature derivative of heat capacity at constant pressure.
scalar Hc() const
Chemical enthalpy [J/kg].
scalar S(const scalar p, const scalar T) const
Entropy [J/(kg K)].
scalar Ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kg].
void operator+=(const hPolynomialThermo &)
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 operator*=(const scalar)
A class for handling words, derived from Foam::string.
const volScalarField & Cp
OBJstream os(runTime.globalPath()/outputName)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.