43 #ifndef perfectFluid_H 44 #define perfectFluid_H 57 template<
class Specie>
61 const perfectFluid<Specie>&
64 template<
class Specie>
65 inline perfectFluid<Specie>
operator*
68 const perfectFluid<Specie>&
71 template<
class Specie>
72 inline perfectFluid<Specie>
operator==
74 const perfectFluid<Specie>&,
75 const perfectFluid<Specie>&
78 template<
class Specie>
82 const perfectFluid<Specie>&
90 template<
class Specie>
134 return "perfectFluid<" +
word(Specie::typeName_()) +
'>';
147 inline scalar
R()
const;
150 inline scalar
rho(scalar
p, scalar
T)
const;
153 inline scalar
H(
const scalar
p,
const scalar
T)
const;
156 inline scalar
Cp(scalar
p, scalar
T)
const;
159 inline scalar
E(
const scalar
p,
const scalar
T)
const;
162 inline scalar
Cv(scalar
p, scalar
T)
const;
165 inline scalar
Sp(
const scalar
p,
const scalar
T)
const;
168 inline scalar
Sv(
const scalar
p,
const scalar
T)
const;
171 inline scalar
psi(scalar
p, scalar
T)
const;
174 inline scalar
Z(scalar
p, scalar
T)
const;
177 inline scalar
CpMCv(scalar
p, scalar
T)
const;
183 void write(Ostream& os)
const;
200 friend perfectFluid
operator* <Specie>
206 friend perfectFluid
operator== <Specie>
215 friend Ostream& operator<< <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].
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
static word typeName()
Return the instantiated type name.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
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 [].
An Ostream is an abstract base class for all output systems (streams, files, token lists...
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].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Simple extension of the perfect gas equation of state to liquids by the addition of a constant densit...
word name(const complex &)
Return a string representation of a complex.
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
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].
void write(Ostream &os) const
Write to Ostream.
void operator+=(const perfectFluid &)
scalar Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].