74 template<
class Specie>
class rPolynomial;
76 template<
class Specie>
77 inline rPolynomial<Specie>
operator+
79 const rPolynomial<Specie>&,
80 const rPolynomial<Specie>&
83 template<
class Specie>
90 template<
class Specie>
97 template<
class Specie>
109 template<
class Specie>
148 inline rPolynomial(
const Specie&
sp,
const coeffList& coeffs);
165 return "rPolynomial<" +
word(Specie::typeName_()) +
'>';
178 inline scalar
rho(scalar
p, scalar
T)
const;
181 inline scalar
h(
const scalar
p,
const scalar
T)
const;
184 inline scalar
Cp(scalar
p, scalar
T)
const;
187 inline scalar
e(
const scalar
p,
const scalar
T)
const;
190 inline scalar
Cv(scalar
p, scalar
T)
const;
193 inline scalar
sp(
const scalar
p,
const scalar
T)
const;
196 inline scalar
sv(
const scalar
p,
const scalar
T)
const;
199 inline scalar
psi(scalar
p, scalar
T)
const;
202 inline scalar
Z(scalar
p, scalar
T)
const;
205 inline scalar
CpMCv(scalar
p, scalar
T)
const;
208 inline scalar
alphav(
const scalar
p,
const scalar
T)
const;
246 friend Ostream& operator<< <Specie>
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Reciprocal polynomial equation of state for liquids and solids.
scalar Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].
void operator+=(const rPolynomial &)
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
scalar alphav(const scalar p, const scalar T) const
Return volumetric coefficient of thermal expansion [1/T].
static word typeName()
Return the instantiated type name.
scalar e(const scalar p, const scalar T) const
Return internal energy contribution [J/kg].
void write(Ostream &os) const
Write to Ostream.
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
scalar h(const scalar p, const scalar T) const
Return enthalpy contribution [J/kg].
scalar Cp(scalar p, scalar T) const
Return Cp contribution [J/(kg K].
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
scalar sv(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cv/T [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].
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
scalar Z(scalar p, scalar T) const
Return compression factor [].
autoPtr< rPolynomial > clone() const
Construct and return a clone.
void operator*=(const scalar)
A class for handling words, derived from string.
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.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
word name(const bool)
Return a word representation of a bool.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)