31 template<
class Specie>
34 const Specie& sp,
const scalar pRef
42 template<
class Specie>
53 template<
class Specie>
65 template<
class Specie>
76 template<
class Specie>
90 template<
class Specie>
106 template<
class Specie>
113 return pRef_/(this->
R()*
T);
117 template<
class Specie>
128 template<
class Specie>
139 template<
class Specie>
150 template<
class Specie>
161 template<
class Specie>
172 template<
class Specie>
185 template<
class Specie>
186 inline void Foam::incompressiblePerfectGas<Specie>::operator=
191 Specie::operator=(ipg);
196 template<
class Specie>
197 inline void Foam::incompressiblePerfectGas<Specie>::operator+=
202 scalar molr1 = this->nMoles();
203 Specie::operator+=(ipg);
204 molr1 /= this->nMoles();
205 scalar molr2 = ipg.nMoles()/this->nMoles();
207 pRef_ = molr1*pRef_ + molr2*ipg.pRef_;
211 template<
class Specie>
212 inline void Foam::incompressiblePerfectGas<Specie>::operator-=
217 Specie::operator-=(ipg);
222 template<
class Specie>
225 Specie::operator*=(s);
231 template<
class Specie>
238 scalar nMoles = ipg1.nMoles() + ipg2.nMoles();
239 scalar molr1 = ipg1.nMoles()/nMoles;
240 scalar molr2 = ipg2.nMoles()/nMoles;
244 static_cast<const Specie&
>(ipg1)
245 + static_cast<const Specie&>(ipg2),
246 molr1*ipg1.pRef_ + molr2*ipg2.pRef_
251 template<
class Specie>
260 static_cast<const Specie&
>(ipg1)
261 - static_cast<const Specie&>(ipg2),
267 template<
class Specie>
276 s*
static_cast<const Specie&
>(ipg),
282 template<
class Specie>
scalar cpMcv(scalar p, scalar T) const
Return (cp - cv) [J/(kmol K].
scalar cp(scalar p, scalar T) const
Return cp departure [J/(kmol K].
void operator*=(const scalar)
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
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].
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 s(const scalar p, const scalar T) const
Return entropy [J/(kmol K)].
scalar psi(scalar p, scalar T) const
Return compressibility rho/p [s^2/m^2].
A class for handling words, derived from string.
incompressiblePerfectGas(const Specie &sp, const scalar pRef)
Construct from components.
scalar h(const scalar p, const scalar T) const
Return enthalpy departure [J/kmol].
#define R(A, B, C, D, E, F, K, M)
const scalar RR
Universal gas constant (default in [J/(kmol K)])
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static autoPtr< incompressiblePerfectGas > New(Istream &is)
scalar Z(scalar p, scalar T) const
Return compression factor [].
autoPtr< incompressiblePerfectGas > clone() const
Construct and return a clone.