|
2.0.0b10
catchment modelling framework
|
A class for the storage of any tracer. More...
Inheritance diagram for SoluteStorage:
Collaboration diagram for SoluteStorage:A class for the storage of any tracer.
The state is the amount (mol, kg etc. see cmf::water) of the tracer in the storage.
The derivative function is given by:
\[\frac{dX}{dt} = \sum_{f=1}^{F}{q_f \cdot [X]_f} + \sum_{r=1}^{R}{q_r([X], t)} \left[\frac{mol}{day}\right] \]
Public Member Functions | |
| virtual real | dxdt (const cmf::math::Time &time) |
Returns the derivate of the state variable at time time. | |
| real | get_conc () const |
| Returns the concentration of the solute. | |
| real | get_state () const |
| Returns the current state of the variable. | |
| const WaterStorage & | get_water () const |
| get the waterstorge of the solute storage | |
| virtual bool | is_connected (const cmf::math::StateVariable &other) const |
| Returns True if this solute storage is effected by another state. | |
| void | set_abs_errtol (real scale) |
| Sets a scaling factor for the absolute error tolerance of this storage in terms of the absolute error tolerance of the owning waterstorage. | |
| void | set_conc (real NewConcentration) |
| set a new concentration of dissolved tracers. | |
| void | set_state (real newState) |
| Gives access to the state variable. | |
Public Attributes | |
| cmf::List< cmf::water::SoluteReaction::ptr > | reactions |
| Attached reactions. | |
| const cmf::water::solute & | Solute |
| The solute, which is stored in this storage. | |
Protected Member Functions | |
| void | MarkStateChangeHandled () |
| Sets the updated flag (m_StateIsNew) to false. | |
| bool | StateIsChanged () |
| Returns if the state was currently updated. | |
| void set_abs_errtol | ( | real | scale | ) |
Sets a scaling factor for the absolute error tolerance of this storage in terms of the absolute error tolerance of the owning waterstorage.
The absolute error tolerance
| void set_conc | ( | real | NewConcentration | ) |
set a new concentration of dissolved tracers.
In case of adsorption functions, the isotherm is used