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 = std::nullopt_t
using SelfParticle = MC::ParticlesModel<Self::n_var, Self::FloatType>

Static Public Member Functions

static KOKKOS_INLINE_FUNCTION void init (const MC::KPRNG::pool_type &random_pool, std::size_t idx, const SelfParticle &arr)
static KOKKOS_INLINE_FUNCTION MC::Status update (const MC::KPRNG::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::KPRNG::pool_type &random_pool, std::size_t idx, std::size_t idx2, const SelfParticle &arr, const SelfParticle &buffer_arr)
static KOKKOS_INLINE_FUNCTION void contribution (std::size_t idx, std::size_t position, double weight, const SelfParticle &arr, const MC::ContributionView &contributions)
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 = std::nullopt_t

◆ 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

◆ contribution()

KOKKOS_INLINE_FUNCTION void Models::FixedLength::contribution ( std::size_t idx,
std::size_t position,
double weight,
const SelfParticle & arr,
const MC::ContributionView & contributions )
static

◆ division()

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

◆ get_number()

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

◆ init()

KOKKOS_INLINE_FUNCTION void Models::FixedLength::init ( const MC::KPRNG::pool_type & random_pool,
std::size_t idx,
const SelfParticle & arr )
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::KPRNG::pool_type & random_pool,
FloatType d_t,
std::size_t idx,
const SelfParticle & arr,
const MC::LocalConcentration & c )
static

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:40
MODEL_CONSTANT FloatType d_m
Definition fixed_length.hpp:46
float FloatType
Definition fixed_length.hpp:27

◆ 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:16
MODEL_CONSTANT FloatType l_dot_max
Definition fixed_length.hpp:42
MODEL_CONSTANT FloatType lin_density
Definition fixed_length.hpp:47

The documentation for this struct was generated from the following file: