31 using boost::property_tree::ptree;
34 namespace CellChemistry {
36 SmithPhyllotaxis::SmithPhyllotaxis(
const CoreData& cd)
41 void SmithPhyllotaxis::Initialize(
const CoreData& cd)
47 const auto& p = m_cd.m_parameters->get_child(
"smith_phyllotaxis");
48 m_rho_IAA = p.get<
double>(
"rho_IAA");
49 m_mu_IAA = p.get<
double>(
"mu_IAA");
50 m_k_IAA = p.get<
double>(
"k_IAA");
51 m_rho_PIN = p.get<
double>(
"rho_PIN");
52 m_rho_PIN0 = p.get<
double>(
"rho_PIN0");
53 m_mu_PIN = p.get<
double>(
"mu_PIN");
54 m_k_PIN = p.get<
double>(
"k_PIN");
57 void SmithPhyllotaxis::operator()(
Cell* cell,
double* dchem)
59 const double IAA = cell->GetChemical(0);
60 const double PIN = cell->GetChemical(1);
61 const double dIAAdt = m_rho_IAA / (1.0 + m_k_IAA * IAA) - m_mu_IAA * IAA;
62 const double dPINdt = (m_rho_PIN0 + m_rho_PIN * IAA) / (1.0 + m_k_PIN * PIN) - m_mu_PIN * PIN;
Core data with mesh, parameters, random engine and time data.
A cell contains walls and nodes.
Core data used during model execution.
Namespace for components of the Default model group.
Interface for WallAttributes.
BoundaryType enumeration class.
Interface/Implementation for ReduceCellWalls.
CellChemistry for SmithPhyllotaxis model.
Interface for CellAttributes.