41#ifndef PengRobinsonGas_H
42#define PengRobinsonGas_H
53template<
class Specie>
class PengRobinsonGas;
148 return "PengRobinsonGas<" +
word(Specie::typeName_()) +
'>';
161 inline scalar
rho(scalar
p, scalar
T)
const;
164 inline scalar
H(
const scalar
p,
const scalar
T)
const;
167 inline scalar
Cp(scalar
p, scalar
T)
const;
170 inline scalar
E(
const scalar
p,
const scalar
T)
const;
173 inline scalar
Cv(scalar
p, scalar
T)
const;
176 inline scalar
S(
const scalar
p,
const scalar
T)
const;
179 inline scalar
psi(scalar
p, scalar
T)
const;
182 inline scalar
Z(scalar
p, scalar
T)
const;
185 inline scalar
CpMCv(scalar
p, scalar
T)
const;
222 friend Ostream& operator<< <Specie>
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
PengRobinsonGas gas equation of state.
scalar E(const scalar p, const scalar T) const
Return internal energy departure [J/kg].
scalar H(const scalar p, const scalar T) const
Return enthalpy departure [J/kg].
static word typeName()
Return the instantiated type name.
scalar S(const scalar p, const scalar T) const
Return entropy [J/(kg K)].
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
void operator+=(const PengRobinsonGas &)
static autoPtr< PengRobinsonGas > New(const dictionary &dict)
autoPtr< PengRobinsonGas > clone() const
Construct and return a clone.
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
scalar Z(scalar p, scalar T) const
Return compression factor [].
void operator*=(const scalar)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling words, derived from Foam::string.
const volScalarField & psi
const volScalarField & Cv
const volScalarField & Cp
OBJstream os(runTime.globalPath()/outputName)
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))
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.