6#include "include/Sfx_CellFaceVariables.h"
54 calculFF(
const Sfx::cellFaceVariables& aCellFaceVar)
const
99 const auto& w_leftStateVar = aCellFaceVar.UL();
100 const auto& w_rightStateVar = aCellFaceVar.UR();
102 const auto UR1 = w_rightStateVar.A();
103 const auto UL1 = w_leftStateVar.A();
105 const auto UR2 = w_rightStateVar.Q();
106 const auto UL2 = w_leftStateVar.Q();
108 FF1 = (SR *
FL1 - SL *
FR1 + SL * SR * (UR1 - UL1)) / (SR - SL);
109 FF2 = (SR *
FL2 - SL *
FR2 + SL * SR * (UR2 - UL2)) / (SR - SL);
113 return std::pair{ FF1, FF2 };
"Model of" F_j +/- 1/2 numerical scheme at the cell interface. This class represents the HLL (Harten-...
Definition dbpp_HLLFlux1D.h:18
ShockSpeed m_shocSpeed
Definition dbpp_HLLFlux1D.h:116
std::tuple< float64, float64, float64, float64 > PhysicalFlux
Aliasephysical flux.
Definition dbpp_HLLFlux1D.h:37
void setphysicalFlux(const PhysicalFlux &aPhyF)
Set physical flux.
Definition dbpp_HLLFlux1D.h:47
virtual std::pair< float64, float64 > calculFF(const Sfx::cellFaceVariables &aCellFaceVar) const
Compute numerical flux at cell face.
Definition dbpp_HLLFlux1D.h:54
std::pair< float64, float64 > ShockSpeed
Aliase shock speed.
Definition dbpp_HLLFlux1D.h:33
eFluxComp
Flux component of state variables (cell face left/right)
Definition dbpp_HLLFlux1D.h:24
@ FL1
Definition dbpp_HLLFlux1D.h:25
@ FL2
Definition dbpp_HLLFlux1D.h:27
@ FR2
Definition dbpp_HLLFlux1D.h:28
@ FR1
Definition dbpp_HLLFlux1D.h:26
void setShockSpeed(const ShockSpeed &aShockSpeed)
Set shock speed.
Definition dbpp_HLLFlux1D.h:42
PhysicalFlux m_physFlux
Definition dbpp_HLLFlux1D.h:117
Definition DamBreakProb.h:15
double float64
Definition dbpp_LDeltaOperator.h:12