61 #ifndef icoTabulated_H 62 #define icoTabulated_H 73 template<
class Specie>
class icoTabulated;
75 template<
class Specie>
76 Ostream& operator<<(Ostream& os, const icoTabulated<Specie>&);
83 template<
class Specie>
102 const nonUniformTable&
rho 123 return "icoTabulated<" +
word(Specie::typeName_()) +
'>';
136 inline scalar
rho(scalar
p, scalar
T)
const;
139 inline scalar
H(
const scalar
p,
const scalar
T)
const;
142 inline scalar
Cp(scalar
p, scalar
T)
const;
145 inline scalar
E(
const scalar
p,
const scalar
T)
const;
148 inline scalar
Cv(scalar
p, scalar
T)
const;
151 inline scalar
S(
const scalar
p,
const scalar
T)
const;
154 inline scalar
psi(scalar
p, scalar
T)
const;
157 inline scalar
Z(scalar
p, scalar
T)
const;
160 inline scalar
CpMCv(scalar
p, scalar
T)
const;
171 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 Cp(scalar p, scalar T) const
Return Cp departure [J/(kg K].
static word typeName()
The instantiated type name.
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
Incompressible of equation of state using non-uniform tabulated density vs temperature.
scalar Cv(scalar p, scalar T) const
Return Cv departure [J/(kg K].
void write(Ostream &os) const
Write to Ostream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
autoPtr< icoTabulated > clone() const
Construct and return a clone.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
static autoPtr< icoTabulated > New(const dictionary &dict)
Selector from dictionary.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
icoTabulated(const Specie &sp, const nonUniformTable &rho)
Construct from components.
scalar S(const scalar p, const scalar T) const
Return entropy departure to the integral of Cp/T [J/kg/K].
scalar Z(scalar p, scalar T) const
Return compression factor [].
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
scalar H(const scalar p, const scalar T) const
Return enthalpy departure [J/kg].
scalar E(const scalar p, const scalar T) const
Return internal energy departure [J/kg].