39 #ifndef adiabaticPerfectFluid_H 40 #define adiabaticPerfectFluid_H 53 template<
class Specie>
57 const adiabaticPerfectFluid<Specie>&
60 template<
class Specie>
61 inline adiabaticPerfectFluid<Specie>
operator*
64 const adiabaticPerfectFluid<Specie>&
67 template<
class Specie>
68 inline adiabaticPerfectFluid<Specie>
operator==
70 const adiabaticPerfectFluid<Specie>&,
71 const adiabaticPerfectFluid<Specie>&
74 template<
class Specie>
78 const adiabaticPerfectFluid<Specie>&
86 template<
class Specie>
145 return "adiabaticPerfectFluid<" +
word(Specie::typeName_()) +
'>';
158 inline scalar
rho(scalar
p, scalar
T)
const;
161 inline scalar
H(
const scalar
p,
const scalar
T)
const;
164 inline scalar
Cp(scalar
p, scalar
T)
const;
167 inline scalar
E(
const scalar
p,
const scalar
T)
const;
170 inline scalar
Cv(scalar
p, scalar
T)
const;
173 inline scalar
Sp(
const scalar
p,
const scalar
T)
const;
176 inline scalar
Sv(
const scalar
p,
const scalar
T)
const;
179 inline scalar
psi(scalar
p, scalar
T)
const;
182 inline scalar
Z(scalar
p, scalar
T)
const;
185 inline scalar
CpMCv(scalar
p, scalar
T)
const;
191 void write(Ostream& os)
const;
205 const adiabaticPerfectFluid&
208 friend adiabaticPerfectFluid
operator* <Specie>
211 const adiabaticPerfectFluid&
214 friend adiabaticPerfectFluid
operator== <Specie>
216 const adiabaticPerfectFluid&,
217 const adiabaticPerfectFluid&
223 friend Ostream& operator<< <Specie>
226 const adiabaticPerfectFluid&
scalar Z(scalar p, scalar T) const
Return compression factor [].
scalar E(const scalar p, const scalar T) const
Return internal energy contribution [J/kg].
static autoPtr< adiabaticPerfectFluid > New(const dictionary &dict)
A list of keyword definitions, which are a keyword followed by any number of values (e...
adiabaticPerfectFluid(const Specie &sp, const scalar p0, const scalar rho0, const scalar gamma, const scalar B)
Construct from components.
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
static word typeName()
Return the instantiated type name.
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
void operator+=(const adiabaticPerfectFluid &)
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 Cp(scalar p, scalar T) const
Return Cp contribution [J/(kg K].
A class for handling words, derived from string.
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
scalar Sp(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cp/T [J/kg/K].
scalar H(const scalar p, const scalar T) const
Return enthalpy contribution [J/kg].
An Ostream is an abstract base class for all output systems (streams, files, token lists...
autoPtr< adiabaticPerfectFluid > clone() const
Construct and return a clone.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
word name(const complex &)
Return a string representation of a complex.
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
scalar Sv(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cv/T [J/kg/K].
Adiabatic perfect fluid equation of state.
scalar Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].
void operator*=(const scalar)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
void write(Ostream &os) const
Write to Ostream.