76 template<
class Specie>
class rPolynomial;
78 template<
class Specie>
85 template<
class Specie>
92 template<
class Specie>
99 template<
class Specie>
111 template<
class Specie>
150 const coeffList& coeffs
171 return "rPolynomial<" +
word(Specie::typeName_()) +
'>';
184 inline scalar
rho(scalar
p, scalar
T)
const;
187 inline scalar
H(
const scalar
p,
const scalar
T)
const;
190 inline scalar
Cp(scalar
p, scalar
T)
const;
193 inline scalar
E(
const scalar
p,
const scalar
T)
const;
196 inline scalar
Cv(scalar
p, scalar
T)
const;
199 inline scalar
S(
const scalar
p,
const scalar
T)
const;
202 inline scalar
psi(scalar
p, scalar
T)
const;
205 inline scalar
Z(scalar
p, scalar
T)
const;
208 inline scalar
CpMCv(scalar
p, scalar
T)
const;
246 friend Ostream& operator<< <Specie>
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
scalar Z(scalar p, scalar T) const
Return compression factor [].
Reciprocal polynomial equation of state for liquids and solids.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
scalar S(const scalar p, const scalar T) const
Return entropy [J/kg/K].
scalar Cv(scalar p, scalar T) const
Return Cv departure [J/(kg K].
static word typeName()
Return the instantiated type name.
autoPtr< rPolynomial > clone() const
Construct and return a clone.
scalar H(const scalar p, const scalar T) const
Return enthalpy departure [J/kg].
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
A class for handling words, derived from Foam::string.
void operator+=(const rPolynomial &)
void operator*=(const scalar)
void write(Ostream &os) const
Write to Ostream.
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
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 CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
static autoPtr< rPolynomial > New(const dictionary &dict)
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
scalar E(const scalar p, const scalar T) const
Return internal energy departure [J/kg].
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))
rPolynomial(const Specie &sp, const coeffList &coeffs)
Construct from components.