26 using boost::property_tree::ptree;
29 namespace CellChemistry {
39 const auto& p = m_cd.m_parameters->get_child(
"meinhardt");
41 m_c = p.get<
double>(
"c");
42 m_c0 = p.get<
double>(
"c0");
43 m_d = p.get<
double>(
"d");
44 m_e = p.get<
double>(
"e");
45 m_eps = p.get<
double>(
"eps");
46 m_f = p.get<
double>(
"f");
47 m_gamma = p.get<
double>(
"gamma");
48 m_mu = p.get<
double>(
"mu");
49 m_nu = p.get<
double>(
"nu");
50 m_rho0 = p.get<
double>(
"rho0");
51 m_rho1 = p.get<
double>(
"rho1");
54 void Meinhardt::operator()(
Cell* cell,
double* dchem)
56 double const Y = cell->GetChemical(0);
57 double const A = cell->GetChemical(1);
58 double const H = cell->GetChemical(2);
59 double const S = cell->GetChemical(3);
61 dchem[0] = (m_d * A - m_e * Y + Y * Y / (1 + m_f * Y * Y));
62 dchem[1] = (m_c * A * A * S / H - m_mu * A + m_rho0 * Y);
63 dchem[2] = (m_c * A * A * S - m_nu * H + m_rho1 * Y);
64 dchem[3] = (m_c0 - m_gamma * S - m_eps * Y * S);
Core data with mesh, parameters, random engine and time data.
A cell contains walls and nodes.
Namespace for components of the Default model group.
CellChemistry for Meinhardt model.