VPTissue Reference Manual
PIN.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 "PIN.h"
21 
22 #include "bio/Cell.h"
23 
24 using namespace std;
25 using namespace boost::property_tree;
26 
27 namespace SimPT_Default {
28 namespace CellDaughters {
29 
30 PIN::PIN(const CoreData& cd)
31 {
32  Initialize(cd);
33 }
34 
35 void PIN::Initialize(const CoreData& cd)
36 {
37  m_cd = cd;
38  auto& p = m_cd.m_parameters;
39 
40  ptree const& arr_initval = p->get_child("auxin_transport.initval.value_array");
41  m_x_initval = (++arr_initval.begin())->second.get_value<double>();
42 }
43 
44 void PIN::operator()(Cell* daughter1, Cell* daughter2)
45 {
46  daughter1->SetChemical(1, m_x_initval);
47  daughter2->SetChemical(1, m_x_initval);
48  daughter1->SetTransporters(1, 0.);
49  daughter2->SetTransporters(1, 0.);
50 }
51 
52 } // namespace
53 } // namespace
Core data with mesh, parameters, random engine and time data.
Definition: CoreData.h:38
STL namespace.
A cell contains walls and nodes.
Definition: Cell.h:48
Namespace for components of the Default model group.
Interface for Cell.
Interface for CellDaughters::PIN.