![]() |
DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
|
Wave simulator (simulate dam-break wave propagation). More...
#include <Testvs19_WaveSimulator.h>
Public Types | |
enum class | eSurfaceWaveForm { SINE = 0 , FCTSTEP = 1 } |
enum class | eRiverBedForm { FLAT = 0 , STEP = 1 , RANDOM = 2 } |
Public Member Functions | |
WaveSimulator () | |
WaveSimulator (const WaveSimulator &aOther)=delete | |
prevent client from using it | |
WaveSimulator (const WaveSimulator &&aOther)=delete | |
WaveSimulator & | operator= (const WaveSimulator &aOther)=delete |
WaveSimulator & | operator= (const WaveSimulator &&aOther)=delete |
bool | init () override final |
initialize simulator | |
void | run () override final |
main loop o fthe simulator | |
void | unInitialize () override final |
clean-up | |
std::valarray< float64 > | getH () const noexcept |
water level of each section | |
void | update () override final |
update wave profile |
Protected Member Functions | |
virtual void | saveResults (std::ofstream &aFile, const float32 aTime) |
Dump results in a file. | |
std::shared_ptr< WaveSimulator > | sharedPtrTo () |
share the ownership of 'this' with all existing std::shared_ptr that refer to *this. |
Protected Attributes | |
std::shared_ptr< Sfx::SfxTimePrm > | m_Tip |
std::shared_ptr< Sfx::WaveFunc > | m_Z |
std::shared_ptr< Sfx::WaveFunc > | m_H |
Private Types | |
using | ListSectionPtr = std::shared_ptr<ListSectionsFlow<dbpp::SectionFlow>> |
Private Attributes | |
eSurfaceWaveForm | m_InitWaveForm |
eRiverBedForm | m_RiverBed |
std::vector< float64 > | m_waveProfile |
ListSectionPtr | m_setofSectFlow |
Wave simulator (simulate dam-break wave propagation).
|
private |
alias
|
strong |
|
strong |
Testvs19::WaveSimulator::WaveSimulator | ( | ) |
|
delete |
prevent client from using it
aOther | object to copy/assign from |
|
delete |
|
inlinenoexcept |
water level of each section
|
finaloverride |
initialize simulator
|
delete |
|
delete |
|
finaloverride |
main loop o fthe simulator
|
protectedvirtual |
Dump results in a file.
aFile | file stream |
aTime | simulation time |
|
inlineprotected |
share the ownership of 'this' with all existing std::shared_ptr that refer to *this.
|
inlinefinaloverride |
clean-up
|
finaloverride |
update wave profile
|
protected |
|
private |
Surface wave form
|
private |
river topography profile
|
private |
|
protected |
|
private |
water level
|
protected |