63 #ifndef perfectFluid_H 64 #define perfectFluid_H 75 template<
class Specie>
class perfectFluid;
77 template<
class Specie>
78 inline perfectFluid<Specie>
operator+
80 const perfectFluid<Specie>&,
81 const perfectFluid<Specie>&
84 template<
class Specie>
85 inline perfectFluid<Specie>
operator*
88 const perfectFluid<Specie>&
91 template<
class Specie>
92 inline perfectFluid<Specie>
operator==
94 const perfectFluid<Specie>&,
95 const perfectFluid<Specie>&
98 template<
class Specie>
102 const perfectFluid<Specie>&
110 template<
class Specie>
154 return "perfectFluid<" +
word(Specie::typeName_()) +
'>';
167 inline scalar
R()
const;
170 inline scalar
rho(scalar
p, scalar
T)
const;
173 inline scalar
H(
const scalar
p,
const scalar
T)
const;
176 inline scalar
Cp(scalar
p, scalar
T)
const;
179 inline scalar
E(
const scalar
p,
const scalar
T)
const;
182 inline scalar
Cv(scalar
p, scalar
T)
const;
185 inline scalar
Sp(
const scalar
p,
const scalar
T)
const;
188 inline scalar
Sv(
const scalar
p,
const scalar
T)
const;
191 inline scalar
psi(scalar
p, scalar
T)
const;
194 inline scalar
Z(scalar
p, scalar
T)
const;
197 inline scalar
CpMCv(scalar
p, scalar
T)
const;
200 inline scalar
alphav(
const scalar
p,
const scalar
T)
const;
206 void write(Ostream& os)
const;
223 friend perfectFluid
operator* <Specie>
229 friend perfectFluid
operator== <Specie>
238 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].
scalar alphav(const scalar p, const scalar T) const
Return volumetric coefficient of thermal expansion [1/T].
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].