70 #ifndef hPolynomialThermo_H
71 #define hPolynomialThermo_H
83 template<
class EquationOfState,
int PolySize>
84 class hPolynomialThermo;
86 template<
class EquationOfState,
int PolySize>
87 inline hPolynomialThermo<EquationOfState, PolySize>
operator+
89 const hPolynomialThermo<EquationOfState, PolySize>&,
90 const hPolynomialThermo<EquationOfState, PolySize>&
93 template<
class EquationOfState,
int PolySize>
94 inline hPolynomialThermo<EquationOfState, PolySize>
operator*
97 const hPolynomialThermo<EquationOfState, PolySize>&
100 template<
class EquationOfState,
int PolySize>
107 template<
class EquationOfState,
int PolySize>
119 template<
class EquationOfState,
int PolySize=8>
122 public EquationOfState
151 const EquationOfState& pt,
171 return "hPolynomial<" + EquationOfState::typeName() +
'>';
175 inline scalar
limit(
const scalar)
const;
181 inline scalar
Cp(
const scalar
p,
const scalar
T)
const;
184 inline scalar
ha(
const scalar
p,
const scalar
T)
const;
187 inline scalar
hs(
const scalar
p,
const scalar
T)
const;
190 inline scalar
hf()
const;
193 inline scalar
s(
const scalar
p,
const scalar
T)
const;
196 inline scalar
gStd(
const scalar
T)
const;
204 inline scalar
dCpdT(
const scalar
p,
const scalar
T)
const;
242 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 any number of values (e....
Enthalpy based thermodynamics package using a polynomial function of temperature for the constant hea...
scalar gStd(const scalar T) const
Gibbs free energy of the mixture in the standard state [J/kg].
hPolynomialThermo(const EquationOfState &pt, const scalar hf, const scalar sf, const Polynomial< PolySize > &CpCoeffs, const typename Polynomial< PolySize >::intPolyType &hCoeffs, const Polynomial< PolySize > &sCoeffs)
Construct from components.
scalar s(const scalar p, const scalar T) const
Entropy [J/kg/K].
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 Cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/kg/K].
void write(Ostream &os) const
Write to Ostream.
void operator+=(const hPolynomialThermo &)
scalar ha(const scalar p, const scalar T) const
Absolute enthalpy [J/kg].
scalar hf() const
Enthalpy of formation [J/kg].
scalar limit(const scalar) const
Limit the temperature to be in the range Tlow_ to Thigh_.
void operator*=(const scalar)
scalar hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
A class for handling words, derived from string.
volScalarField sf(fieldObject, mesh)
word name(const bool)
Return a word representation of a bool.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)