57 template<
class Specie>
class linear;
59 template<
class Specie>
60 inline linear<Specie>
operator+
62 const linear<Specie>&,
66 template<
class Specie>
67 inline linear<Specie>
operator*
73 template<
class Specie>
74 inline linear<Specie>
operator==
76 const linear<Specie>&,
80 template<
class Specie>
92 template<
class Specie>
125 inline autoPtr<linear>
clone()
const;
128 inline static autoPtr<linear>
New(
const dictionary&
dict);
136 return "linear<" + word(Specie::typeName_()) +
'>';
149 inline scalar
rho(scalar
p, scalar
T)
const;
152 inline scalar
H(
const scalar
p,
const scalar
T)
const;
155 inline scalar
Cp(scalar
p, scalar
T)
const;
158 inline scalar
E(
const scalar
p,
const scalar
T)
const;
161 inline scalar
Cv(scalar
p, scalar
T)
const;
164 inline scalar
S(
const scalar
p,
const scalar
T)
const;
167 inline scalar
psi(scalar
p, scalar
T)
const;
170 inline scalar
Z(scalar
p, scalar
T)
const;
173 inline scalar
CpMCv(scalar
p, scalar
T)
const;
190 friend linear operator+ <Specie>
196 friend linear operator* <Specie>
202 friend linear operator== <Specie>
211 friend Ostream& operator<< <Specie>
void operator+=(const linear &)
scalar H(const scalar p, const scalar T) const
Return enthalpy departure [J/kg].
static autoPtr< linear > New(const dictionary &dict)
Central-differencing interpolation scheme class.
scalar psi(scalar p, scalar T) const
Return compressibility rho/p [s^2/m^2].
scalar S(const scalar p, const scalar T) const
Return entropy [J/(kg K)].
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
scalar Cv(scalar p, scalar T) const
Return Cv departure [J/(kg K].
void operator*=(const scalar)
linear(const fvMesh &mesh)
Construct from mesh.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
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 departure [J/(kg K].
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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 E(const scalar p, const scalar T) const
Return internal energy departure [J/kg].
scalar Z(scalar p, scalar T) const
Return compression factor [].