ideal_gas_SR.hpp
Go to the documentation of this file.
1 
6 #ifndef IDEAL_GAS_SR_HPP
7 #define IDEAL_GAS_SR_HPP 1
8 
9 #include "../newtonian/common/equation_of_state.hpp"
10 #include "../misc/utils.hpp"
11 
14 {
15 private:
16 
17  double g_;
18 
19 public:
20 
24  explicit IdealGas_SR(double AdiabaticIndex);
25 
29  double getAdiabaticIndex(void) const;
30 
31  double dp2e(double d, double p, tvector const& tracers, vector<string> const& tracernames) const;
32 
33  double de2p(double d, double e, tvector const& tracers, vector<string> const& tracernames) const;
34 
35  double dp2c(double d, double p, tvector const& tracers, vector<string> const& tracernames) const;
36 
37  double de2c(double d, double e, tvector const& tracers, vector<string> const& tracernames) const;
38 
39  double dp2s(double d, double p, tvector const& tracers, vector<string> const& tracernames) const;
40 
41  double sd2p(double s, double d, tvector const& tracers, vector<string> const& tracernames) const;
42 };
43 
44 #endif // IDEAL_GAS_SR_HPP
double dp2c(double d, double p, tvector const &tracers, vector< string > const &tracernames) const
Calculates the speed of sound.
double de2p(double d, double e, tvector const &tracers, vector< string > const &tracernames) const
Calculates the pressure.
double de2c(double d, double e, tvector const &tracers, vector< string > const &tracernames) const
Calculates the speed of sound.
std::vector< double > tvector
IdealGas_SR(double AdiabaticIndex)
Class constructor.
Definition: ideal_gas_SR.cpp:5
Base class for equation of state.
double sd2p(double s, double d, tvector const &tracers, vector< string > const &tracernames) const
Calculates the pressure from the netropy.
double dp2s(double d, double p, tvector const &tracers, vector< string > const &tracernames) const
Calculates the entropy per unit mass.
double dp2e(double d, double p, tvector const &tracers, vector< string > const &tracernames) const
Calculates the thermal energy per unit mass.
Ideal gas equation of state.
double getAdiabaticIndex(void) const
Returns the adiabatic index.
Definition: ideal_gas_SR.cpp:8