DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
Loading...
Searching...
No Matches
Testvs19_SbSfTermsEvaluation.h
Go to the documentation of this file.
1#pragma once
2
3#include <cassert>
4// SfxBase19 includes
5#include "include/Sfx_DefineTypes.h"
6#include "include/Sfx_UniversalConstants.h"
7// BaseNumTypes include
8//#include "Sfx/Sfx_StateVectorField.h"
10// App include
11#include "../../include/NumericalTreatment.h" //BaseNumericalTreatment
12
13// forward declaration
14namespace Sfx { class StateVectorField; }
15namespace dbpp{class ListSectionsFlow; }
16
17namespace Testvs19
18{
28 {
29 // using physbctpl = std::tuple<float64, float64, float64>;
30 public:
37 SbSfTermsEvaluation( bool usePressure = false, bool useSf = true, bool isUnitWidth = true)
38 : m_usePressure{usePressure},
39 m_useFriction {useSf}, // Manning formula
42 {}
43
44 // ++++++++++++++++++++++++++++++++++++
45 // source term (Sf-S0)
46 // ++++++++++++++++++++++++++++++++++++
47
55 std::valarray<double> TraitementTermeSource2( const Sfx::StateVectorField& aStateVec,
56 const dbpp::ListSectionsFlow& aListSectF, const dbpp::PhysicalBoundaryCnd& aBC) override final;
61 bool useFriction() const noexcept override final { return m_useFriction; }
62 private:
67 };
68}// End of namespace
std::valarray< double > TraitementTermeSource2(const Sfx::StateVectorField &aStateVec, const dbpp::ListSectionsFlow &aListSectF, const dbpp::PhysicalBoundaryCnd &aBC) override final
Compute source terms (friction and bed slope)
Definition Testvs19_SbSfTermsEvaluation.cpp:28
bool useFriction() const noexcept override final
Manning formula is use.
Definition Testvs19_SbSfTermsEvaluation.h:61
bool m_unitWidth
Definition Testvs19_SbSfTermsEvaluation.h:65
bool m_useFriction
Definition Testvs19_SbSfTermsEvaluation.h:64
float64 m_ManningCoeff
Definition Testvs19_SbSfTermsEvaluation.h:66
SbSfTermsEvaluation(bool usePressure=false, bool useSf=true, bool isUnitWidth=true)
ctor (settings flags for pressure, friction an section width)
Definition Testvs19_SbSfTermsEvaluation.h:37
bool m_usePressure
Definition Testvs19_SbSfTermsEvaluation.h:63
List of cross-section flow (itereable)
Definition dbpp_ListSectionsFlow.h:15
Physical boundary condition (computational domain) based on characteristic equation ....
Definition dbpp_PhysicalBoundaryCnd.h:22
Basic algorithm to evaluate source terms (bed slope and energy slope) The Manning formula can be read...
Definition dbpp_SrcNumericalTreatment.h:31
virtual bool isUnitWidth() const noexcept
Section flow geometry.
Definition dbpp_SrcNumericalTreatment.h:118
Definition HydUtils.h:15
Definition Testvs19_BaseRhsPhysicsAlgorithm.cpp:19
Definition DamBreakProb.h:15