BioCMAMC-ST
Models::FixedLength Struct Reference

#include <fixed_length.hpp>

Public Types

enum class  particle_var : int { length = 0 , l_max , phi_s , COUNT }
using uniform_weight = std::true_type
using Self = FixedLength
using FloatType = float
using Config = Kokkos::View<const FloatType*, ComputeSpace>
using SelfParticle = MC::ParticlesModel<Self::n_var, Self::FloatType>

Static Public Member Functions

static MC::ContribIndexBounds get_bounds ()
static Self::Config get_config (std::size_t n)
static KOKKOS_INLINE_FUNCTION void init (const MC::pool_type &random_pool, std::size_t idx, const SelfParticle &arr, const Config &params)
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 KOKKOS_INLINE_FUNCTION double mass (std::size_t idx, const SelfParticle &arr)
static std::vector< std::string_view > names ()
static std::vector< std::size_t > get_number ()

Public Attributes

MODEL_CONSTANT FloatType l_dot_max = 2e-6 / 3600.
MODEL_CONSTANT FloatType l_max_m = 2e-6
MODEL_CONSTANT FloatType l_min_m = l_max_m / 2.
MODEL_CONSTANT FloatType k = 1e-3
MODEL_CONSTANT FloatType d_m = 0.6e-6
MODEL_CONSTANT FloatType lin_density
MODEL_CONSTANT FloatType phi_s_max

Static Public Attributes

static constexpr std::size_t n_var = INDEX_FROM_ENUM(particle_var::COUNT)
static constexpr std::string_view name = "fixed-length"

Member Typedef Documentation

◆ Config

using Models::FixedLength::Config = Kokkos::View<const FloatType*, ComputeSpace>

◆ FloatType

◆ Self

◆ SelfParticle

◆ uniform_weight

using Models::FixedLength::uniform_weight = std::true_type

Member Enumeration Documentation

◆ particle_var

enum class Models::FixedLength::particle_var : int
strong
Enumerator
length 
l_max 
phi_s 
COUNT 

Member Function Documentation

◆ division()

KOKKOS_INLINE_FUNCTION void Models::FixedLength::division ( const MC::pool_type & random_pool,
std::size_t idx,
std::size_t idx2,
const SelfParticle & arr,
const SelfParticle & buffer_arr )
static

◆ get_bounds()

MC::ContribIndexBounds Models::FixedLength::get_bounds ( )
inlinestatic

◆ get_config()

FixedLength::Config Models::FixedLength::get_config ( std::size_t n)
static

◆ get_number()

std::vector< std::size_t > Models::FixedLength::get_number ( )
inlinestatic

◆ init()

KOKKOS_INLINE_FUNCTION void Models::FixedLength::init ( const MC::pool_type & random_pool,
std::size_t idx,
const SelfParticle & arr,
const Config & params )
static

◆ mass()

KOKKOS_INLINE_FUNCTION double Models::FixedLength::mass ( std::size_t idx,
const SelfParticle & arr )
inlinestatic

◆ names()

std::vector< std::string_view > Models::FixedLength::names ( )
inlinestatic

◆ update()

KOKKOS_INLINE_FUNCTION MC::Status Models::FixedLength::update ( const MC::pool_type & random_pool,
FloatType d_t,
std::size_t idx,
const SelfParticle & arr,
const MC::LocalConcentration & c )
static
Here is the call graph for this function:

Member Data Documentation

◆ d_m

MODEL_CONSTANT FloatType Models::FixedLength::d_m = 0.6e-6

◆ k

MODEL_CONSTANT FloatType Models::FixedLength::k = 1e-3

◆ l_dot_max

MODEL_CONSTANT FloatType Models::FixedLength::l_dot_max = 2e-6 / 3600.

◆ l_max_m

MODEL_CONSTANT FloatType Models::FixedLength::l_max_m = 2e-6

◆ l_min_m

MODEL_CONSTANT FloatType Models::FixedLength::l_min_m = l_max_m / 2.

◆ lin_density

MODEL_CONSTANT FloatType Models::FixedLength::lin_density
Initial value:
=
c_linear_density(static_cast<FloatType>(1000), d_m)
KOKKOS_INLINE_FUNCTION consteval F c_linear_density(F rho, F d)
Definition utils.hpp:47
MODEL_CONSTANT FloatType d_m
Definition fixed_length.hpp:50
float FloatType
Definition fixed_length.hpp:30

◆ n_var

std::size_t Models::FixedLength::n_var = INDEX_FROM_ENUM(particle_var::COUNT)
staticconstexpr

◆ name

std::string_view Models::FixedLength::name = "fixed-length"
staticconstexpr

◆ phi_s_max

MODEL_CONSTANT FloatType Models::FixedLength::phi_s_max
Initial value:
=
static F consteval _get_phi_s_max(F density, F dl, F glucose_to_biomass_yield=0.5)
Definition fixed_length.hpp:19
MODEL_CONSTANT FloatType l_dot_max
Definition fixed_length.hpp:46
MODEL_CONSTANT FloatType lin_density
Definition fixed_length.hpp:51

The documentation for this struct was generated from the following files:
  • apps/libs/models/public/models/fixed_length.hpp
  • apps/libs/models/src/config_loader.cpp