![]() |
DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
|
Wrappper class to support legacy code (C-functions). More...
#include <dbpp_RhsPtr2FuncFlux.h>
Public Member Functions | |
~RhsPtr2FuncFlux () | |
dtor from pointer-to-function and source treatment | |
RhsPtr2FuncFlux (std::string aFFname, CalculFF aPtr2Func, const ListSectionsFlow &aSectionList, bool aUsePressure=false) | |
RhsPtr2FuncFlux (std::string aFFname, CalculFF aPtr2Func, SrcNumericalTreatment *aSrcTreatment, bool aUsePressure) | |
ctor from pointer-to-function and source treatment | |
void | setPhysicalBoundaryCnd (const PhysicalBoundaryCnd &aPhyBnd) override |
physical boundary condition | |
PhysicalBoundaryCnd | getPhysicalBoundaryCnd () const override final |
physical boundary condition | |
void | setSourceTermDiscr (SrcNumericalTreatment *aSrcDiscr, bool useManningFormula=true) override |
not sure about this one | |
std::string | getPtr2FuncName () const noexcept |
getter | |
SweRhsData | calculate (const Sfx::StateVectorField &aU) override final |
compute RHS terms | |
SweRhsData | calculate (const Sfx::StateVectorField &aU, const ListSectionsFlow &aList) |
compute RHS ... | |
SweRhsData | calculate (const Sfx::StateVectorField &aU, const std::shared_ptr< FiniteVolumeDiscretization > &aGblDiscr) override final |
compute RHS ... | |
bool | useReconstruction () const noexcept override final |
use reconstruction of state variables | |
bool | isFrictionLess () const noexcept override final |
use friction | |
bool | usePressureTerm () const noexcept override final |
take account of the pressure | |
bool | useSourceTerms () const noexcept override final |
compute source terms | |
bool | useIncompleteFlux () const noexcept override final |
physical flux type | |
bool | usePtr2FuncLegacy () const noexcept override final |
use legacy code version of flux algorithm | |
bool | supportTraitementTermeS2 () const |
ListSectionsFlow | getListSections () const |
Public Member Functions inherited from dbpp::SweRhsAlgorithm | |
virtual | ~SweRhsAlgorithm ()=default |
Dtor (disable move semantic) If base class has no members, not supporting move semantic has no effect. | |
virtual std::string | name () const |
Class name. | |
virtual void | setFluxAlgorithm (FluxAlgorithm *aFluxAlgo, bool useIncompleteFlux=true) |
Set flux algorithm. | |
virtual void | setPtr2FuncAlgo (CalculFF aPtr2Func) |
Flux algorithm (Pointer to function) | |
virtual void | setPressureTermDiscr () |
Set pressure term discretization. | |
virtual bool | useManningFormula () const noexcept |
Used friction formula. |
Private Attributes | |
std::string | m_ptr2funcName |
CalculFF | m_calculFF |
ListSectionsFlow | m_listSections |
PhyBCNdlConstraint | m_leftBcNode |
PhyBCNdlConstraint | m_rightBcNode |
Ptr2FLegacyFluxAlgorithm | m_ptr2FuncFF |
SrcNumericalTreatment * | m_srcDiscr |
bool | m_usePressure |
bool | m_useSourceTerms |
Additional Inherited Members | |
Protected Member Functions inherited from dbpp::SweRhsAlgorithm | |
SweRhsAlgorithm & | operator= (const SweRhsAlgorithm &)=delete |
disable assign operator to avoid slicing problem | |
SweRhsAlgorithm & | operator= (SweRhsAlgorithm &&)=delete |
disable assign operator to avoid slicing problem |
Wrappper class to support legacy code (C-functions).
dbpp::RhsPtr2FuncFlux::~RhsPtr2FuncFlux | ( | ) |
dtor from pointer-to-function and source treatment
dbpp::RhsPtr2FuncFlux::RhsPtr2FuncFlux | ( | std::string | aFFname, |
CalculFF | aPtr2Func, | ||
const ListSectionsFlow & | aSectionList, | ||
bool | aUsePressure = false ) |
dbpp::RhsPtr2FuncFlux::RhsPtr2FuncFlux | ( | std::string | aFFname, |
CalculFF | aPtr2Func, | ||
SrcNumericalTreatment * | aSrcTreatment, | ||
bool | aUsePressure ) |
ctor from pointer-to-function and source treatment
aFFname | function pointer name |
aPtr2Func | function pointer |
aSrcTreatment | source treatment type |
aUsePressure | flag to set pressure term in the computation |
|
finaloverridevirtual |
compute RHS terms
aU | state vector field |
Implements dbpp::SweRhsAlgorithm.
SweRhsData dbpp::RhsPtr2FuncFlux::calculate | ( | const Sfx::StateVectorField & | aU, |
const ListSectionsFlow & | aList ) |
compute RHS ...
aU | state vector field |
aList |
|
inlinefinaloverridevirtual |
compute RHS ...
aU | state vector field |
aGblDiscr | finite volume discretization |
Implements dbpp::SweRhsAlgorithm.
|
inline |
|
inlinefinaloverridevirtual |
|
inlinenoexcept |
getter
|
inlinefinaloverridevirtualnoexcept |
|
inlineoverridevirtual |
physical boundary condition
aPhyBnd | boundary to set from |
Implements dbpp::SweRhsAlgorithm.
|
inlineoverridevirtual |
not sure about this one
aPtr2Func |
set source treqatment terms algorithm
aSrcDiscr | source treatment type |
Reimplemented from dbpp::SweRhsAlgorithm.
|
inline |
|
inlinefinaloverridevirtualnoexcept |
|
inlinefinaloverridevirtualnoexcept |
|
inlinefinaloverridevirtualnoexcept |
use legacy code version of flux algorithm
Reimplemented from dbpp::SweRhsAlgorithm.
|
inlinefinaloverridevirtualnoexcept |
|
inlinefinaloverridevirtualnoexcept |
|
private |
Pointer-to-function flux algorithm ??? really need it
|
private |
physical boundary
|
private |
list of sections
|
private |
Pointer-to-function flux algorithm
|
private |
Ptr-to-Func flux algorithm
|
private |
physical boundary
|
private |
source numerical treatment
|
private |
pressure ...
|
private |
friction, bottomm slope