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>
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>
scalar S(const scalar p, const scalar T) const
Entropy [J/(kg K)].
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.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
void operator+=(const hPolynomialThermo &)
scalar Gstd(const scalar T) const
Gibbs free energy of the mixture in the standard state [J/kg].
Thermodynamics package templated on the equation of state, using polynomial functions for cp...
scalar Ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kg].
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
void operator*=(const scalar)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
scalar Hc() const
Chemical enthalpy [J/kg].
Polynomial templated on size (order):
static word typeName()
Return the instantiated type name.
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)].