Go to the documentation of this file.
41 #ifndef perfectFluid_H
42 #define perfectFluid_H
55 template<
class Specie>
62 template<
class Specie>
69 template<
class Specie>
76 template<
class Specie>
88 template<
class Specie>
132 return "perfectFluid<" +
word(Specie::typeName_()) +
'>';
145 inline scalar
R()
const;
148 inline scalar
rho(scalar
p, scalar
T)
const;
151 inline scalar
H(
const scalar
p,
const scalar
T)
const;
154 inline scalar
Cp(scalar
p, scalar
T)
const;
157 inline scalar
E(
const scalar
p,
const scalar
T)
const;
160 inline scalar
Cv(scalar
p, scalar
T)
const;
163 inline scalar
S(
const scalar
p,
const scalar
T)
const;
166 inline scalar
psi(scalar
p, scalar
T)
const;
169 inline scalar
Z(scalar
p, scalar
T)
const;
172 inline scalar
CpMCv(scalar
p, scalar
T)
const;
210 friend Ostream& operator<< <Specie>
static const bool incompressible
Perfect gas equation of state.
A class for handling words, derived from Foam::string.
perfectFluid(const Specie &sp, const scalar R, const scalar rho0)
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
void write(Ostream &os) const
scalar CpMCv(scalar p, scalar T) const
autoPtr< perfectFluid > clone() const
void operator*=(const scalar)
scalar H(const scalar p, const scalar T) const
scalar Cv(scalar p, scalar T) const
scalar psi(scalar p, scalar T) const
static autoPtr< perfectFluid > New(const dictionary &dict)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
scalar rho(scalar p, scalar T) const
scalar Cp(scalar p, scalar T) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
void operator+=(const perfectFluid &)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
static const bool isochoric
scalar Z(scalar p, scalar T) const
word name(const expressions::valueTypeCode typeCode)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
scalar S(const scalar p, const scalar T) const