78 #ifndef rhoTabulated_H 79 #define rhoTabulated_H 90 template<
class Specie>
93 template<
class Specie>
94 inline rhoTabulated<Specie>
operator+
100 template<
class Specie>
107 template<
class Specie>
110 const rhoTabulated<Specie>&,
111 const rhoTabulated<Specie>&
114 template<
class Specie>
118 const rhoTabulated<Specie>&
126 template<
class Specie>
169 return "rhoTabulated<" +
word(Specie::typeName_()) +
'>';
182 inline scalar
rho(scalar
p, scalar
T)
const;
186 inline scalar
H(
const scalar
p,
const scalar
T)
const;
190 inline scalar
Cp(scalar
p, scalar
T)
const;
194 inline scalar
E(
const scalar
p,
const scalar
T)
const;
198 inline scalar
Cv(scalar
p, scalar
T)
const;
202 inline scalar
Sp(
const scalar
p,
const scalar
T)
const;
206 inline scalar
Sv(
const scalar
p,
const scalar
T)
const;
209 inline scalar
psi(scalar
p, scalar
T)
const;
212 inline scalar
Z(scalar
p, scalar
T)
const;
216 inline scalar
CpMCv(scalar
p, scalar
T)
const;
222 void write(Ostream& os)
const;
239 friend rhoTabulated
operator* <Specie>
245 friend rhoTabulated
operator== <Specie>
254 friend Ostream& operator<< <Specie>
void operator+=(const rhoTabulated &)
scalar Z(scalar p, scalar T) const
Return compression factor [].
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
static autoPtr< rhoTabulated > New(const dictionary &dict)
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))
static word typeName()
Return the instantiated type name.
scalar E(const scalar p, const scalar T) const
Return internal energy contribution [J/kg].
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].
A class for handling words, derived from string.
scalar Sp(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cp/T [J/kg/K].
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
Incompressible of equation of state using uniform tabulated density vs pressure and temperature...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
autoPtr< rhoTabulated > clone() const
Construct and return a clone.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void write(Ostream &os) const
Write to Ostream.
word name(const complex &)
Return a string representation of a complex.
scalar Sv(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cv/T [J/kg/K].
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
scalar Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].
scalar Cp(scalar p, scalar T) const
Return Cp contribution [J/(kg K].
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
rhoTabulated(const Specie &sp, const table2D &rho)
Construct from components.
void operator*=(const scalar)