10#include "include/Sfx_SCL.h"
11#include "include/Sfx_UniversalConstants.h"
18 class StateVectorField;
20namespace dbpp {
class Uh; }
61 float64
flux(
const Sfx::StateVector& aState,
62 const eFluxType aFluxT = eFluxType::incomplete)
override final;
69 std::valarray<float64>
flux(
const Sfx::StateVectorField& aState,
70 const eFluxType aFluxT = eFluxType::incomplete);
78 const eFluxType aFluxT = eFluxType::incomplete);
90 std::string
name() const override final {
return std::string{
"StVenant1DNoFriction" }; }
137 return (aState.Q()*aState.Q())/aState.A();
153 Sfx::cGravity<double>*HydrostaticPressure(aState.A());
163 inline float64 HydrostaticPressure(
const float64 aArea, float64 B = 1.)
165 return (aArea*aArea)/2.*B;
183 return (U2 * U2) / U1;
193 return ((A * A) / (2. * B));
std::valarray< float64 > valar64
Definition Sfx_StVenant1DEquations.h:38
bool m_useFriction
Definition Sfx_StVenant1DEquations.h:131
uint32 getDimension() const override final
System dimension.
Definition Sfx_StVenant1DEquations.h:111
float64 flux(const Sfx::StateVector &aState, const eFluxType aFluxT=eFluxType::incomplete) override final
convective flux function
Definition Sfx_StVenant1DEquations.cpp:10
uint32 getNumberOfEquations() const override final
implement the physical flux
Definition Sfx_StVenant1DEquations.h:106
StVenant1D(eFluxType aFtype=eFluxType::incomplete)
default ctor (convective by default)
Definition Sfx_StVenant1DEquations.h:44
eFluxType getFluxType() const noexcept
physical flux type
Definition Sfx_StVenant1DEquations.h:116
SCLEquation * Clone() override
Clone type.
Definition Sfx_StVenant1DEquations.h:53
bool hasSourceTerm() const override final
use term sucg friction and bed slope
Definition Sfx_StVenant1DEquations.h:95
valar64 EvaluationFlux_I_1D(const valar64 &U1, const valar64 &U2, float64 B=1.)
Evaluate convective flux (incomplete)
Definition Sfx_StVenant1DEquations.h:181
valar64 EvaluationFlux_C_1D(const valar64 &U1, const valar64 &U2, float64 B=1.)
Evaluate convective flux and pressure (complete)
Definition Sfx_StVenant1DEquations.h:202
valar64 CalculTermePressionHydrostatique1D(const valar64 &A, float64 B=1.)
Hydrostatic pressure.
Definition Sfx_StVenant1DEquations.h:191
bool useFriction() const noexcept
return false by default
Definition Sfx_StVenant1DEquations.h:121
std::string name() const override final
name description
Definition Sfx_StVenant1DEquations.h:90
eFluxType m_FluxType
Definition Sfx_StVenant1DEquations.h:130
Cross-sectional flow (2-dimensional).
Definition dbpp_SectionFlow.h:16
Container of nodal variables.
Definition dbpp_Uh.h:21
Definition DamBreakProb.h:15