equation_of_state.hpp
Go to the documentation of this file.
1 
6 #ifndef EQUATION_OF_STATE_HPP
7 #define EQUATION_OF_STATE_HPP 1
8 
9 #include <string>
10 #include <vector>
11 #include <vector>
13 typedef std::vector<double> tvector;
15 typedef std::vector<bool> svector;
16 using std::string;
17 using std::vector;
18 
21 {
22 public:
23 
31  virtual double dp2e(double d, double p, tvector const& tracers = tvector(),vector<string> const& tracernames = vector<string>())
32  const = 0;
33 
41  virtual double de2p(double d, double e,
42  tvector const& tracers = tvector(), vector<string> const& tracernames = vector<string>()) const = 0;
43 
51  virtual double de2c(double d, double e,
52  tvector const& tracers = tvector(), vector<string> const& tracernames = vector<string>()) const = 0;
53 
61  virtual double dp2c(double d, double p,
62  tvector const& tracers = tvector(), vector<string> const& tracernames = vector<string>()) const = 0;
63 
71  virtual double dp2s(double d, double p,
72  tvector const& tracers = tvector(), vector<string> const& tracernames = vector<string>()) const = 0;
73 
81  virtual double sd2p(double s, double d,
82  tvector const& tracers = tvector(), vector<string> const& tracernames = vector<string>()) const = 0;
83 
84  virtual ~EquationOfState(void);
85 };
86 
87 #endif
std::vector< bool > svector
std::vector< double > tvector
virtual double de2p(double d, double e, tvector const &tracers=tvector(), vector< string > const &tracernames=vector< string >()) const =0
Calculates the pressure.
virtual double dp2c(double d, double p, tvector const &tracers=tvector(), vector< string > const &tracernames=vector< string >()) const =0
Calculates the speed of sound.
virtual double dp2s(double d, double p, tvector const &tracers=tvector(), vector< string > const &tracernames=vector< string >()) const =0
Calculates the entropy per unit mass.
virtual double sd2p(double s, double d, tvector const &tracers=tvector(), vector< string > const &tracernames=vector< string >()) const =0
Calculates the pressure from the netropy.
Base class for equation of state.
virtual double dp2e(double d, double p, tvector const &tracers=tvector(), vector< string > const &tracernames=vector< string >()) const =0
Calculates the thermal energy per unit mass.
virtual double de2c(double d, double e, tvector const &tracers=tvector(), vector< string > const &tracernames=vector< string >()) const =0
Calculates the speed of sound.