|
BioCMAMC-ST
|
Simplified Monod model for glucose consumption and biomass growth. More...
#include <monod.hpp>
Public Types | |
| enum class | particle_var : int { l = 0 , l_max , mu_p , mue , _init_only_cell_lenghtening , phi_s_c , __COUNT__ } |
| Enumeration for the Monod model variables. More... | |
| using | uniform_weight = std::true_type |
| using | Self = Monod |
| using | FloatType = float |
| using | SelfParticle = MC::ParticlesModel<Self::n_var, Self::FloatType> |
| using | Config = std::nullopt_t |
Static Public Member Functions | |
| static KOKKOS_INLINE_FUNCTION void | init (const MC::pool_type &random_pool, std::size_t idx, const SelfParticle &arr) |
| static KOKKOS_INLINE_FUNCTION double | mass (std::size_t idx, const SelfParticle &arr) |
| static KOKKOS_INLINE_FUNCTION MC::Status | update (const MC::pool_type &random_pool, FloatType d_t, std::size_t idx, const SelfParticle &arr, const MC::LocalConcentration &c) |
| static KOKKOS_INLINE_FUNCTION void | division (const MC::pool_type &random_pool, std::size_t idx, std::size_t idx2, const SelfParticle &arr, const SelfParticle &buffer_arr) |
| static MC::ContribIndexBounds | get_bounds () |
| static std::vector< std::string_view > | names () |
| static std::vector< std::size_t > | get_number () |
Public Attributes | |
| MODEL_CONSTANT FloatType | y_s_x = 2 |
| Model constants used in biomass growth and cell elongation. | |
| MODEL_CONSTANT FloatType | mu_max = 0.77 / 3600. |
| Maximum specific growth rate (1/s), converted from per hour. | |
| MODEL_CONSTANT FloatType | tau_meta = 1. / mu_max |
| Metabolic time constant (s), inverse of max growth rate. | |
| MODEL_CONSTANT FloatType | l_max_m = 2e-6 |
| Maximum cell length (m) | |
| MODEL_CONSTANT FloatType | l_min_m = l_max_m / 2. |
| Minimum cell length (m), half of maximum length. | |
| MODEL_CONSTANT FloatType | k_s = 1e-3 |
| Monod constant for substrate concentration (m) | |
| MODEL_CONSTANT FloatType | d_m = 0.6e-6 |
| Cell diameter (m) | |
| MODEL_CONSTANT FloatType | lin_density |
| Linear density of the biomass (kg/m), calculated from cell diameter. | |
| MODEL_CONSTANT auto | initial_length_dist |
Static Public Attributes | |
| static constexpr std::size_t | n_var = INDEX_FROM_ENUM(particle_var::__COUNT__) |
| static constexpr std::string_view | name = "monod" |
Simplified Monod model for glucose consumption and biomass growth.
This model links glucose consumption and biomass growth using the Monod equation. It models biomass growth through cell elongation for rod-shaped strains, and cell division is assumed to be deterministic. The primary purpose of this model is for validation and to demonstrate how the framework operates without requiring the typical formation. Instead, it focuses on the core dynamics of glucose consumption and biomass growth through the Monod law.
| using Models::Monod::Config = std::nullopt_t |
| using Models::Monod::FloatType = float |
| using Models::Monod::Self = Monod |
| using Models::Monod::uniform_weight = std::true_type |
|
strong |
Enumeration for the Monod model variables.
This enum represents the different variables used in the Monod model. These variables do not strictly correspond to the state vector (xi), as some are auxiliary variables (e.g., phi_s_c) not part of the primary state. The Monod factor is used to convert the growth rate into elongation rates.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| MODEL_CONSTANT FloatType Models::Monod::d_m = 0.6e-6 |
Cell diameter (m)
| MODEL_CONSTANT auto Models::Monod::initial_length_dist |
| MODEL_CONSTANT FloatType Models::Monod::l_max_m = 2e-6 |
Maximum cell length (m)
Minimum cell length (m), half of maximum length.
| MODEL_CONSTANT FloatType Models::Monod::lin_density |
Linear density of the biomass (kg/m), calculated from cell diameter.
| MODEL_CONSTANT FloatType Models::Monod::mu_max = 0.77 / 3600. |
Maximum specific growth rate (1/s), converted from per hour.
|
staticconstexpr |
|
staticconstexpr |
Metabolic time constant (s), inverse of max growth rate.
| MODEL_CONSTANT FloatType Models::Monod::y_s_x = 2 |
Model constants used in biomass growth and cell elongation.
These constants define various parameters for the model, including maximum growth rates, cell size, and other metabolic factors. The units are specified in meters (m) unless otherwise indicated. Specific yield of biomass per unit substrate (m)