Ideal gas equation of state. More...
#include <ideal_gas.hpp>
Public Member Functions | |
IdealGas (double AdiabaticIndex) | |
Class constructor. More... | |
double | getAdiabaticIndex (void) const |
Returns the adiabatic index. More... | |
double | dp2e (double d, double p, tvector const &tracers, vector< string > const &tracernames) const |
Calculates the thermal energy per unit mass. More... | |
double | de2p (double d, double e, tvector const &tracers, vector< string > const &tracernames) const |
Calculates the pressure. More... | |
double | dp2c (double d, double p, tvector const &tracers, vector< string > const &tracernames) const |
Calculates the speed of sound. More... | |
double | de2c (double d, double e, tvector const &tracers, vector< string > const &tracernames) const |
Calculates the speed of sound. More... | |
double | dp2s (double d, double p, tvector const &tracers, vector< string > const &tracernames) const |
Calculates the entropy per unit mass. More... | |
double | sd2p (double s, double d, tvector const &tracers, vector< string > const &tracernames) const |
Calculates the pressure from the netropy. More... | |
Ideal gas equation of state.
Definition at line 13 of file ideal_gas.hpp.
|
explicit |
Class constructor.
AdiabaticIndex | Adiabatic index |
Definition at line 5 of file ideal_gas.cpp.
|
virtual |
Calculates the speed of sound.
d | Density |
e | Specific thermal energy |
tracers | Tracers |
tracernames | The names of the tracers |
Implements EquationOfState.
Definition at line 53 of file ideal_gas.cpp.
|
virtual |
Calculates the pressure.
d | Density |
e | Specific thermal energy |
tracers | Tracers |
tracernames | The names of the tracers |
Implements EquationOfState.
Definition at line 18 of file ideal_gas.cpp.
|
virtual |
Calculates the speed of sound.
d | Density |
p | Pressure |
tracers | Tracers |
tracernames | The names of the tracers |
Implements EquationOfState.
Definition at line 40 of file ideal_gas.cpp.
|
virtual |
Calculates the thermal energy per unit mass.
d | Density |
p | Pressure |
tracers | Tracers |
tracernames | The names of the tracers |
Implements EquationOfState.
Definition at line 13 of file ideal_gas.cpp.
|
virtual |
Calculates the entropy per unit mass.
d | Density |
p | Pressure |
tracers | Tracers |
tracernames | The names of the tracers |
Implements EquationOfState.
Definition at line 59 of file ideal_gas.cpp.
double IdealGas::getAdiabaticIndex | ( | void | ) | const |
Returns the adiabatic index.
Definition at line 8 of file ideal_gas.cpp.
|
virtual |
Calculates the pressure from the netropy.
s | Entropy |
d | Density |
tracers | Tracers |
tracernames | The names of the tracers |
Implements EquationOfState.
Definition at line 64 of file ideal_gas.cpp.