74 template<
class Specie>
class rPolynomial;
76 template<
class Specie>
77 inline rPolynomial<Specie>
operator+
83 template<
class Specie>
90 template<
class Specie>
93 const rPolynomial<Specie>&,
94 const rPolynomial<Specie>&
97 template<
class Specie>
101 const rPolynomial<Specie>&
109 template<
class Specie>
148 const coeffList& coeffs
169 return "rPolynomial<" +
word(Specie::typeName_()) +
'>';
182 inline scalar
rho(scalar
p, scalar
T)
const;
185 inline scalar
H(
const scalar
p,
const scalar
T)
const;
188 inline scalar
Cp(scalar
p, scalar
T)
const;
191 inline scalar
E(
const scalar
p,
const scalar
T)
const;
194 inline scalar
Cv(scalar
p, scalar
T)
const;
197 inline scalar
Sp(
const scalar
p,
const scalar
T)
const;
200 inline scalar
Sv(
const scalar
p,
const scalar
T)
const;
203 inline scalar
psi(scalar
p, scalar
T)
const;
206 inline scalar
Z(scalar
p, scalar
T)
const;
209 inline scalar
CpMCv(scalar
p, scalar
T)
const;
212 inline scalar
alphav(
const scalar
p,
const scalar
T)
const;
218 void write(Ostream& os)
const;
235 friend rPolynomial
operator* <Specie>
241 friend rPolynomial
operator== <Specie>
250 friend Ostream& operator<< <Specie>
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar Z(scalar p, scalar T) const
Return compression factor [].
Reciprocal polynomial equation of state for liquids and solids.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
scalar Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].
static word typeName()
Return the instantiated type name.
autoPtr< rPolynomial > clone() const
Construct and return a clone.
scalar H(const scalar p, const scalar T) const
Return enthalpy contribution [J/kg].
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
A class for handling words, derived from string.
void operator+=(const rPolynomial &)
void operator*=(const scalar)
void write(Ostream &os) const
Write to Ostream.
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
An Ostream is an abstract base class for all output systems (streams, files, token lists...
scalar alphav(const scalar p, const scalar T) const
Return volumetric coefficient of thermal expansion [1/T].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
word name(const complex &)
Return a string representation of a complex.
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
static autoPtr< rPolynomial > New(const dictionary &dict)
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar E(const scalar p, const scalar T) const
Return internal energy contribution [J/kg].
scalar Sv(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cv/T [J/kg/K].
scalar Cp(scalar p, scalar T) const
Return Cp contribution [J/(kg K].
rPolynomial(const Specie &sp, const coeffList &coeffs)
Construct from components.
scalar Sp(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cp/T [J/kg/K].