38 #ifndef incompressiblePerfectGas_H 39 #define incompressiblePerfectGas_H 52 template<
class Specie>
56 const incompressiblePerfectGas<Specie>&
59 template<
class Specie>
60 inline incompressiblePerfectGas<Specie>
operator*
63 const incompressiblePerfectGas<Specie>&
66 template<
class Specie>
67 inline incompressiblePerfectGas<Specie>
operator==
69 const incompressiblePerfectGas<Specie>&,
70 const incompressiblePerfectGas<Specie>&
73 template<
class Specie>
77 const incompressiblePerfectGas<Specie>&
85 template<
class Specie>
129 "incompressiblePerfectGas<" 130 +
word(Specie::typeName_()) +
'>';
143 inline scalar
rho(scalar
p, scalar
T)
const;
146 inline scalar
H(
const scalar
p,
const scalar
T)
const;
149 inline scalar
Cp(scalar
p, scalar
T)
const;
152 inline scalar
E(
const scalar
p,
const scalar
T)
const;
155 inline scalar
Cv(scalar
p, scalar
T)
const;
158 inline scalar
Sp(
const scalar
p,
const scalar
T)
const;
161 inline scalar
Sv(
const scalar
p,
const scalar
T)
const;
164 inline scalar
psi(scalar
p, scalar
T)
const;
167 inline scalar
Z(scalar
p, scalar
T)
const;
170 inline scalar
CpMCv(scalar
p, scalar
T)
const;
176 void write(Ostream& os)
const;
190 const incompressiblePerfectGas&
193 friend incompressiblePerfectGas
operator* <Specie>
196 const incompressiblePerfectGas&
199 friend incompressiblePerfectGas
operator== <Specie>
201 const incompressiblePerfectGas&,
202 const incompressiblePerfectGas&
208 friend Ostream& operator<< <Specie>
211 const incompressiblePerfectGas&
void operator*=(const scalar)
void write(Ostream &os) const
Write to Ostream.
scalar Cp(scalar p, scalar T) const
Return Cp contribution [J/(kg K].
A list of keyword definitions, which are a keyword followed by any number of values (e...
Incompressible gas equation of state using a constant reference pressure in the perfect gas equation ...
void operator+=(const incompressiblePerfectGas &)
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.
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
scalar E(const scalar p, const scalar T) const
Return internal energy contribution [J/kg].
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
scalar Sp(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cp/T [J/kg/K].
An Ostream is an abstract base class for all output systems (streams, files, token lists...
scalar Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
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].
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)
static word typeName()
Return the instantiated type name.