Go to the documentation of this file.
31 template<
class Specie>
34 const Specie& sp,
const scalar
pRef
42 template<
class Specie>
53 template<
class Specie>
57 const incompressiblePerfectGas<Specie>& ipg
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>
163 template<
class Specie>
170 Specie::operator=(ipg);
177 template<
class Specie>
183 scalar molr1 = this->nMoles();
184 Specie::operator+=(ipg);
185 molr1 /= this->nMoles();
186 scalar molr2 = ipg.nMoles()/this->nMoles();
188 pRef_ = molr1*pRef_ + molr2*ipg.pRef_;
192 template<
class Specie>
198 Specie::operator-=(ipg);
203 template<
class Specie>
206 Specie::operator*=(
s);
212 template<
class Specie>
219 scalar nMoles = ipg1.nMoles() + ipg2.nMoles();
220 scalar molr1 = ipg1.nMoles()/nMoles;
221 scalar molr2 = ipg2.nMoles()/nMoles;
225 static_cast<const Specie&
>(ipg1)
226 +
static_cast<const Specie&
>(ipg2),
227 molr1*ipg1.
pRef_ + molr2*ipg2.pRef_
232 template<
class Specie>
235 const incompressiblePerfectGas<Specie>& ipg1,
236 const incompressiblePerfectGas<Specie>& ipg2
239 return incompressiblePerfectGas<Specie>
241 static_cast<const Specie&
>(ipg1)
242 -
static_cast<const Specie&
>(ipg2),
248 template<
class Specie>
252 const incompressiblePerfectGas<Specie>& ipg
255 return incompressiblePerfectGas<Specie>
257 s*
static_cast<const Specie&
>(ipg),
263 template<
class Specie>
266 const incompressiblePerfectGas<Specie>& pg1,
267 const incompressiblePerfectGas<Specie>& pg2
const scalar RR
Universal gas constant (default in [J/(kmol K)])
scalar cpMcv(scalar p, scalar T) const
Return (cp - cv) [J/(kmol K].
scalar pRef_
Reference pressure.
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
#define R(A, B, C, D, E, F, K, M)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
scalar Z(scalar p, scalar T) const
Return compression factor [].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
A list of keyword definitions, which are a keyword followed by any number of values (e....
incompressiblePerfectGas(const Specie &sp, const scalar pRef)
Construct from components.
scalar s(const scalar p, const scalar T) const
Return entropy [J/(kmol 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))
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar psi(scalar p, scalar T) const
Return compressibility rho/p [s^2/m^2].
Incompressible gas equation of state using a constant reference pressure in the perfect gas equation ...
static autoPtr< incompressiblePerfectGas > New(Istream &is)
autoPtr< incompressiblePerfectGas > clone() const
Construct and return a clone.
void operator*=(const scalar)
word name(const complex &)
Return a string representation of a complex.