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

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

#include <rate.h>

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

Public Member Functions

 MonodRate (T muMax, T Ks)
 
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::MonodRate< T >

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

Definition at line 68 of file rate.h.

Constructor & Destructor Documentation

◆ MonodRate()

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

Definition at line 68 of file rate.hh.

69 : Rate<T>(std::vector<T>{muMax, Ks})
70{}

Member Function Documentation

◆ compute()

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

Implements olb::Rate< T >.

Definition at line 73 of file rate.hh.

74{
75 // _params[0] = muMax
76 // _params[1] = Ks
77 // localFieldValues[0] = [S]
78 // localFieldValues[1] = [X]
79 return this->_params[0] * localFieldValues[0] * localFieldValues[1] / (localFieldValues[0] + this->_params[1]);
80}
std::vector< T > _params
Definition rate.h:41

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