Hydrodynamical relations. More...
#include "hydrodynamic_variables.hpp"
#include "equation_of_state.hpp"
#include "../../misc/universal_error.hpp"
Go to the source code of this file.
Functions | |
Primitive | CalcPrimitive (double density, double pressure, Vector2D const &velocity, EquationOfState const &eos) |
Calculates the primitive variables. More... | |
Primitive | Conserved2Primitive (Conserved const &c, EquationOfState const &eos) |
Calculates the primitive variables from the conserved. More... | |
Primitive | make_eos_consistent (Primitive const &p, EquationOfState const &eos) |
Takes a set of primitive variables that do not necessarily satisfy the equation of state, and uses the density and pressure and velocity to produce a set of primitive variables that does. More... | |
Hydrodynamical relations.
Definition in file hydrodynamics.hpp.
Primitive CalcPrimitive | ( | double | density, |
double | pressure, | ||
Vector2D const & | velocity, | ||
EquationOfState const & | eos | ||
) |
Calculates the primitive variables.
density | Density |
pressure | Pressure |
velocity | Velocity |
eos | Equation of state |
Definition at line 4 of file hydrodynamics.cpp.
Primitive Conserved2Primitive | ( | Conserved const & | c, |
EquationOfState const & | eos | ||
) |
Calculates the primitive variables from the conserved.
c | Conserved variables |
eos | Equation of state |
Definition at line 16 of file hydrodynamics.cpp.
Primitive make_eos_consistent | ( | Primitive const & | p, |
EquationOfState const & | eos | ||
) |
Takes a set of primitive variables that do not necessarily satisfy the equation of state, and uses the density and pressure and velocity to produce a set of primitive variables that does.
p | Primitive variables |
eos | Equation of state |
Definition at line 45 of file hydrodynamics.cpp.