Calculates energy and sound speed based on the Stiffened Polytropic gas eos model.
More...
#include <eos.h>
|
| StiffPolytropicGasEOS (double gamma, double pinf, double einf) |
| Constructor. More...
|
|
virtual | ~StiffPolytropicGasEOS () |
| Destructor.
|
|
virtual void | getParameters (std::vector< double > ¶ms) |
| Getter function of all the parameters specified in the construtor argument list. More...
|
|
virtual double | getEnergy (double pressure, double density) |
| Calculates energy based on the Stiffened Polytropic gas eos and the input pressure and density values. More...
|
|
virtual double | getSoundSpeed (double pressure, double density) |
| Calculates sound speed based on the Stiffened Polytropic gas eos and the input pressure and density values. More...
|
|
virtual | ~EOS () |
| Destructor.
|
|
int | getEOSChoice () |
| Getter function of the protected data member m_iEOSChoice.
|
|
|
double | m_fGamma |
| The parameter gamma.
|
|
double | m_fPinf |
| The parameter pressure infinity.
|
|
double | m_fEinf |
| The parameter energy infinity.
|
|
int | m_iEOSChoice |
| The eos choice: 1=Polytropic gas; 2=Stiffened Polytropic gas.
|
|
Calculates energy and sound speed based on the Stiffened Polytropic gas eos model.
- Author
- Chen, Hsin-Chiang (morri.nosp@m.sche.nosp@m.n2008.nosp@m.@gma.nosp@m.il.co.nosp@m.m)
Co-author: Yu, Kwangmin (yukwa.nosp@m.ngmi.nosp@m.n@gma.nosp@m.il.c.nosp@m.om) on initial interface design
- Version
- 1.0
- Date
- 2014/05/09
Created on: 2014/05/01
StiffPolytropicGasEOS::StiffPolytropicGasEOS |
( |
double |
gamma, |
|
|
double |
pinf, |
|
|
double |
einf |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
[in] | gamma | The parameter gamma |
[in] | pinf | The parameter pressure infinity |
[in] | einf | The parameter energy infinity |
double StiffPolytropicGasEOS::getEnergy |
( |
double |
pressure, |
|
|
double |
density |
|
) |
| |
|
virtual |
Calculates energy based on the Stiffened Polytropic gas eos and the input pressure and density values.
- Parameters
-
[in] | pressure | the input pressure value |
[in] | density | the input density value |
- Returns
- the calculated energy value
Implements EOS.
virtual void StiffPolytropicGasEOS::getParameters |
( |
std::vector< double > & |
params | ) |
|
|
inlinevirtual |
Getter function of all the parameters specified in the construtor argument list.
- Parameters
-
[out] | params | the params vector contains m_fGamma, m_fPinf, and m_fEinf |
- Returns
- None
Implements EOS.
double StiffPolytropicGasEOS::getSoundSpeed |
( |
double |
pressure, |
|
|
double |
density |
|
) |
| |
|
virtual |
Calculates sound speed based on the Stiffened Polytropic gas eos and the input pressure and density values.
- Parameters
-
[in] | pressure | the input pressure value |
[in] | density | the input density value |
- Returns
- the calculated sound speed value
Implements EOS.
The documentation for this class was generated from the following files: