|
Plugins
|
Observer that integrates the river outflow over time. More...
#include <river_data_observer.h>
Inheritance diagram for ug::d3f::OutflowIntegrationObserver< TDomain, TAlgebra >:Public Types | |
| typedef ITimeIntegratorObserver< TDomain, TAlgebra > | base_type |
| typedef GridFunction< TDomain, TAlgebra > | grid_function_type |
| typedef CplUserData< number, dim > | TNumberData |
| typedef CplUserData< MathVector< dim >, dim > | TVectorData |
Public Types inherited from ug::ITimeIntegratorObserver< TDomain, TAlgebra > | |
| typedef GridFunction< TDomain, TAlgebra > | grid_function_type |
Public Member Functions | |
| OutflowIntegrationObserver (SmartPtr< TVectorData > velocity, SmartPtr< TNumberData > area, const char *subset="Sink", const char *inner_subset="River") | |
| Constructor. | |
| void | reset_value () |
| Resets the cumulative counter. | |
| bool | step_process (SmartPtr< grid_function_type > uNew, int step, number time, number dt) override |
| Integrates the outflow for the current time step and adds it to the total. | |
| number | value () const |
| Returns the cumulative integrated value. | |
| virtual | ~OutflowIntegrationObserver ()=default |
Public Member Functions inherited from ug::ITimeIntegratorObserver< TDomain, TAlgebra > | |
| virtual | ~ITimeIntegratorObserver () |
Static Public Attributes | |
| static const int | dim = TDomain::dim |
Protected Attributes | |
| const char * | inner_subset_name |
| SmartPtr< TNumberData > | m_A |
| number | m_value |
| SmartPtr< TVectorData > | m_vel |
| const char * | subset_name |
Observer that integrates the river outflow over time.
This observer calculates the cumulative mass/volume of water leaving the river network through "Sink" nodes at each successful time step.
| TDomain | The domain type. |
| TAlgebra | The algebra type. |
| typedef ITimeIntegratorObserver<TDomain, TAlgebra> ug::d3f::OutflowIntegrationObserver< TDomain, TAlgebra >::base_type |
| typedef GridFunction<TDomain, TAlgebra> ug::d3f::OutflowIntegrationObserver< TDomain, TAlgebra >::grid_function_type |
| typedef CplUserData<number, dim> ug::d3f::OutflowIntegrationObserver< TDomain, TAlgebra >::TNumberData |
| typedef CplUserData<MathVector<dim>, dim> ug::d3f::OutflowIntegrationObserver< TDomain, TAlgebra >::TVectorData |
|
inline |
Constructor.
| velocity | User data for river velocity (v). |
| area | User data for wetted cross-section (A). |
| subset | Boundary subset name (default: "Sink"). |
| inner_subset | Inner subset name (default: "River"). |
|
virtualdefault |
|
inline |
Resets the cumulative counter.
References ug::d3f::OutflowIntegrationObserver< TDomain, TAlgebra >::m_value.
|
inlineoverridevirtual |
Integrates the outflow for the current time step and adds it to the total.
Implements ug::ITimeIntegratorObserver< TDomain, TAlgebra >.
References ug::d3f::OutflowIntegrationObserver< TDomain, TAlgebra >::inner_subset_name, ug::d3f::OutflowIntegrationObserver< TDomain, TAlgebra >::m_A, ug::d3f::OutflowIntegrationObserver< TDomain, TAlgebra >::m_value, ug::d3f::OutflowIntegrationObserver< TDomain, TAlgebra >::m_vel, and ug::d3f::OutflowIntegrationObserver< TDomain, TAlgebra >::subset_name.
|
inline |
Returns the cumulative integrated value.
References ug::d3f::OutflowIntegrationObserver< TDomain, TAlgebra >::m_value.
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |