OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::HaldaneRate< T > Class Template Referencefinal

Class implementing Haldane kinetics, with 1st field being substrate concentration [S], 2nd being bacteria concentration [X]: nu = mu * [X]; mu = muMax * [S] / ([S] + Ks + [S]^2/KI) More...

#include <rate.h>

+ Inheritance diagram for olb::HaldaneRate< T >:
+ Collaboration diagram for olb::HaldaneRate< T >:

Public Member Functions

 HaldaneRate (T muMax, T Ks, T KI)
 
compute (std::vector< T > localFieldValues) override
 
- Public Member Functions inherited from olb::Rate< T >
 Rate (std::vector< T > params)
 

Additional Inherited Members

- Protected Attributes inherited from olb::Rate< T >
std::vector< T > _params
 

Detailed Description

template<typename T>
class olb::HaldaneRate< T >

Class implementing Haldane kinetics, with 1st field being substrate concentration [S], 2nd being bacteria concentration [X]: nu = mu * [X]; mu = muMax * [S] / ([S] + Ks + [S]^2/KI)

Definition at line 79 of file rate.h.

Constructor & Destructor Documentation

◆ HaldaneRate()

template<typename T >
olb::HaldaneRate< T >::HaldaneRate ( T muMax,
T Ks,
T KI )

Definition at line 85 of file rate.hh.

86 : Rate<T>(std::vector<T>{muMax, Ks, KI})
87{}

Member Function Documentation

◆ compute()

template<typename T >
T olb::HaldaneRate< T >::compute ( std::vector< T > localFieldValues)
overridevirtual

Implements olb::Rate< T >.

Definition at line 90 of file rate.hh.

91{
92 // _params[0] = muMax
93 // _params[1] = Ks
94 // _params[2] = KI
95 // localFieldValues[0] = [S]
96 // localFieldValues[1] = [X]
97 return this->_params[0] * localFieldValues[0] * localFieldValues[1]
98 / (localFieldValues[0] + this->_params[1] + localFieldValues[0]*localFieldValues[0]/this->_params[2]) ;
99}
std::vector< T > _params
Definition rate.h:41

The documentation for this class was generated from the following files: