55 template<
class Specie>
class linear;
57 template<
class Specie>
58 inline linear<Specie>
operator+
60 const linear<Specie>&,
64 template<
class Specie>
65 inline linear<Specie>
operator*
71 template<
class Specie>
72 inline linear<Specie>
operator==
74 const linear<Specie>&,
78 template<
class Specie>
90 template<
class Specie>
123 inline autoPtr<linear>
clone()
const;
126 inline static autoPtr<linear>
New(
const dictionary&
dict);
134 return "linear<" +
word(Specie::typeName_()) +
'>';
147 inline scalar
rho(scalar
p, scalar
T)
const;
150 inline scalar
H(
const scalar
p,
const scalar
T)
const;
153 inline scalar
Cp(scalar
p, scalar
T)
const;
156 inline scalar
E(
const scalar
p,
const scalar
T)
const;
159 inline scalar
Cv(scalar
p, scalar
T)
const;
162 inline scalar
Sp(
const scalar
p,
const scalar
T)
const;
165 inline scalar
Sv(
const scalar
p,
const scalar
T)
const;
168 inline scalar
psi(scalar
p, scalar
T)
const;
171 inline scalar
Z(scalar
p, scalar
T)
const;
174 inline scalar
CpMCv(scalar
p, scalar
T)
const;
180 void write(Ostream& os)
const;
191 friend linear operator+ <Specie>
197 friend linear
operator* <Specie>
203 friend linear
operator== <Specie>
212 friend Ostream& operator<< <Specie>
void operator+=(const linear &)
scalar H(const scalar p, const scalar T) const
Return enthalpy contribution [J/kg].
scalar Sv(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cv/T [J/kg/K].
static autoPtr< linear > New(const dictionary &dict)
Central-differencing interpolation scheme class.
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
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].
void operator*=(const scalar)
linear(const fvMesh &mesh)
Construct from mesh.
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].
static word typeName()
Return the instantiated type name.
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
void write(Ostream &os) const
Write to Ostream.
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
autoPtr< linear > clone() const
Construct and return a clone.
scalar Cp(scalar p, scalar T) const
Return Cp contribution [J/(kg K].
scalar E(const scalar p, const scalar T) const
Return internal energy contribution [J/kg].
scalar Z(scalar p, scalar T) const
Return compression factor [].
scalar Sp(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cp/T [J/kg/K].