DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
Loading...
Searching...
No Matches
dbpp::HLLFlux1D Class Reference

"Model of" F_j +/- 1/2 numerical scheme at the cell interface. This class represents the HLL (Harten-Lax-Leer) solving algorithm (based on Riemann approximate solver). More...

#include <dbpp_HLLFlux1D.h>

Public Types

enum  eFluxComp { FL1 = 0 , FR1 = 1 , FL2 = 2 , FR2 = 3 }
 Flux component of state variables (cell face left/right) More...
using ShockSpeed = std::pair<float64, float64>
 Aliase shock speed.
using PhysicalFlux = std::tuple<float64, float64, float64, float64>
 Aliasephysical flux.

Public Member Functions

void setShockSpeed (const ShockSpeed &aShockSpeed)
 Set shock speed.
void setphysicalFlux (const PhysicalFlux &aPhyF)
 Set physical flux.
virtual std::pair< float64, float64calculFF (const Sfx::cellFaceVariables &aCellFaceVar) const
 Compute numerical flux at cell face.

Private Attributes

ShockSpeed m_shocSpeed
PhysicalFlux m_physFlux

Detailed Description

"Model of" F_j +/- 1/2 numerical scheme at the cell interface. This class represents the HLL (Harten-Lax-Leer) solving algorithm (based on Riemann approximate solver).

Function object also called Functor.

Member Typedef Documentation

◆ PhysicalFlux

Aliasephysical flux.

◆ ShockSpeed

Aliase shock speed.

Member Enumeration Documentation

◆ eFluxComp

Flux component of state variables (cell face left/right)

Enumerator
FL1 

left face flux (first state variable)

FR1 

right face flux (first state variable)

FL2 

left face flux (second state variable)

FR2 

right face flux (second state variable)

Member Function Documentation

◆ calculFF()

virtual std::pair< float64, float64 > dbpp::HLLFlux1D::calculFF ( const Sfx::cellFaceVariables & aCellFaceVar) const
inlinevirtual

Compute numerical flux at cell face.

Parameters
aCellFaceVarstate variables at cell face
Returns
pair of face variables

◆ setphysicalFlux()

void dbpp::HLLFlux1D::setphysicalFlux ( const PhysicalFlux & aPhyF)
inline

Set physical flux.

Parameters
aPhyFphysical flux values

◆ setShockSpeed()

void dbpp::HLLFlux1D::setShockSpeed ( const ShockSpeed & aShockSpeed)
inline

Set shock speed.

Parameters
aShockSpeedshock speed value

Member Data Documentation

◆ m_physFlux

PhysicalFlux dbpp::HLLFlux1D::m_physFlux
private

physics flux

◆ m_shocSpeed

ShockSpeed dbpp::HLLFlux1D::m_shocSpeed
private

shock speed


The documentation for this class was generated from the following file: