|
2.0.0b10
catchment modelling framework
|
Calculates a flux to or from a water storage to hold it's state at a more or less constant level. More...
Inheritance diagram for ConstantStateFlux:
Collaboration diagram for ConstantStateFlux:Calculates a flux to or from a water storage to hold it's state at a more or less constant level.
\[ q=\frac{h_1 - h_{target}}{t_c [days]} \]
where:
Public Member Functions | |
| ConstantStateFlux (cmf::water::WaterStorage::ptr controlled_storage, cmf::water::flux_node::ptr other_end, real target_state, cmf::math::Time reaction_time) | |
| Creates a flux connection to control the state of a storage. | |
| real | conc (cmf::math::Time t, const cmf::water::solute &_Solute) |
| Returns the concentration of the flux. | |
| flux_node::ptr | get_target (const flux_node &inquirer) |
| Returns the other end of a connection than the asking end. | |
| flux_node::ptr | get_target (int index) const |
| With index 0, the left node is returned, with index 1 the right node of the connection. | |
| real | get_tracer_filter () |
| A value ranging from 0 to 1 to filter tracers out of the water flux. | |
| real | get_tracer_filter (solute S) |
| A value ranging from 0 to 1 to filter tracers out of the water flux. | |
| bool | kill_me () |
| Deregisters this connection from its nodes. Returns true if only one reference is left. | |
| flux_node::ptr | left_node () const |
| Returns the left node of this connection. | |
| real | q (const flux_node &inquirer, cmf::math::Time t) |
| Returns the current flux through a connection. Negative signs mean out of the inquirer, positive are inflows to the inquirer. | |
| void | refresh (cmf::math::Time t) |
| Performes a new calculation of the flux. | |
| flux_node::ptr | right_node () const |
| returns the right node of this connection | |
| void | set_tracer_filter (real value) |
| A value ranging from 0 to 1 to filter tracers out of the water flux. | |
Public Attributes | |
| const std::string | type |
| A string describing the type of the connection. | |
| ConstantStateFlux | ( | cmf::water::WaterStorage::ptr | controlled_storage, |
| cmf::water::flux_node::ptr | other_end, | ||
| real | target_state, | ||
| cmf::math::Time | reaction_time ) |
Creates a flux connection to control the state of a storage.
| controlled_storage | Water storage, to be controlled |
| other_end | source of missing water or target of excessive water |
| target_state | State the controlled storage should hold ( \(h_{target}\)) |
| reaction_time | Time to reach state ( \(t_c\)) |
|
inherited |
Returns the concentration of the flux.
If not overridden, it returns the concentration of the source of the flux (direction depending)
|
inherited |
A value ranging from 0 to 1 to filter tracers out of the water flux.
1.0 is no filter and 0.0 means no solute is crossing this connection
|
inherited |
A value ranging from 0 to 1 to filter tracers out of the water flux.
1.0 is no filter and 0.0 means no solute is crossing this connection