30 template<
class Specie>
34 const coeffList& coeffs
44 template<
class Specie>
56 template<
class Specie>
64 template<
class Specie>
77 template<
class Specie>
80 return 1/(C_[0] + (C_[1] + C_[2]*T - C_[4]*
p)*T - C_[3]*p);
84 template<
class Specie>
91 template<
class Specie>
98 template<
class Specie>
105 template<
class Specie>
112 template<
class Specie>
119 template<
class Specie>
127 template<
class Specie>
130 return sqr(
rho(p, T))*(C_[3] + C_[4]*
T);
134 template<
class Specie>
141 template<
class Specie>
150 template<
class Specie>
151 inline void Foam::rPolynomial<Specie>::operator+=
156 const scalar Y1 = this->
Y();
157 Specie::operator+=(rp);
159 if (
mag(this->
Y()) > small)
161 C_ = (Y1*C_ + rp.Y()*rp.C_)/this->
Y();
166 template<
class Specie>
169 Specie::operator*=(s);
175 template<
class Specie>
184 static_cast<const Specie&>(rp1)
185 + static_cast<const Specie&>(rp2)
188 if (
mag(sp.Y()) < small)
201 (rp1.Y()*rp1.C_ + rp2.Y()*rp2.C_)/sp.Y()
209 template<
class Specie>
218 s*
static_cast<const Specie&
>(
rp),
224 template<
class Specie>
233 static_cast<const Specie&
>(rp1) == static_cast<const Specie&>(rp2),
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 [].
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Reciprocal polynomial equation of state for liquids and solids.
scalar Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].
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))
A class for handling words, derived from string.
regionProperties rp(runTime)
void operator*=(const scalar)
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
PtrList< volScalarField > & Y
static autoPtr< rPolynomial > New(const dictionary &dict)
dimensioned< scalar > mag(const dimensioned< Type > &)
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].
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
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].