Incompressible of equation of state using uniform tabulated density vs pressure and temperature. More...
Public Member Functions | |
rhoTabulated (const Specie &sp, const table2D &rho) | |
Construct from components. More... | |
rhoTabulated (const dictionary &dict) | |
Construct from dictionary. More... | |
rhoTabulated (const word &name, const rhoTabulated &) | |
Construct as named copy. More... | |
autoPtr< rhoTabulated > | clone () const |
Construct and return a clone. More... | |
scalar | rho (scalar p, scalar T) const |
Return density [kg/m^3]. More... | |
scalar | H (const scalar p, const scalar T) const |
Return enthalpy contribution [J/kg]. More... | |
scalar | Cp (scalar p, scalar T) const |
Return Cp contribution [J/(kg K]. More... | |
scalar | E (const scalar p, const scalar T) const |
Return internal energy contribution [J/kg]. More... | |
scalar | Cv (scalar p, scalar T) const |
Return Cv contribution [J/(kg K]. More... | |
scalar | Sp (const scalar p, const scalar T) const |
Return entropy contribution to the integral of Cp/T [J/kg/K]. More... | |
scalar | Sv (const scalar p, const scalar T) const |
Return entropy contribution to the integral of Cv/T [J/kg/K]. More... | |
scalar | psi (scalar p, scalar T) const |
Return compressibility [s^2/m^2]. More... | |
scalar | Z (scalar p, scalar T) const |
Return compression factor []. More... | |
scalar | CpMCv (scalar p, scalar T) const |
Return (Cp - Cv) [J/(kg K]. More... | |
void | write (Ostream &os) const |
Write to Ostream. More... | |
void | operator+= (const rhoTabulated &) |
void | operator*= (const scalar) |
Static Public Member Functions | |
static autoPtr< rhoTabulated > | New (const dictionary &dict) |
static word | typeName () |
Return the instantiated type name. More... | |
Static Public Attributes | |
static const bool | incompressible = false |
Is the equation of state is incompressible i.e. rho != f(p) More... | |
static const bool | isochoric = false |
Is the equation of state is isochoric i.e. rho = const. More... | |
Friends | |
rhoTabulated | operator+ (const rhoTabulated &, const rhoTabulated &) |
rhoTabulated | operator* (const scalar s, const rhoTabulated &) |
rhoTabulated | operator== (const rhoTabulated &, const rhoTabulated &) |
Ostream & | operator (Ostream &, const rhoTabulated &) |
Incompressible of equation of state using uniform tabulated density vs pressure and temperature.
Thermodynamic contributions derived from tabulated density data are not sufficiently accurate and hence the H, Cp, E, Cv, Sp, Sv and CpMCv are not implemented. Thus this equation of state should be used in conjunction with hTabulated or eTabulated thermodynamics in which both the energy and heat capacity are tabulated w.r.t. pressure and temperature avoiding the need for equation of state contributions.
Property | Description |
---|---|
rho | Density vs pressure and temperature table |
Example of the specification of the equation of state:
equationOfState { rho { pLow 1e4; pHigh 5e5; Tlow 200; Thigh 1500; values <m> <n> ( (..........) . . . (..........) ); } }
Definition at line 96 of file rhoTabulated.H.
|
inline |
Construct from components.
Definition at line 32 of file rhoTabulatedI.H.
References Foam::name().
rhoTabulated | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 32 of file rhoTabulated.C.
|
inline |
Construct as named copy.
|
inline |
Construct and return a clone.
Definition at line 58 of file rhoTabulatedI.H.
|
inlinestatic |
Definition at line 69 of file rhoTabulatedI.H.
References dict, and rhoTabulated< Specie >::rho().
|
inlinestatic |
Return the instantiated type name.
Definition at line 172 of file rhoTabulated.H.
|
inline |
Return density [kg/m^3].
Definition at line 82 of file rhoTabulatedI.H.
References rhoTabulated< Specie >::H().
Referenced by rhoTabulated< Specie >::New().
|
inline |
Return enthalpy contribution [J/kg].
Not implemented
Definition at line 93 of file rhoTabulatedI.H.
References rhoTabulated< Specie >::Cp(), and NotImplemented.
Referenced by rhoTabulated< Specie >::rho().
|
inline |
Return Cp contribution [J/(kg K].
Not implemented
Definition at line 105 of file rhoTabulatedI.H.
References rhoTabulated< Specie >::E(), and NotImplemented.
Referenced by rhoTabulated< Specie >::H().
|
inline |
Return internal energy contribution [J/kg].
Not implemented
Definition at line 117 of file rhoTabulatedI.H.
References rhoTabulated< Specie >::Cv(), and NotImplemented.
Referenced by rhoTabulated< Specie >::Cp().
|
inline |
Return Cv contribution [J/(kg K].
Not implemented
Definition at line 129 of file rhoTabulatedI.H.
References NotImplemented, and rhoTabulated< Specie >::Sp().
Referenced by rhoTabulated< Specie >::E().
|
inline |
Return entropy contribution to the integral of Cp/T [J/kg/K].
Not implemented
Definition at line 141 of file rhoTabulatedI.H.
References NotImplemented, and rhoTabulated< Specie >::Sv().
Referenced by rhoTabulated< Specie >::Cv().
|
inline |
Return entropy contribution to the integral of Cv/T [J/kg/K].
Not implemented
Definition at line 153 of file rhoTabulatedI.H.
References NotImplemented, and rhoTabulated< Specie >::psi().
Referenced by rhoTabulated< Specie >::Sp().
|
inline |
Return compressibility [s^2/m^2].
Definition at line 165 of file rhoTabulatedI.H.
References rhoTabulated< Specie >::Z().
Referenced by rhoTabulated< Specie >::Sv().
|
inline |
Return compression factor [].
Definition at line 176 of file rhoTabulatedI.H.
References rhoTabulated< Specie >::CpMCv(), R, rho, and T.
Referenced by rhoTabulated< Specie >::psi().
|
inline |
Return (Cp - Cv) [J/(kg K].
Not implemented
Definition at line 187 of file rhoTabulatedI.H.
References NotImplemented.
Referenced by rhoTabulated< Specie >::Z().
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 42 of file rhoTabulated.C.
References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), UniformTable< Type >::values(), Foam::vtkWriteOps::write(), and Ostream::write().
|
inline |
Definition at line 201 of file rhoTabulatedI.H.
References noCoefficientMixing.
|
inline |
Definition at line 210 of file rhoTabulatedI.H.
References noCoefficientMixing, and s().
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
Is the equation of state is incompressible i.e. rho != f(p)
Definition at line 181 of file rhoTabulated.H.
|
static |
Is the equation of state is isochoric i.e. rho = const.
Definition at line 184 of file rhoTabulated.H.