VPTissue Reference Manual
NodeInserter.h
Go to the documentation of this file.
1 #ifndef NODE_INSERTER_H_INCLUDED
2 #define NODE_INSERTER_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  */
22 #include "sim/CoreData.h"
23 
24 namespace SimPT_Sim {
25 
26 class Edge;
27 class Mesh;
28 class Node;
29 class Sim;
30 
35 {
36 public:
38  NodeInserter();
39 
41  NodeInserter(const CoreData& cd);
42 
44  void Initialize(const CoreData& cd);
45 
47  unsigned int InsertNodes();
48 
49 private:
51  void InsertNode(Edge& edge);
52 
54  void UpdateNeighbors(Edge& edge, Node* new_node);
55 
56 private:
57  CoreData m_cd;
58  Mesh* m_mesh;
59  double m_target_node_distance;
60  double m_yielding_threshold;
61 };
62 
63 } // namespace
64 
65 #endif // end_of_include_guard
void Initialize(const CoreData &cd)
Initializes based on values in property tree.
Core data with mesh, parameters, random engine and time data.
Definition: CoreData.h:38
Node in cell wall.
Definition: Node.h:39
Core data used during model execution.
NodeInserter()
Straight initialization of empty object.
Namespace for the core simulator.
An Edge connects two nodes and is ambidextrous.
Definition: Edge.h:31
Insertion of nodes in existing edges (contributes to the cell mechanics).
Definition: NodeInserter.h:34
unsigned int InsertNodes()
Insert nodes in those edges that have been stretched.
Structure of cells; key data structure.
Definition: Mesh.h:62