53 template<
class Specie>
class rhoConst;
55 template<
class Specie>
62 template<
class Specie>
69 template<
class Specie>
76 template<
class Specie>
88 template<
class Specie>
104 inline rhoConst(
const Specie& sp,
const scalar
rho);
121 return "rhoConst<" +
word(Specie::typeName_()) +
'>';
134 inline scalar
rho(scalar
p, scalar
T)
const;
137 inline scalar
H(
const scalar
p,
const scalar
T)
const;
140 inline scalar
Cp(scalar
p, scalar
T)
const;
143 inline scalar
E(
const scalar
p,
const scalar
T)
const;
146 inline scalar
Cv(scalar
p, scalar
T)
const;
149 inline scalar
S(
const scalar
p,
const scalar
T)
const;
152 inline scalar
psi(scalar
p, scalar
T)
const;
155 inline scalar
Z(scalar
p, scalar
T)
const;
158 inline scalar
CpMCv(scalar
p, scalar
T)
const;
196 friend Ostream& operator<< <Specie>
void operator+=(const rhoConst &)
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
scalar E(const scalar p, const scalar T) const
Return internal energy departure [J/kg].
A list of keyword definitions, which are a keyword followed by a number of values (eg...
scalar psi(scalar p, scalar T) const
Return compressibility rho/p [s^2/m^2].
scalar H(const scalar p, const scalar T) const
Return enthalpy departure [J/kg].
void write(Ostream &os) const
Write to Ostream.
scalar Z(scalar p, scalar T) const
Return compression factor [].
rhoConst(const Specie &sp, const scalar rho)
Construct from components.
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
scalar S(const scalar p, const scalar T) const
Return entropy [J/(kg K)].
scalar Cp(scalar p, scalar T) const
Return Cp departure [J/(kg K].
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
scalar Cv(scalar p, scalar T) const
Return Cv departure [J/(kg K].
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
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)
autoPtr< rhoConst > clone() const
Construct and return a clone.
static word typeName()
Return the instantiated type name.
void operator*=(const scalar)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
RhoConst (rho = const) of state.
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))