2.0.0b10
catchment modelling framework
Loading...
Searching...
No Matches
SoluteEquilibriumReaction Class Reference

An equilibrium reaction between two solutes A<->B. More...

+ Inheritance diagram for SoluteEquilibriumReaction:
+ Collaboration diagram for SoluteEquilibriumReaction:

Detailed Description

An equilibrium reaction between two solutes A<->B.

\[ A \rightleftharpoons B \]

\[\frac{d[B]}{dt} = -\frac{d[A]}{dt} = k_{AB} [A] - k_{BA} [B] \]

Public Member Functions

 SoluteEquilibriumReaction (const solute &A, const solute &B, real k_ab, real k_ba)
 Creates a solute equilibrium reaction A<->B.
 
real get_flux (const SoluteStorage &solute_storage, const cmf::math::Time &t) const override
 Calculates the reactive flux from / to the given solute storage at time t.
 
bool is_compatible (const SoluteStorage &solute_storage) override
 Tests if the reaction is compatible to a solute storage. Returns true if not overwritten by a child class.
 
real operator() (const SoluteStorage &solute_storage, const cmf::math::Time &t) const
 Calculates the reactive flux from / to the given solute storage at time t.
 

Public Attributes

real k_ab
 The reaction rate A->B in 1/day.
 
real k_ba
 The reaction rate B->A in 1/day.