![]() |
DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
|
Physical system under study (physical object) More...
#include <Testvs19_DamBreakSystem.h>
Public Types | |
| using | ListSectionFlowPtr = std::shared_ptr<ListSectionsFlow<dbpp::SectionFlow>> |
| Aliases. | |
| using | vecidx = std::vector<float64>::size_type |
| using | pair_vecarr = std::pair<std::vector<float64>, std::vector<float64>> |
| using | phystate = pair_vecarr |
| using | value_type = boost::ptr_vector<Sfx::Nodal_Value>::value_type |
| using | size_type = boost::ptr_vector<Sfx::Nodal_Value>::size_type |
| using | iterator = boost::ptr_vector<Sfx::Nodal_Value>::iterator |
| using | const_iterator = boost::ptr_vector<Sfx::Nodal_Value>::const_iterator |
Public Member Functions | |
| iterator | begin () |
| STL-like interface. | |
| iterator | end () |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| auto | rbegin () |
| auto | rend () |
| auto | crbegin () const |
| auto | crend () const |
| DamBreakSystem (std::string aName="DamBreakSystem") | |
| ctor | |
| void | add (Sfx::Object *aNval) override final |
| Add object to the system. | |
| bool | contains (const Sfx::Object *aN2find) override final |
| Check if object already added. | |
| bool | remove (const Sfx::Object *aN2find) override final |
| Remove an object from system. | |
| bool | empty () const noexcept override final |
| check if system contains any object | |
| size_t | size () const override final |
| Number of elements. | |
| void | setH () |
| std::vector< float64 > | getH () const |
| Water depth. | |
| phystate | getPhysicalState () const |
| Getter. | |
| void | setPhysicalState (phystate aState) |
| Setter. | |
| Sfx::StateVector | getSectionStateVector (vecidx aSectionIdx) const |
| Retrieve state variables of a section flow. | |
| void | update () |
| Update Nodal Values (flat bed Z=0, unit width) | |
| ListSectionFlowPtr | getListSectionFlow () const |
| Getter. | |
| void | attach (Sfx::Observer *aObs2Attach) override final |
| Add an observer. | |
| void | detach (Sfx::Observer *aObs2Detach) override final |
| Remove an observer. | |
| void | notify () override final |
| Notify all observers. | |
Private Attributes | |
| std::string | m_name |
| phystate | m_phyState |
| ListSectionFlowPtr | m_listOfSections { nullptr } |
| boost::ptr_vector< Sfx::Nodal_Value > | m_Objs |
| std::list< Sfx::Observer * > | m_listObs |
Physical system under study (physical object)
| using Testvs19::DamBreakSystem::const_iterator = boost::ptr_vector<Sfx::Nodal_Value>::const_iterator |
| using Testvs19::DamBreakSystem::iterator = boost::ptr_vector<Sfx::Nodal_Value>::iterator |
| using Testvs19::DamBreakSystem::ListSectionFlowPtr = std::shared_ptr<ListSectionsFlow<dbpp::SectionFlow>> |
Aliases.
| using Testvs19::DamBreakSystem::pair_vecarr = std::pair<std::vector<float64>, std::vector<float64>> |
| using Testvs19::DamBreakSystem::size_type = boost::ptr_vector<Sfx::Nodal_Value>::size_type |
| using Testvs19::DamBreakSystem::value_type = boost::ptr_vector<Sfx::Nodal_Value>::value_type |
| using Testvs19::DamBreakSystem::vecidx = std::vector<float64>::size_type |
|
explicit |
ctor
| aName | string description |
|
finaloverride |
Add object to the system.
| aNval | Object to add |
|
inlinefinaloverride |
Add an observer.
| aObs2Attach | observer to add |
|
inline |
STL-like interface.
|
inline |
|
inline |
|
finaloverride |
Check if object already added.
| aN2find | Object to look for |
|
inline |
|
inline |
|
finaloverride |
Remove an observer.
| aObs2Detach | observer to remove |
|
inlinenodiscardfinaloverridenoexcept |
check if system contains any object
|
inline |
|
inline |
Water depth.
|
inline |
Getter.
|
inline |
Getter.
|
inline |
Retrieve state variables of a section flow.
| aSectionIdx | section id |
|
finaloverride |
Notify all observers.
|
inline |
|
finaloverride |
Remove an object from system.
| aN2find | object to remove |
|
inline |
|
inline |
|
inline |
Setter.
| aState | system state variables |
|
inlinefinaloverride |
Number of elements.
|
inline |
Update Nodal Values (flat bed Z=0, unit width)
|
private |
list observer
|
private |
list sections flow
|
private |
physical system description
|
private |
|
private |
physical state variables