Classes | Functions
simple_flux_calculator.hpp File Reference

Simple flux calculator. More...

#include "flux_calculator_2d.hpp"
#include "../common/riemann_solver.hpp"
Include dependency graph for simple_flux_calculator.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SimpleFluxCalculator
 Simple flux calculator. More...
 

Functions

Primitive convert_to_primitive (const ComputationalCell &cell, const EquationOfState &eos, TracerStickerNames const &tracerstickernames)
 Converts computational cell to primitive variables. More...
 
Primitive reflect (const Primitive &p, const Vector2D &axis)
 Reflects velocity about axis. More...
 
Vector2D remove_parallel_component (const Vector2D &v, const Vector2D &p)
 Remove parallel component of a vector. More...
 
Conserved rotate_solve_rotate_back (const RiemannSolver &rs, const Primitive &left, const Primitive &right, const double velocity, const Vector2D &n, const Vector2D &p)
 Rotates, solve riemann problem and rotates results back. More...
 

Detailed Description

Simple flux calculator.

Author
Almog Yalinewich

Definition in file simple_flux_calculator.hpp.

Function Documentation

◆ convert_to_primitive()

Primitive convert_to_primitive ( const ComputationalCell cell,
const EquationOfState eos,
TracerStickerNames const &  tracerstickernames 
)

Converts computational cell to primitive variables.

Parameters
cellComputational cell
eosEquation of state
tracerstickernamesThe names of the tracers and stickers
Returns
Primitive variable

Definition at line 9 of file simple_flux_calculator.cpp.

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

◆ reflect()

Primitive reflect ( const Primitive p,
const Vector2D axis 
)

Reflects velocity about axis.

Parameters
pPrimitive variables
axisReflection axis
Returns
Primitive variables with reflected velocity

Definition at line 17 of file simple_flux_calculator.cpp.

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

◆ remove_parallel_component()

Vector2D remove_parallel_component ( const Vector2D v,
const Vector2D p 
)

Remove parallel component of a vector.

Parameters
vVector
pParallel direction
Returns
v with parallel component removed

Definition at line 27 of file simple_flux_calculator.cpp.

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

◆ rotate_solve_rotate_back()

Conserved rotate_solve_rotate_back ( const RiemannSolver rs,
const Primitive left,
const Primitive right,
const double  velocity,
const Vector2D n,
const Vector2D p 
)

Rotates, solve riemann problem and rotates results back.

Parameters
rsRiemann solver
leftPrimitive variables on the left side
rightPrimitive variables on the right side
velocityVelocity of the interface
nNormal direction
pParallel direction
Returns
Hydrodynamic fluxes

Definition at line 156 of file simple_flux_calculator.cpp.

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