Hydrodynamic variables. More...
#include "../../tessellation/geometry.hpp"
Go to the source code of this file.
Classes | |
class | Conserved |
Set of conserved variables (extensive) More... | |
class | Primitive |
Primitive hydrodynamic variables. More... | |
Functions | |
bool | primitive_has_nan (Primitive const &p) |
Checks if on of the fields of Primitive is a nan. More... | |
Primitive | operator+ (Primitive const &p1, Primitive const &p2) |
Term by term addition. More... | |
Primitive | operator- (Primitive const &p1, Primitive const &p2) |
Term by term subtraction. More... | |
Primitive | operator/ (Primitive const &p, double s) |
Scalar division. More... | |
Primitive | operator* (Primitive const &p, double s) |
Scalar multiplication on the right. More... | |
Primitive | operator* (double s, Primitive const &p) |
Scalar multiplication on the left. More... | |
Conserved | operator* (double d, Conserved const &c) |
Scalar multiplication. More... | |
Conserved | operator+ (Conserved const &c1, Conserved const &c2) |
Term by term addition. More... | |
Conserved | operator- (Conserved const &c1, Conserved const &c2) |
Term by term subtraction. More... | |
Conserved | operator/ (Conserved const &c, double d) |
Division by a scalar. More... | |
double | TotalEnergyDensity (Primitive const &p) |
Calculates the total energy density. More... | |
Conserved | Primitive2Conserved (Primitive const &p) |
Converts primitive variables to conserved intensive. More... | |
Conserved | Primitive2Conserved (Primitive const &p, double volume) |
Converts primitive variables to conserved extensive. More... | |
Conserved | Primitive2Flux (Primitive const &p, Vector2D const &n) |
Converts primitive variables to flux. More... | |
Hydrodynamic variables.
Definition in file hydrodynamic_variables.hpp.
Scalar multiplication on the right.
p | Primitive |
s | Scalar |
Definition at line 194 of file hydrodynamic_variables.cpp.
Scalar multiplication on the left.
s | Scalar |
p | Primitive variables |
Definition at line 208 of file hydrodynamic_variables.cpp.
Scalar multiplication.
d | Scalar |
c | Conserved variables |
Definition at line 231 of file hydrodynamic_variables.cpp.
Term by term addition.
Definition at line 152 of file hydrodynamic_variables.cpp.
Term by term addition.
Definition at line 217 of file hydrodynamic_variables.cpp.
Term by term subtraction.
Definition at line 165 of file hydrodynamic_variables.cpp.
Term by term subtraction.
Definition at line 224 of file hydrodynamic_variables.cpp.
Scalar division.
p | Primitive |
s | Scalar |
Definition at line 180 of file hydrodynamic_variables.cpp.
Division by a scalar.
c | Conserved variables |
d | Scalar |
Definition at line 238 of file hydrodynamic_variables.cpp.
Converts primitive variables to conserved intensive.
p | Primitive variables |
Definition at line 267 of file hydrodynamic_variables.cpp.
Converts primitive variables to conserved extensive.
p | Primitive variables |
volume | Cell volume |
Definition at line 274 of file hydrodynamic_variables.cpp.
Converts primitive variables to flux.
p | Primitive variables |
n | Normal to surface through which the flux passes |
Definition at line 281 of file hydrodynamic_variables.cpp.
bool primitive_has_nan | ( | Primitive const & | p | ) |
Checks if on of the fields of Primitive is a nan.
p | Primitive variables |
Definition at line 41 of file hydrodynamic_variables.cpp.
double TotalEnergyDensity | ( | Primitive const & | p | ) |
Calculates the total energy density.
p | Primitive variables |
Definition at line 261 of file hydrodynamic_variables.cpp.