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
S(
const scalar
p,
const scalar
T)
const;
155 inline scalar
psi(scalar
p, scalar
T)
const;
158 inline scalar
Z(scalar
p, scalar
T)
const;
161 inline scalar
CpMCv(scalar
p, scalar
T)
const;
167 void write(Ostream& os)
const;
182 const incompressiblePerfectGas&
185 friend incompressiblePerfectGas
operator* <Specie>
188 const incompressiblePerfectGas&
191 friend incompressiblePerfectGas
operator== <Specie>
193 const incompressiblePerfectGas&,
194 const incompressiblePerfectGas&
200 friend Ostream& operator<< <Specie>
203 const incompressiblePerfectGas&
void operator*=(const scalar)
void write(Ostream &os) const
Write to Ostream.
scalar Cp(scalar p, scalar T) const
Return Cp departure [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 &)
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 S(const scalar p, const scalar T) const
Return entropy [J/(kg K)].
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
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 departure [J/kg].
scalar psi(scalar p, scalar T) const
Return compressibility rho/p [s^2/m^2].
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.