VPTissue Reference Manual
wall_chemistry/Meinhardt.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2011-2016 Universiteit Antwerpen
3  *
4  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
5  * the European Commission - subsequent versions of the EUPL (the "Licence");
6  * You may not use this work except in compliance with the Licence.
7  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the Licence is distributed on an "AS IS" basis,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the Licence for the specific language governing
13  * permissions and limitations under the Licence.
14  */
20 #include "Meinhardt.h"
21 
22 #include "bio/Cell.h"
23 #include "bio/Wall.h"
24 
25 using namespace std;
26 using namespace boost::property_tree;
27 
28 namespace SimPT_Default {
29 namespace WallChemistry {
30 
31 Meinhardt::Meinhardt()
32  : m_chemical_count(0U)
33 {
34 }
35 
37  : Meinhardt()
38 {
39  Initialize(cd);
40 }
41 
43 {
44  m_cd = cd;
45  auto& p = m_cd.m_parameters;
46 
47  m_chemical_count = p->get<unsigned int>("model.cell_chemical_count");
48 }
49 
50 void Meinhardt::operator()(Wall*, double* dw1, double* dw2)
51 {
52  for (unsigned int c = 0; c < m_chemical_count; c++) {
53  dw1[c] = 0.;
54  dw2[c] = 0.;
55  }
56 }
57 
58 } // namespace
59 } // namespace
Core data with mesh, parameters, random engine and time data.
Definition: CoreData.h:38
STL namespace.
Namespace for components of the Default model group.
void operator()(Wall *w, double *dw1, double *dw2)
Execute.
Interface for Cell.
WallChemistry for Meinhardt model.
Meinhardt version of wall chemistry.
void Initialize(const CoreData &cd)
Initialize from ptree.
A cell wall, runs between cell corner points and consists of wall elements.
Definition: Wall.h:48
Interface for Wall.