Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
|
An abstract class for the calculation of energy and sound speed based on different EOS models. More...
#include <eos.h>
Public Member Functions | |
virtual | ~EOS () |
Destructor. | |
int | getEOSChoice () |
Getter function of the protected data member m_iEOSChoice. | |
virtual void | getParameters (std::vector< double > ¶ms)=0 |
Getter function of all the parameters specified in the construtor argument list. More... | |
virtual double | getEnergy (double pressure, double density)=0 |
Calculates energy based on this EOS and the input pressure and density values. More... | |
virtual double | getSoundSpeed (double pressure, double density)=0 |
Calculates sound speed based on this EOS and the input pressure and density values. More... | |
Protected Attributes | |
int | m_iEOSChoice |
The eos choice: 1=Polytropic gas; 2=Stiffened Polytropic gas. | |
An abstract class for the calculation of energy and sound speed based on different EOS models.
Co-author: Yu, Kwangmin (yukwa) on initial interface design ngmi n@gma il.c om
Created on: 2014/05/01
|
pure virtual |
Calculates energy based on this EOS and the input pressure and density values.
[in] | pressure | the input pressure value |
[in] | density | the input density value |
Implemented in StiffPolytropicGasEOS, and PolytropicGasEOS.
|
pure virtual |
Getter function of all the parameters specified in the construtor argument list.
[out] | params | All the parameters of this EOS |
Implemented in StiffPolytropicGasEOS, and PolytropicGasEOS.
|
pure virtual |
Calculates sound speed based on this EOS and the input pressure and density values.
[in] | pressure | the input pressure value |
[in] | density | the input density value |
Implemented in StiffPolytropicGasEOS, and PolytropicGasEOS.