Incompressible, polynomial form of equation of state, using a polynomial function for density. More...
Public Member Functions | |
icoPolynomial (const Specie &sp, const Polynomial< PolySize > &rhoPoly) | |
Construct from components. More... | |
icoPolynomial (const dictionary &dict) | |
Construct from dictionary. More... | |
icoPolynomial (const word &name, const icoPolynomial &) | |
Construct as named copy. More... | |
autoPtr< icoPolynomial > | 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 departure [J/kg]. More... | |
scalar | Cp (scalar p, scalar T) const |
Return Cp departure [J/(kg K]. More... | |
scalar | E (const scalar p, const scalar T) const |
Return internal energy departure [J/kg]. More... | |
scalar | Cv (scalar p, scalar T) const |
Return Cv departure [J/(kg K]. More... | |
scalar | S (const scalar p, const scalar T) const |
Return entropy [J/(kg K)]. More... | |
scalar | psi (scalar p, scalar T) const |
Return compressibility rho/p [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 icoPolynomial &) |
void | operator*= (const scalar) |
Static Public Member Functions | |
static autoPtr< icoPolynomial > | New (const dictionary &dict) |
static word | typeName () |
Return the instantiated type name. More... | |
Static Public Attributes | |
static const bool | incompressible = true |
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 | |
icoPolynomial | operator+ (const icoPolynomial &, const icoPolynomial &) |
icoPolynomial | operator* (const scalar s, const icoPolynomial &) |
icoPolynomial | operator== (const icoPolynomial &, const icoPolynomial &) |
Ostream & | operator (Ostream &, const icoPolynomial &) |
Incompressible, polynomial form of equation of state, using a polynomial function for density.
Property | Description |
---|---|
rhoCoeffs<8> | Density polynomial coefficients |
Example of the specification of the equation of state:
equationOfState { rhoCoeffs<8> ( 1000 -0.05 0.003 0 0 0 0 0 ); }
The polynomial expression is evaluated as so:
Definition at line 84 of file icoPolynomial.H.
|
inline |
Construct from components.
Definition at line 27 of file icoPolynomialI.H.
|
explicit |
Construct from dictionary.
Definition at line 32 of file icoPolynomial.C.
|
inline |
Construct as named copy.
|
inline |
Construct and return a clone.
Definition at line 53 of file icoPolynomialI.H.
References Foam::New().
|
inlinestatic |
Definition at line 61 of file icoPolynomialI.H.
References dict, and Foam::New().
|
inlinestatic |
Return the instantiated type name.
Definition at line 182 of file icoPolynomial.H.
|
inline |
Return density [kg/m^3].
Definition at line 71 of file icoPolynomialI.H.
References Foam::T().
|
inline |
Return enthalpy departure [J/kg].
Definition at line 82 of file icoPolynomialI.H.
|
inline |
Return Cp departure [J/(kg K].
Definition at line 93 of file icoPolynomialI.H.
|
inline |
Return internal energy departure [J/kg].
Definition at line 104 of file icoPolynomialI.H.
|
inline |
Return Cv departure [J/(kg K].
Definition at line 115 of file icoPolynomialI.H.
|
inline |
Return entropy [J/(kg K)].
Definition at line 126 of file icoPolynomialI.H.
|
inline |
Return compressibility rho/p [s^2/m^2].
Definition at line 137 of file icoPolynomialI.H.
|
inline |
Return compression factor [].
Definition at line 148 of file icoPolynomialI.H.
|
inline |
Return (Cp - Cv) [J/(kg K].
Definition at line 159 of file icoPolynomialI.H.
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 42 of file icoPolynomial.C.
References Ostream::beginBlock(), Ostream::endBlock(), os(), Foam::vtk::write(), and Ostream::writeEntry().
|
inline |
Definition at line 172 of file icoPolynomialI.H.
References Foam::mag(), and Y.
|
inline |
Definition at line 190 of file icoPolynomialI.H.
References s.
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
Is the equation of state is incompressible i.e. rho != f(p)
Definition at line 193 of file icoPolynomial.H.
|
static |
Is the equation of state is isochoric i.e. rho = const.
Definition at line 198 of file icoPolynomial.H.