VPTissue Reference Manual
TransportEquations.h
Go to the documentation of this file.
1 #ifndef RDAT_EQUATIONS_H_INCLUDED
2 #define RDAT_EQUATIONS_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
23 #include "sim/CoreData.h"
24 
25 #include <vector>
26 
27 namespace SimPT_Sim {
28 
29 class Mesh;
30 class Sim;
31 
40 {
41 public:
43  TransportEquations(const CoreData& cd);
44 
46  void GetDerivatives(std::vector<double> &derivs) const;
47 
51  int GetEquationCount() const;
52 
54  void GetVariables(std::vector<double> &values) const;
55 
57  void Initialize(const CoreData& cd);
58 
60  void SetVariables(std::vector<double> const &values) const;
61 
62 private:
63  CoreData m_cd;
64  CellChemistryComponent m_cell_chemistry;
65  int m_effective_nchem;
66  int m_equation_count;
67  Mesh* m_mesh;
68  CellToCellTransportComponent m_cell2cell_transport;
69  WallChemistryComponent m_wall_chemistry;
70 };
71 
72 } // namespace
73 
74 #endif // end-of-include-guard
void GetVariables(std::vector< double > &values) const
Interact with the mesh to get values of transport variables.
Core data with mesh, parameters, random engine and time data.
Definition: CoreData.h:38
void SetVariables(std::vector< double > const &values) const
Interact with mesh to set values for transport variables.
Core data used during model execution.
Interface of Model Components.
TransportEquations(const CoreData &cd)
Initializing constructor.
void Initialize(const CoreData &cd)
Straight initialization or re-initialization.
Namespace for the core simulator.
std::function< void(Cell *, double *)> CellChemistryComponent
CellChemistry component interface.
int GetEquationCount() const
Two equations per chemical for each walls, and one equation per chemical for each cell...
Equations for reaction and transport processes.
std::function< void(Wall *, double *, double *)> WallChemistryComponent
Wall chemistry component interface.
void GetDerivatives(std::vector< double > &derivs) const
Interact with the mesh to calculate values of derivatives,.
Structure of cells; key data structure.
Definition: Mesh.h:62
std::function< void(Wall *, double *, double *)> CellToCellTransportComponent
CellToCellTransport component interface.