31 template<
class Specie>
43 template<
class Specie>
55 template<
class Specie>
68 template<
class Specie>
75 return pRef_/(this->
R()*
T);
79 template<
class Specie>
86 return p/this->
rho(p,
T);
90 template<
class Specie>
101 template<
class Specie>
112 template<
class Specie>
123 template<
class Specie>
134 template<
class Specie>
145 template<
class Specie>
156 template<
class Specie>
167 template<
class Specie>
178 template<
class Specie>
191 template<
class Specie>
200 <<
"pRef " << pRef_ <<
" for "
201 << (this->
name().size() ? this->
name() :
"others")
202 <<
" != " << ipg.pRef_ <<
" for "
203 << (ipg.name().size() ? ipg.name() :
"others")
207 Specie::operator+=(ipg);
211 template<
class Specie>
214 Specie::operator*=(
s);
220 template<
class Specie>
227 if (
notEqual(ipg1.pRef_, ipg2.pRef_))
230 <<
"pRef " << ipg1.pRef_ <<
" for "
231 << (ipg1.name().size() ? ipg1.name() :
"others")
232 <<
" != " << ipg2.pRef_ <<
" for "
233 << (ipg2.name().size() ? ipg2.name() :
"others")
237 return incompressiblePerfectGas<Specie>
239 static_cast<const Specie&
>(ipg1) +
static_cast<const Specie&
>(ipg2),
245 template<
class Specie>
249 const incompressiblePerfectGas<Specie>& ipg
252 return incompressiblePerfectGas<Specie>
254 s*
static_cast<const Specie&
>(ipg),
260 template<
class Specie>
263 const incompressiblePerfectGas<Specie>& ipg1,
264 const incompressiblePerfectGas<Specie>& ipg2
267 return incompressiblePerfectGas<Specie>
269 static_cast<const Specie&
>(ipg1) ==
static_cast<const Specie&
>(ipg2),
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Incompressible gas equation of state using a constant reference pressure in the perfect gas equation ...
scalar Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
scalar alphav(const scalar p, const scalar T) const
Return volumetric coefficient of thermal expansion [1/T].
scalar e(const scalar p, const scalar T) const
Return internal energy contribution [J/kg].
autoPtr< incompressiblePerfectGas > clone() const
Construct and return a clone.
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
incompressiblePerfectGas(const Specie &sp, const scalar pRef)
Construct from components.
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
scalar h(const scalar p, const scalar T) const
Return enthalpy contribution [J/kg].
scalar Cp(scalar p, scalar T) const
Return Cp contribution [J/(kg K].
scalar sv(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cv/T [J/kg/K].
scalar sp(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cp/T [J/kg/K].
scalar Z(scalar p, scalar T) const
Return compression factor [].
void operator*=(const scalar)
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool notEqual(const Scalar s1, const Scalar s2)
word name(const bool)
Return a word representation of a bool.
static scalar R(const scalar a, const scalar x)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)