Go to the documentation of this file.
37 #ifndef icoPolynomial_H
38 #define icoPolynomial_H
50 template<
class Specie,
int PolySize>
53 template<
class Specie,
int PolySize>
60 template<
class Specie,
int PolySize>
67 template<
class Specie,
int PolySize>
74 template<
class Specie,
int PolySize>
81 template<
class Specie,
int PolySize>
93 template<
class Specie,
int PolySize=8>
143 return "icoPolynomial<" +
word(Specie::typeName_()) +
'>';
156 inline scalar
rho(scalar
p, scalar
T)
const;
159 inline scalar
s(
const scalar
p,
const scalar
T)
const;
162 inline scalar
psi(scalar
p, scalar
T)
const;
165 inline scalar
Z(scalar
p, scalar
T)
const;
168 inline scalar
cpMcv(scalar
p, scalar
T)
const;
215 friend Ostream& operator<< <Specie, PolySize>
229 #define makeIcoPolynomial(PolySize) \
231 defineTemplateTypeNameAndDebugWithName \
233 icoPolynomial<Specie, PolySize>, \
234 "icoPolynomial<"#PolySize">", \
icoPolynomial & operator=(const icoPolynomial &)
A class for handling words, derived from string.
autoPtr< icoPolynomial > clone() const
Construct and return a clone.
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
void operator+=(const icoPolynomial &)
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
scalar cpMcv(scalar p, scalar T) const
Return (cp - cv) [J/(kmol K].
scalar s(const scalar p, const scalar T) const
Return entropy [J/(kmol K)].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void operator*=(const scalar)
A list of keyword definitions, which are a keyword followed by any number of values (e....
static autoPtr< icoPolynomial > New(Istream &is)
void operator-=(const icoPolynomial &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Polynomial< PolySize > rhoCoeffs_
Density polynomial coefficients.
icoPolynomial(const Specie &sp, const Polynomial< PolySize > &rhoPoly)
Construct from components.
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
static word typeName()
Return the instantiated type name.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
scalar psi(scalar p, scalar T) const
Return compressibility rho/p [s^2/m^2].
scalar Z(scalar p, scalar T) const
Return compression factor [].
word name(const complex &)
Return a string representation of a complex.
void write(Ostream &os) const
Write to Ostream.
Incompressible, polynomial form of equation of state, using a polynomial function for density.