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>
193 template<
class Specie>
194 inline void Foam::incompressiblePerfectGas<Specie>::operator+=
202 <<
"pRef " << pRef_ <<
" for " 203 << (this->
name().size() ? this->
name() :
"others")
204 <<
" != " << ipg.pRef_ <<
" for " 205 << (ipg.name().size() ? ipg.name() :
"others")
209 Specie::operator+=(ipg);
213 template<
class Specie>
216 Specie::operator*=(s);
222 template<
class Specie>
229 if (
notEqual(ipg1.pRef_, ipg2.pRef_))
232 <<
"pRef " << ipg1.pRef_ <<
" for " 233 << (ipg1.name().size() ? ipg1.name() :
"others")
234 <<
" != " << ipg2.pRef_ <<
" for " 235 << (ipg2.name().size() ? ipg2.name() :
"others")
241 static_cast<const Specie&
>(ipg1) + static_cast<const Specie&>(ipg2),
247 template<
class Specie>
256 s*
static_cast<const Specie&
>(ipg),
262 template<
class Specie>
271 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 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)