26 namespace CellToCellTransport {
39 auto& p = m_cd.m_parameters;
41 m_chemical_count = p->get<
unsigned int>(
"model.cell_chemical_count");
42 ptree
const& arr_D = p->get_child(
"auxin_transport.D.value_array");
45 for (
auto it = arr_D.begin(); it != arr_D.end(); it++) {
46 if (c == m_chemical_count) {
49 m_D.push_back(it->second.get_value<
double>());
53 for (
unsigned int i = c; i < m_chemical_count; i++) {
61 if (w->GetC1()->IsBoundaryPolygon() || w->GetC2()->IsBoundaryPolygon()) {
64 if (w->GetC1()->IsBoundaryPolygon()) {
65 dchem_c2[1] -= w->
GetLength() * m_D[1] * (w->GetC2()->GetChemical(1));
67 dchem_c1[1] -= w->
GetLength() * m_D[1] * (w->GetC1()->GetChemical(1));
74 for (
unsigned int i = 0; i < m_chemical_count; i++) {
75 const double phi = w->
GetLength() * m_D[i]
76 * (w->GetC2()->GetChemical(i) - w->GetC1()->GetChemical(i));
Core data with mesh, parameters, random engine and time data.
void operator()(Wall *w, double *dchem_c1, double *dchem_c2)
Execute.
Namespace for components of the Default model group.
void Initialize(const CoreData &cd)
Initialize or re-initialize.
Meinhardt(const CoreData &cd)
Initializing constructor.
double GetLength() const
Returns (and calculates, if length marked as dirty) the length along all nodes.
CellToCellTransport for Meinhardt model.
A cell wall, runs between cell corner points and consists of wall elements.