DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
Loading...
Searching...
No Matches
dbpp_SrcTreatmentS2.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace dbpp
6{
11 {
12 public:
13
14 enum class eDerivativeStencil {};
15
16 public:
24 virtual std::valarray<double> TraitementTermeSource2( const Sfx::StateVectorField& aA,
25 const ListSectionsFlow& aListSectF, const PhysicalBoundaryCnd& aBC) override final;
26 // Design Note
27 // maybe these should be in the base class
29 void getDerivativeStencil() { return; }
34 bool useCentralDifferenceScheme() const noexcept { return m_useCentralScheme; }
39 void setDerivativeOrder( short aOrder) noexcept { m_derivativeOrder = aOrder; }
44 short getDerivativeOrder() const noexcept { return m_derivativeOrder; }
53 bool usefriction() const noexcept { return m_useFriction; }
58 bool useFlatBedBottom() const noexcept { return m_useFriction; }
59
60 private:
61 bool m_useCentralScheme{ true };
63 bool m_useFriction{false};
64 };
65} // End of namespace
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
Implementation using a different formula for Manning coefficient.
Definition dbpp_SrcTreatmentS2.h:11
bool usefriction() const noexcept
Bottom Friction.
Definition dbpp_SrcTreatmentS2.h:53
void setPhysicalBoudaryCnd()
Physical boundary condition applied at both ends.
Definition dbpp_SrcTreatmentS2.h:48
bool useCentralDifferenceScheme() const noexcept
central difference derivative order
Definition dbpp_SrcTreatmentS2.h:34
short m_derivativeOrder
Definition dbpp_SrcTreatmentS2.h:62
void setDerivativeOrder(short aOrder) noexcept
Set deivative order.
Definition dbpp_SrcTreatmentS2.h:39
void getDerivativeStencil()
Definition dbpp_SrcTreatmentS2.h:29
eDerivativeStencil
Definition dbpp_SrcTreatmentS2.h:14
void setDerivativeStencil()
Definition dbpp_SrcTreatmentS2.h:28
short getDerivativeOrder() const noexcept
Taylor derivative order.
Definition dbpp_SrcTreatmentS2.h:44
virtual std::valarray< double > TraitementTermeSource2(const Sfx::StateVectorField &aA, const ListSectionsFlow &aListSectF, const PhysicalBoundaryCnd &aBC) override final
Compute source terms (bottom and energy slope)
Definition dbpp_SrcTreatmentS2.cpp:19
bool useFlatBedBottom() const noexcept
Bottom profile.
Definition dbpp_SrcTreatmentS2.h:58
bool m_useFriction
Definition dbpp_SrcTreatmentS2.h:63
bool m_useCentralScheme
Definition dbpp_SrcTreatmentS2.h:61
Definition DamBreakProb.h:15