63 template<
class Specie>
class rhoConst;
65 template<
class Specie>
66 inline rhoConst<Specie>
operator+
72 template<
class Specie>
79 template<
class Specie>
82 const rhoConst<Specie>&,
83 const rhoConst<Specie>&
86 template<
class Specie>
90 const rhoConst<Specie>&
98 template<
class Specie>
114 inline rhoConst(
const Specie& sp,
const scalar
rho);
131 return "rhoConst<" +
word(Specie::typeName_()) +
'>';
144 inline scalar
rho(scalar
p, scalar
T)
const;
147 inline scalar
H(
const scalar
p,
const scalar
T)
const;
150 inline scalar
Cp(scalar
p, scalar
T)
const;
153 inline scalar
E(
const scalar
p,
const scalar
T)
const;
156 inline scalar
Cv(scalar
p, scalar
T)
const;
159 inline scalar
Sp(
const scalar
p,
const scalar
T)
const;
162 inline scalar
Sv(
const scalar
p,
const scalar
T)
const;
165 inline scalar
psi(scalar
p, scalar
T)
const;
168 inline scalar
Z(scalar
p, scalar
T)
const;
171 inline scalar
CpMCv(scalar
p, scalar
T)
const;
174 inline scalar
alphav(
const scalar
p,
const scalar
T)
const;
180 void write(Ostream& os)
const;
197 friend rhoConst
operator* <Specie>
203 friend rhoConst
operator== <Specie>
212 friend Ostream& operator<< <Specie>
scalar alphav(const scalar p, const scalar T) const
Return volumetric coefficient of thermal expansion [1/T].
scalar Sp(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cp/T [J/kg/K].
void operator+=(const rhoConst &)
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
scalar E(const scalar p, const scalar T) const
Return internal energy contribution [J/kg].
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
scalar H(const scalar p, const scalar T) const
Return enthalpy contribution [J/kg].
void write(Ostream &os) const
Write to Ostream.
scalar Z(scalar p, scalar T) const
Return compression factor [].
rhoConst(const Specie &sp, const scalar rho)
Construct from components.
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
scalar Cp(scalar p, scalar T) const
Return Cp contribution [J/(kg K].
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
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 Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
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.
autoPtr< rhoConst > clone() const
Construct and return a clone.
scalar Sv(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cv/T [J/kg/K].
static word typeName()
Return the instantiated type name.
void operator*=(const scalar)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Constant density equations of state.