30 template<
class Specie>
46 template<
class Specie>
59 template<
class Specie>
67 template<
class Specie>
80 template<
class Specie>
87 template<
class Specie>
90 return rho0_ + p/(this->
R()*
T);
94 template<
class Specie>
101 template<
class Specie>
110 template<
class Specie>
117 template<
class Specie>
124 template<
class Specie>
131 template<
class Specie>
139 template<
class Specie>
142 return 1.0/(this->
R()*
T);
146 template<
class Specie>
149 return p/(
rho(p, T)*this->
R()*
T);
153 template<
class Specie>
156 const scalar R = this->
R();
157 const scalar
rho = this->
rho(p, T);
159 return R*
sqr(p/(rho*R*T));
165 template<
class Specie>
166 inline void Foam::perfectFluid<Specie>::operator+=
175 template<
class Specie>
178 Specie::operator*=(s);
184 template<
class Specie>
196 template<
class Specie>
205 s*
static_cast<const Specie&
>(pf),
212 template<
class Specie>
autoPtr< perfectFluid > clone() const
Construct and return a clone.
scalar Sp(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cp/T [J/kg/K].
dimensionedScalar log(const dimensionedScalar &ds)
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensionedSymmTensor sqr(const dimensionedVector &dv)
perfectFluid(const Specie &sp, const scalar R, const scalar rho0)
Construct from components.
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
static autoPtr< perfectFluid > New(const dictionary &dict)
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
scalar R() const
Return fluid constant [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))
A class for handling words, derived from string.
scalar E(const scalar p, const scalar T) const
Return internal energy contribution [J/kg].
void operator*=(const scalar)
scalar Z(scalar p, scalar T) const
Return compression factor [].
scalar Sv(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cv/T [J/kg/K].
scalar H(const scalar p, const scalar T) const
Return enthalpy contribution [J/kg].
const dimensionedScalar Pstd
Standard pressure.
#define noCoefficientMixing(Type)
Simple extension of the perfect gas equation of state to liquids by the addition of a constant densit...
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
#define R(A, B, C, D, E, F, K, M)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar Cp(scalar p, scalar T) const
Return Cp contribution [J/(kg K].
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
scalar Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].