Functions
hydrodynamics.hpp File Reference

Hydrodynamical relations. More...

#include "hydrodynamic_variables.hpp"
#include "equation_of_state.hpp"
#include "../../misc/universal_error.hpp"
Include dependency graph for hydrodynamics.hpp:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Hydrodynamical relations.

Author
Almog Yalinewich

Definition in file hydrodynamics.hpp.

Function Documentation

◆ CalcPrimitive()

Primitive CalcPrimitive ( double  density,
double  pressure,
Vector2D const &  velocity,
EquationOfState const &  eos 
)

Calculates the primitive variables.

Parameters
densityDensity
pressurePressure
velocityVelocity
eosEquation of state
Returns
Primitive variables

Definition at line 4 of file hydrodynamics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Conserved2Primitive()

Primitive Conserved2Primitive ( Conserved const &  c,
EquationOfState const &  eos 
)

Calculates the primitive variables from the conserved.

Parameters
cConserved variables
eosEquation of state
Returns
Primitive variables

Definition at line 16 of file hydrodynamics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_eos_consistent()

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.

Parameters
pPrimitive variables
eosEquation of state
Returns
Primitive variables

Definition at line 45 of file hydrodynamics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: