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>
99 return p/this->
rho(p, T);
103 template<
class Specie>
114 template<
class Specie>
125 template<
class Specie>
136 template<
class Specie>
147 template<
class Specie>
158 template<
class Specie>
169 template<
class Specie>
182 template<
class Specie>
183 inline void Foam::incompressiblePerfectGas<Specie>::operator+=
188 scalar Y1 = this->
Y();
189 Specie::operator+=(ipg);
191 if (
mag(this->
Y()) > small)
194 const scalar Y2 = ipg.Y()/this->
Y();
196 pRef_ = Y1*pRef_ + Y2*ipg.pRef_;
201 template<
class Specie>
204 Specie::operator*=(s);
210 template<
class Specie>
219 static_cast<const Specie&>(ipg1)
220 + static_cast<const Specie&>(ipg2)
223 if (
mag(sp.Y()) < small)
233 const scalar Y1 = ipg1.Y()/sp.Y();
234 const scalar Y2 = ipg2.Y()/sp.Y();
239 Y1*ipg1.pRef_ + Y2*ipg2.pRef_
245 template<
class Specie>
254 s*
static_cast<const Specie&
>(ipg),
260 template<
class Specie>
269 static_cast<const Specie&>(ipg1)
270 == static_cast<const Specie&>(ipg2)
273 const scalar Y1 = ipg1.Y()/sp.Y();
274 const scalar Y2 = ipg2.Y()/sp.Y();
279 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 E(const scalar p, const scalar T) const
Return internal energy departure [J/kg].
scalar S(const scalar p, const scalar T) const
Return entropy [J/kg/K].
scalar Cv(scalar p, scalar T) const
Return Cv departure [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)