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>
176 return p/(
rho(p, T)*this->
R()*
T);
180 template<
class Specie>
191 template<
class Specie>
204 template<
class Specie>
205 inline void Foam::incompressiblePerfectGas<Specie>::operator+=
213 <<
"pRef " << pRef_ <<
" for " 214 << (this->
name().size() ? this->
name() :
"others")
215 <<
" != " << ipg.pRef_ <<
" for " 216 << (ipg.name().size() ? ipg.name() :
"others")
220 Specie::operator+=(ipg);
224 template<
class Specie>
227 Specie::operator*=(s);
233 template<
class Specie>
240 if (
notEqual(ipg1.pRef_, ipg2.pRef_))
243 <<
"pRef " << ipg1.pRef_ <<
" for " 244 << (ipg1.name().size() ? ipg1.name() :
"others")
245 <<
" != " << ipg2.pRef_ <<
" for " 246 << (ipg2.name().size() ? ipg2.name() :
"others")
252 static_cast<const Specie&
>(ipg1) + static_cast<const Specie&>(ipg2),
258 template<
class Specie>
267 s*
static_cast<const Specie&
>(ipg),
273 template<
class Specie>
282 static_cast<const Specie&
>(ipg1) == static_cast<const Specie&>(ipg2),
void operator*=(const scalar)
scalar Cp(scalar p, scalar T) const
Return Cp contribution [J/(kg K].
bool notEqual(const Scalar s1, const Scalar s2)
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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 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].
scalar Sp(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cp/T [J/kg/K].
scalar Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].
word name(const complex &)
Return a string representation of a complex.
scalar H(const scalar p, const scalar T) const
Return enthalpy contribution [J/kg].
#define R(A, B, C, D, E, F, K, M)
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
scalar Sv(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cv/T [J/kg/K].
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)