31 template<
class Specie>
34 const Specie& sp,
const scalar pRef
42 template<
class Specie>
54 template<
class Specie>
65 template<
class Specie>
81 template<
class Specie>
88 return pRef_/(this->
R()*
T);
92 template<
class Specie>
103 template<
class Specie>
114 template<
class Specie>
125 template<
class Specie>
136 template<
class Specie>
147 template<
class Specie>
160 template<
class Specie>
161 inline void Foam::incompressiblePerfectGas<Specie>::operator=
166 Specie::operator=(ipg);
171 template<
class Specie>
172 inline void Foam::incompressiblePerfectGas<Specie>::operator+=
177 scalar Y1 = this->
Y();
178 Specie::operator+=(ipg);
180 if (
mag(this->
Y()) > small)
183 const scalar Y2 = ipg.Y()/this->
Y();
185 pRef_ = Y1*pRef_ + Y2*ipg.pRef_;
190 template<
class Specie>
193 Specie::operator*=(s);
199 template<
class Specie>
208 static_cast<const Specie&>(ipg1)
209 + static_cast<const Specie&>(ipg2)
212 if (
mag(sp.Y()) < small)
222 const scalar Y1 = ipg1.Y()/sp.Y();
223 const scalar Y2 = ipg2.Y()/sp.Y();
228 Y1*ipg1.pRef_ + Y2*ipg2.pRef_
234 template<
class Specie>
243 s*
static_cast<const Specie&
>(ipg),
249 template<
class Specie>
258 static_cast<const Specie&>(ipg1)
259 == static_cast<const Specie&>(ipg2)
262 const scalar Y1 = ipg1.Y()/sp.Y();
263 const scalar Y2 = ipg2.Y()/sp.Y();
268 Y2*ipg2.pRef_ - Y1*ipg1.pRef_
void operator*=(const scalar)
scalar Cp(scalar p, scalar T) const
Return Cp departure [J/(kg K].
A list of keyword definitions, which are a keyword followed by any number of values (e...
Incompressible gas equation of state using a constant reference pressure in the perfect gas equation ...
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].
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))
scalar Z(scalar p, scalar T) const
Return compression factor [].
A class for handling words, derived from string.
incompressiblePerfectGas(const Specie &sp, const scalar pRef)
Construct from components.
scalar S(const scalar p, const scalar T) const
Return entropy [J/(kg K)].
scalar H(const scalar p, const scalar T) const
Return enthalpy departure [J/kg].
#define R(A, B, C, D, E, F, K, M)
PtrList< volScalarField > & Y
scalar psi(scalar p, scalar T) const
Return compressibility rho/p [s^2/m^2].
dimensioned< scalar > mag(const dimensioned< Type > &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
autoPtr< incompressiblePerfectGas > clone() const
Construct and return a clone.
static autoPtr< incompressiblePerfectGas > New(const dictionary &dict)