![]() |
DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
|
DamBreak simulator base class (Wave Simulator) More...
#include <dbpp_VS19WaveSimulator.h>
Public Types | |
enum class | eSurfaceWaveForm { SINE = 0 , STEP = 1 } |
enum class | eRiverBedType { FLAT = 0 , STEP = 1 , JUMP = 2 , RANDOM = 3 } |
using | ListofSectionsFlow = std::shared_ptr<dbpp::ListSectionsFlow> |
Public Member Functions | |
VS19WaveSimulator (int32 aNbIterationsMax=50, float64 aCFL=0.600000000) | |
Ctor Wave Simulator. | |
void | run () override final |
Main loop of the simulation. | |
bool | init () override final |
Initialization of the simulator. | |
void | unInitialize () override final |
clean-upof the simulator | |
VS19WaveSimulator (const VS19WaveSimulator &)=delete | |
Disable copy construct. | |
VS19WaveSimulator & | operator= (const VS19WaveSimulator &)=delete |
Disable assign construct. | |
VS19WaveSimulator (VS19WaveSimulator &&)=delete | |
Disable move construct. | |
VS19WaveSimulator & | operator= (const VS19WaveSimulator &&)=delete |
Disable move assign construct. | |
void | update () override final |
Observer method (H-profile at each time step) | |
std::valarray< float64 > | getH () const noexcept |
water depth at global nodal point | |
std::shared_ptr< VS19WaveSimulator > | sharedPtrTo () |
share the ownership of 'this' with all existing std::shared_ptr that refer to *this. |
Private Member Functions | |
void | setH () |
void | saveResult (const Uh &aUh, const Sfx::SfxTimePrm &aTimeSimEnd) |
Private Attributes | |
int32 | m_nbIterationsMax |
float64 | m_cfl |
std::string | m_activeAlgo |
std::string | m_validationDir |
bool | m_saveResult2File |
std::ofstream | m_fileRes |
std::vector< float64 > | m_waveDepthProfile |
ListofSectionsFlow | m_ListSectFlow |
DamBreak simulator base class (Wave Simulator)
using dbpp::VS19WaveSimulator::ListofSectionsFlow = std::shared_ptr<dbpp::ListSectionsFlow> |
Alias
|
strong |
|
strong |
|
inline |
Ctor Wave Simulator.
aNbIterationsMax | number of iterations |
aCFL | Courant-Friedrich-Levy number |
|
delete |
Disable copy construct.
Object | to copy from |
|
delete |
Disable move construct.
Object | to move from |
|
inlinenoexcept |
water depth at global nodal point
|
finaloverride |
Initialization of the simulator.
|
delete |
Disable move assign construct.
Object | to move assign from |
|
delete |
Disable assign construct.
Object | to assign from |
|
finaloverride |
Main loop of the simulation.
|
private |
|
private |
|
inline |
share the ownership of 'this' with all existing std::shared_ptr that refer to *this.
|
inlinefinaloverride |
clean-upof the simulator
|
finaloverride |
Observer method (H-profile at each time step)
|
private |
current active algorithm
|
private |
CFL number
|
private |
file stream
|
private |
list of section flow (why a pointer?)
|
private |
maximum numer of iterations
|
private |
flag to save simulation result
|
private |
AlgoValidation directory
|
private |
vector depth profile