60 template<
class Specie>
64 const perfectGas<Specie>&
67 template<
class Specie>
68 inline perfectGas<Specie>
operator*
71 const perfectGas<Specie>&
74 template<
class Specie>
75 inline perfectGas<Specie>
operator==
77 const perfectGas<Specie>&,
78 const perfectGas<Specie>&
81 template<
class Specie>
85 const perfectGas<Specie>&
93 template<
class Specie>
124 return "perfectGas<" +
word(Specie::typeName_()) +
'>';
137 inline scalar
rho(scalar
p, scalar
T)
const;
140 inline scalar
H(
const scalar
p,
const scalar
T)
const;
143 inline scalar
Cp(scalar
p, scalar
T)
const;
146 inline scalar
E(
const scalar
p,
const scalar
T)
const;
149 inline scalar
Cv(scalar
p, scalar
T)
const;
152 inline scalar
Sp(
const scalar
p,
const scalar
T)
const;
155 inline scalar
Sv(
const scalar
p,
const scalar
T)
const;
158 inline scalar
psi(scalar
p, scalar
T)
const;
161 inline scalar
Z(scalar
p, scalar
T)
const;
164 inline scalar
CpMCv(scalar
p, scalar
T)
const;
167 inline scalar
alphav(
const scalar
p,
const scalar
T)
const;
173 void write(Ostream& os)
const;
190 friend perfectGas
operator* <Specie>
196 friend perfectGas
operator== <Specie>
205 friend Ostream& operator<< <Specie>
void operator*=(const scalar)
static word typeName()
Return the instantiated type name.
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar Sv(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cv/T [J/kg/K].
scalar Sp(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cp/T [J/kg/K].
void write(Ostream &os) const
Write to Ostream.
scalar Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].
scalar H(const scalar p, const scalar T) const
Return enthalpy contribution [J/kg].
scalar Cp(scalar p, scalar T) const
Return Cp contribution [J/(kg K].
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
void operator+=(const perfectGas &)
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
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))
autoPtr< perfectGas > clone() const
Construct and return a clone.
A class for handling words, derived from string.
scalar E(const scalar p, const scalar T) const
Return internal energy contribution [J/kg].
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Perfect gas equation of state:
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
word name(const complex &)
Return a string representation of a complex.
static autoPtr< perfectGas > New(const dictionary &dict)
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
perfectGas(const Specie &sp)
Construct from components.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar Z(scalar p, scalar T) const
Return compression factor [].
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
scalar alphav(const scalar p, const scalar T) const
Return volumetric coefficient of thermal expansion [1/T].