Classes | Functions
hydrodynamic_variables.hpp File Reference

Hydrodynamic variables. More...

#include "../../tessellation/geometry.hpp"
Include dependency graph for hydrodynamic_variables.hpp:
This graph shows which files directly or indirectly include this file:

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

Detailed Description

Hydrodynamic variables.

Author
Almog Yalinewich

Definition in file hydrodynamic_variables.hpp.

Function Documentation

◆ operator*() [1/3]

Primitive operator* ( Primitive const &  p,
double  s 
)

Scalar multiplication on the right.

Parameters
pPrimitive
sScalar
Returns
Primitive variables

Definition at line 194 of file hydrodynamic_variables.cpp.

◆ operator*() [2/3]

Primitive operator* ( double  s,
Primitive const &  p 
)

Scalar multiplication on the left.

Parameters
sScalar
pPrimitive variables
Returns
Primitive variables

Definition at line 208 of file hydrodynamic_variables.cpp.

◆ operator*() [3/3]

Conserved operator* ( double  d,
Conserved const &  c 
)

Scalar multiplication.

Parameters
dScalar
cConserved variables
Returns
Conserved variables

Definition at line 231 of file hydrodynamic_variables.cpp.

Here is the call graph for this function:

◆ operator+() [1/2]

Primitive operator+ ( Primitive const &  p1,
Primitive const &  p2 
)

Term by term addition.

Parameters
p1Primitive variables
p2Primitive variables
Returns
Primitive variables

Definition at line 152 of file hydrodynamic_variables.cpp.

◆ operator+() [2/2]

Conserved operator+ ( Conserved const &  c1,
Conserved const &  c2 
)

Term by term addition.

Parameters
c1Conserved variables
c2Conserved variables
Returns
Conserved variables

Definition at line 217 of file hydrodynamic_variables.cpp.

Here is the call graph for this function:

◆ operator-() [1/2]

Primitive operator- ( Primitive const &  p1,
Primitive const &  p2 
)

Term by term subtraction.

Parameters
p1Primitive variables
p2Primitive variables
Returns
Primitive variables

Definition at line 165 of file hydrodynamic_variables.cpp.

◆ operator-() [2/2]

Conserved operator- ( Conserved const &  c1,
Conserved const &  c2 
)

Term by term subtraction.

Parameters
c1Conserved variables
c2Conserved variables
Returns
Conserved variables

Definition at line 224 of file hydrodynamic_variables.cpp.

Here is the call graph for this function:

◆ operator/() [1/2]

Primitive operator/ ( Primitive const &  p,
double  s 
)

Scalar division.

Parameters
pPrimitive
sScalar
Returns
Primitive variables

Definition at line 180 of file hydrodynamic_variables.cpp.

◆ operator/() [2/2]

Conserved operator/ ( Conserved const &  c,
double  d 
)

Division by a scalar.

Parameters
cConserved variables
dScalar
Returns
Conserved variables

Definition at line 238 of file hydrodynamic_variables.cpp.

Here is the call graph for this function:

◆ Primitive2Conserved() [1/2]

Conserved Primitive2Conserved ( Primitive const &  p)

Converts primitive variables to conserved intensive.

Parameters
pPrimitive variables
Returns
Conserved variables

Definition at line 267 of file hydrodynamic_variables.cpp.

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

◆ Primitive2Conserved() [2/2]

Conserved Primitive2Conserved ( Primitive const &  p,
double  volume 
)

Converts primitive variables to conserved extensive.

Parameters
pPrimitive variables
volumeCell volume
Returns
Conserved variables

Definition at line 274 of file hydrodynamic_variables.cpp.

Here is the call graph for this function:

◆ Primitive2Flux()

Conserved Primitive2Flux ( Primitive const &  p,
Vector2D const &  n 
)

Converts primitive variables to flux.

Parameters
pPrimitive variables
nNormal to surface through which the flux passes
Returns
Conserved variables

Definition at line 281 of file hydrodynamic_variables.cpp.

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

◆ primitive_has_nan()

bool primitive_has_nan ( Primitive const &  p)

Checks if on of the fields of Primitive is a nan.

Parameters
pPrimitive variables
Returns
True if a primitive has a nan

Definition at line 41 of file hydrodynamic_variables.cpp.

Here is the call graph for this function:

◆ TotalEnergyDensity()

double TotalEnergyDensity ( Primitive const &  p)

Calculates the total energy density.

Parameters
pPrimitive variables
Returns
Total energy density

Definition at line 261 of file hydrodynamic_variables.cpp.

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