www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
EFAElement Class Referenceabstract

#include <EFAElement.h>

Inheritance diagram for EFAElement:
[legend]

Public Member Functions

 EFAElement (unsigned int eid, unsigned int n_nodes)
 
virtual ~EFAElement ()
 
unsigned int id () const
 
unsigned int numNodes () const
 
void setNode (unsigned int node_id, EFANode *node)
 
EFANodegetNode (unsigned int node_id) const
 
bool containsNode (EFANode *node) const
 
void printNodes (std::ostream &ostream) const
 
EFANodecreateLocalNodeFromGlobalNode (const EFANode *global_node) const
 
EFANodegetGlobalNodeFromLocalNode (const EFANode *local_node) const
 
unsigned int getLocalNodeIndex (EFANode *node) const
 
void setCrackTipSplit ()
 
bool isCrackTipSplit () const
 
unsigned int numCrackTipNeighbors () const
 
unsigned int getCrackTipNeighbor (unsigned int index) const
 
void addCrackTipNeighbor (EFAElement *neighbor_elem)
 
EFAElementgetParent () const
 
EFAElementgetChild (unsigned int child_id) const
 
void setParent (EFAElement *parent)
 
unsigned int numChildren () const
 
void addChild (EFAElement *child)
 
void clearParentAndChildren ()
 
void findGeneralNeighbors (std::map< EFANode *, std::set< EFAElement *>> &InverseConnectivity)
 
EFAElementgetGeneralNeighbor (unsigned int index) const
 
unsigned int numGeneralNeighbors () const
 
virtual unsigned int numFragments () const =0
 
virtual bool isPartial () const =0
 
virtual void getNonPhysicalNodes (std::set< EFANode *> &non_physical_nodes) const =0
 
virtual void switchNode (EFANode *new_node, EFANode *old_node, bool descend_to_parent)=0
 
virtual void switchEmbeddedNode (EFANode *new_node, EFANode *old_node)=0
 
virtual void updateFragmentNode ()=0
 
virtual void getMasterInfo (EFANode *node, std::vector< EFANode *> &master_nodes, std::vector< double > &master_weights) const =0
 
virtual unsigned int numInteriorNodes () const =0
 
virtual unsigned int getNeighborIndex (const EFAElement *neighbor_elem) const =0
 
virtual void clearNeighbors ()=0
 
virtual void setupNeighbors (std::map< EFANode *, std::set< EFAElement *>> &InverseConnectivityMap)=0
 
virtual void neighborSanityCheck () const =0
 
virtual void initCrackTip (std::set< EFAElement *> &CrackTipElements)=0
 
virtual bool shouldDuplicateForCrackTip (const std::set< EFAElement *> &CrackTipElements)=0
 
virtual bool shouldDuplicateCrackTipSplitElement (const std::set< EFAElement *> &CrackTipElements)=0
 
virtual bool shouldDuplicateForPhantomCorner ()=0
 
virtual bool willCrackTipExtend (std::vector< unsigned int > &split_neighbors) const =0
 
virtual bool isCrackTipElement () const =0
 
virtual unsigned int getNumCuts () const =0
 
virtual bool isFinalCut () const =0
 
virtual void updateFragments (const std::set< EFAElement *> &CrackTipElements, std::map< unsigned int, EFANode *> &EmbeddedNodes)=0
 
virtual void fragmentSanityCheck (unsigned int n_old_frag_edges, unsigned int n_old_frag_cuts) const =0
 
virtual void restoreFragment (const EFAElement *const from_elem)=0
 
virtual void createChild (const std::set< EFAElement *> &CrackTipElements, std::map< unsigned int, EFAElement *> &Elements, std::map< unsigned int, EFAElement *> &newChildElements, std::vector< EFAElement *> &ChildElements, std::vector< EFAElement *> &ParentElements, std::map< unsigned int, EFANode *> &TempNodes)=0
 
virtual void removePhantomEmbeddedNode ()=0
 
virtual void connectNeighbors (std::map< unsigned int, EFANode *> &PermanentNodes, std::map< unsigned int, EFANode *> &TempNodes, std::map< EFANode *, std::set< EFAElement *>> &InverseConnectivityMap, bool merge_phantom_edges)=0
 
virtual void printElement (std::ostream &ostream)=0
 

Protected Member Functions

void mergeNodes (EFANode *&childNode, EFANode *&childOfNeighborNode, EFAElement *childOfNeighborElem, std::map< unsigned int, EFANode *> &PermanentNodes, std::map< unsigned int, EFANode *> &TempNodes)
 

Protected Attributes

unsigned int _id
 
unsigned int _num_nodes
 
std::vector< EFANode * > _nodes
 
std::vector< EFANode * > _local_nodes
 
EFAElement_parent
 
std::vector< EFAElement * > _children
 
bool _crack_tip_split_element
 
std::vector< unsigned int > _crack_tip_neighbors
 
std::vector< EFAElement * > _general_neighbors
 

Detailed Description

Definition at line 20 of file EFAElement.h.

Constructor & Destructor Documentation

◆ EFAElement()

EFAElement::EFAElement ( unsigned int  eid,
unsigned int  n_nodes 
)

Definition at line 16 of file EFAElement.C.

17  : _id(eid),
18  _num_nodes(n_nodes),
19  _nodes(_num_nodes, NULL),
20  _parent(NULL),
22 {
23 }
unsigned int _id
Definition: EFAElement.h:28
std::vector< EFANode * > _nodes
Definition: EFAElement.h:30
unsigned int _num_nodes
Definition: EFAElement.h:29
EFAElement * _parent
Definition: EFAElement.h:32
bool _crack_tip_split_element
Definition: EFAElement.h:34

◆ ~EFAElement()

EFAElement::~EFAElement ( )
virtual

Definition at line 25 of file EFAElement.C.

25 {}

Member Function Documentation

◆ addChild()

void EFAElement::addChild ( EFAElement child)

Definition at line 203 of file EFAElement.C.

204 {
205  _children.push_back(child);
206 }
std::vector< EFAElement * > _children
Definition: EFAElement.h:33

◆ addCrackTipNeighbor()

void EFAElement::addCrackTipNeighbor ( EFAElement neighbor_elem)

Definition at line 157 of file EFAElement.C.

158 {
159  // Find out what side the specified element is on, and add it as a crack tip neighbor
160  // element for that side.
161  unsigned int neighbor_index = getNeighborIndex(neighbor_elem);
162  bool crack_tip_neighbor_exist = false;
163  for (unsigned int i = 0; i < _crack_tip_neighbors.size(); ++i)
164  {
165  if (_crack_tip_neighbors[i] == neighbor_index)
166  {
167  crack_tip_neighbor_exist = true;
168  break;
169  }
170  }
171  if (!crack_tip_neighbor_exist)
172  _crack_tip_neighbors.push_back(neighbor_index);
173 }
virtual unsigned int getNeighborIndex(const EFAElement *neighbor_elem) const =0
std::vector< unsigned int > _crack_tip_neighbors
Definition: EFAElement.h:35

◆ clearNeighbors()

virtual void EFAElement::clearNeighbors ( )
pure virtual

◆ clearParentAndChildren()

void EFAElement::clearParentAndChildren ( )

Definition at line 209 of file EFAElement.C.

Referenced by ElementFragmentAlgorithm::clearAncestry().

210 {
211  _parent = NULL;
212  _children.clear();
213 }
EFAElement * _parent
Definition: EFAElement.h:32
std::vector< EFAElement * > _children
Definition: EFAElement.h:33

◆ connectNeighbors()

virtual void EFAElement::connectNeighbors ( std::map< unsigned int, EFANode *> &  PermanentNodes,
std::map< unsigned int, EFANode *> &  TempNodes,
std::map< EFANode *, std::set< EFAElement *>> &  InverseConnectivityMap,
bool  merge_phantom_edges 
)
pure virtual

◆ containsNode()

bool EFAElement::containsNode ( EFANode node) const

◆ createChild()

virtual void EFAElement::createChild ( const std::set< EFAElement *> &  CrackTipElements,
std::map< unsigned int, EFAElement *> &  Elements,
std::map< unsigned int, EFAElement *> &  newChildElements,
std::vector< EFAElement *> &  ChildElements,
std::vector< EFAElement *> &  ParentElements,
std::map< unsigned int, EFANode *> &  TempNodes 
)
pure virtual

◆ createLocalNodeFromGlobalNode()

EFANode * EFAElement::createLocalNodeFromGlobalNode ( const EFANode global_node) const

Definition at line 70 of file EFAElement.C.

Referenced by EFAElement2D::createChild(), EFAElement3D::createChild(), EFAElement2D::EFAElement2D(), and EFAElement3D::EFAElement3D().

71 {
72  // Given a global node, create a new local node
73  if (global_node->category() != EFANode::N_CATEGORY_PERMANENT &&
74  global_node->category() != EFANode::N_CATEGORY_TEMP &&
76  EFAError("In createLocalNodeFromGlobalNode node is not global");
77 
78  EFANode * new_local_node = NULL;
79  unsigned int inode = 0;
80  for (; inode < _nodes.size(); ++inode)
81  {
82  if (_nodes[inode] == global_node)
83  {
84  new_local_node = new EFANode(inode, EFANode::N_CATEGORY_LOCAL_INDEX);
85  break;
86  }
87  }
88  if (!new_local_node)
89  EFAError("In createLocalNodeFromGlobalNode could not find global node");
90 
91  return new_local_node;
92 }
std::vector< EFANode * > _nodes
Definition: EFAElement.h:30
N_CATEGORY category() const
Definition: EFANode.C:42

◆ findGeneralNeighbors()

void EFAElement::findGeneralNeighbors ( std::map< EFANode *, std::set< EFAElement *>> &  InverseConnectivity)

Definition at line 216 of file EFAElement.C.

Referenced by EFAElement2D::setupNeighbors(), and EFAElement3D::setupNeighbors().

217 {
218  _general_neighbors.clear();
219  std::set<EFAElement *> patch_elements;
220  for (unsigned int inode = 0; inode < _num_nodes; ++inode)
221  {
222  std::set<EFAElement *> this_node_connected_elems = InverseConnectivity[_nodes[inode]];
223  patch_elements.insert(this_node_connected_elems.begin(), this_node_connected_elems.end());
224  }
225 
226  std::set<EFAElement *>::iterator eit2;
227  for (eit2 = patch_elements.begin(); eit2 != patch_elements.end(); ++eit2)
228  {
229  EFAElement * neigh_elem = *eit2;
230  if (neigh_elem != this)
231  _general_neighbors.push_back(neigh_elem);
232  }
233 }
std::vector< EFANode * > _nodes
Definition: EFAElement.h:30
unsigned int _num_nodes
Definition: EFAElement.h:29
std::vector< EFAElement * > _general_neighbors
Definition: EFAElement.h:37

◆ fragmentSanityCheck()

virtual void EFAElement::fragmentSanityCheck ( unsigned int  n_old_frag_edges,
unsigned int  n_old_frag_cuts 
) const
pure virtual

Implemented in EFAElement3D, and EFAElement2D.

◆ getChild()

EFAElement * EFAElement::getChild ( unsigned int  child_id) const

Definition at line 182 of file EFAElement.C.

Referenced by EFAElement2D::connectNeighbors(), EFAElement3D::connectNeighbors(), EFAElement2D::switchNode(), and EFAElement3D::switchNode().

183 {
184  if (child_id < _children.size())
185  return _children[child_id];
186  else
187  EFAError("child_id out of bounds");
188 }
std::vector< EFAElement * > _children
Definition: EFAElement.h:33

◆ getCrackTipNeighbor()

unsigned int EFAElement::getCrackTipNeighbor ( unsigned int  index) const

Definition at line 148 of file EFAElement.C.

149 {
150  if (index < _crack_tip_neighbors.size())
151  return _crack_tip_neighbors[index];
152  else
153  EFAError("in getCrackTipNeighbor index out of bounds");
154 }
std::vector< unsigned int > _crack_tip_neighbors
Definition: EFAElement.h:35

◆ getGeneralNeighbor()

EFAElement * EFAElement::getGeneralNeighbor ( unsigned int  index) const

Definition at line 236 of file EFAElement.C.

Referenced by EFAElement2D::switchNode(), and EFAElement3D::switchNode().

237 {
238  return _general_neighbors[index];
239 }
std::vector< EFAElement * > _general_neighbors
Definition: EFAElement.h:37

◆ getGlobalNodeFromLocalNode()

EFANode * EFAElement::getGlobalNodeFromLocalNode ( const EFANode local_node) const

Definition at line 95 of file EFAElement.C.

96 {
97  // Given a local node, find the global node corresponding to that node
98  if (local_node->category() != EFANode::N_CATEGORY_LOCAL_INDEX)
99  EFAError("In getGlobalNodeFromLocalNode node passed in is not local");
100 
101  EFANode * global_node = _nodes[local_node->id()];
102 
103  if (global_node->category() != EFANode::N_CATEGORY_PERMANENT &&
104  global_node->category() != EFANode::N_CATEGORY_TEMP)
105  EFAError("In getGlobalNodeFromLocalNode, the node stored by the element is not global");
106 
107  return global_node;
108 }
std::vector< EFANode * > _nodes
Definition: EFAElement.h:30
unsigned int id() const
Definition: EFANode.C:36
N_CATEGORY category() const
Definition: EFANode.C:42

◆ getLocalNodeIndex()

unsigned int EFAElement::getLocalNodeIndex ( EFANode node) const

Definition at line 111 of file EFAElement.C.

Referenced by XFEM::getEFANodeCoords().

112 {
113  unsigned int local_node_id = 99999;
114  bool found_local_node = false;
115  for (unsigned int i = 0; i < _num_nodes; ++i)
116  {
117  if (_nodes[i] == node)
118  {
119  found_local_node = true;
120  local_node_id = i;
121  break;
122  }
123  }
124  if (!found_local_node)
125  EFAError("In EFAelement::getLocalNodeIndex, cannot find the given node");
126  return local_node_id;
127 }
std::vector< EFANode * > _nodes
Definition: EFAElement.h:30
unsigned int _num_nodes
Definition: EFAElement.h:29

◆ getMasterInfo()

virtual void EFAElement::getMasterInfo ( EFANode node,
std::vector< EFANode *> &  master_nodes,
std::vector< double > &  master_weights 
) const
pure virtual

Implemented in EFAElement3D, and EFAElement2D.

Referenced by XFEM::getEFANodeCoords().

◆ getNeighborIndex()

virtual unsigned int EFAElement::getNeighborIndex ( const EFAElement neighbor_elem) const
pure virtual

Implemented in EFAElement3D, and EFAElement2D.

Referenced by addCrackTipNeighbor().

◆ getNode()

EFANode * EFAElement::getNode ( unsigned int  node_id) const

◆ getNonPhysicalNodes()

virtual void EFAElement::getNonPhysicalNodes ( std::set< EFANode *> &  non_physical_nodes) const
pure virtual

Implemented in EFAElement3D, and EFAElement2D.

◆ getNumCuts()

virtual unsigned int EFAElement::getNumCuts ( ) const
pure virtual

Implemented in EFAElement3D, and EFAElement2D.

◆ getParent()

EFAElement * EFAElement::getParent ( ) const

Definition at line 176 of file EFAElement.C.

177 {
178  return _parent;
179 }
EFAElement * _parent
Definition: EFAElement.h:32

◆ id()

unsigned int EFAElement::id ( ) const

◆ initCrackTip()

virtual void EFAElement::initCrackTip ( std::set< EFAElement *> &  CrackTipElements)
pure virtual

◆ isCrackTipElement()

virtual bool EFAElement::isCrackTipElement ( ) const
pure virtual

◆ isCrackTipSplit()

bool EFAElement::isCrackTipSplit ( ) const

Definition at line 136 of file EFAElement.C.

Referenced by EFAElement2D::getCrackTipSplitElementID(), EFAElement2D::initCrackTip(), and EFAElement3D::initCrackTip().

137 {
139 }
bool _crack_tip_split_element
Definition: EFAElement.h:34

◆ isFinalCut()

virtual bool EFAElement::isFinalCut ( ) const
pure virtual

Implemented in EFAElement3D, and EFAElement2D.

◆ isPartial()

virtual bool EFAElement::isPartial ( ) const
pure virtual

◆ mergeNodes()

void EFAElement::mergeNodes ( EFANode *&  childNode,
EFANode *&  childOfNeighborNode,
EFAElement childOfNeighborElem,
std::map< unsigned int, EFANode *> &  PermanentNodes,
std::map< unsigned int, EFANode *> &  TempNodes 
)
protected

Definition at line 248 of file EFAElement.C.

Referenced by EFAElement2D::connectNeighbors(), and EFAElement3D::connectNeighbors().

253 {
254  // Important: this must be run only on child elements that were just created
255  if (!_parent)
256  EFAError("no getParent element for child element ", _id, " in mergeNodes");
257 
258  EFAElement * childElem = this;
259  if (childNode != childOfNeighborNode)
260  {
261  if (childNode->category() == EFANode::N_CATEGORY_PERMANENT)
262  {
263  if (childOfNeighborNode->category() == EFANode::N_CATEGORY_PERMANENT)
264  {
265  if (childOfNeighborNode->parent() == childNode) // merge into childNode
266  {
267  childOfNeighborElem->switchNode(childNode, childOfNeighborNode, true);
268  if (!Efa::deleteFromMap(PermanentNodes, childOfNeighborNode))
269  {
270  EFAError("Attempted to delete node: ",
271  childOfNeighborNode->id(),
272  " from PermanentNodes, but couldn't find it");
273  }
274  childOfNeighborNode = childNode;
275  }
276  else if (childNode->parent() == childOfNeighborNode) // merge into childOfNeighborNode
277  {
278  childElem->switchNode(childOfNeighborNode, childNode, true);
279  if (!Efa::deleteFromMap(PermanentNodes, childNode))
280  {
281  EFAError("Attempted to delete node: ",
282  childNode->id(),
283  " from PermanentNodes, but couldn't find it");
284  }
285  childNode = childOfNeighborNode;
286  }
287  else if (childNode->parent() != NULL &&
288  childNode->parent() == childOfNeighborNode->parent())
289  {
290  // merge into childNode if both nodes are child permanent
291  childOfNeighborElem->switchNode(childNode, childOfNeighborNode, true);
292  if (!Efa::deleteFromMap(PermanentNodes,
293  childOfNeighborNode)) // delete childOfNeighborNode
294  {
295  EFAError("Attempted to delete node: ",
296  childOfNeighborNode->id(),
297  " from PermanentNodes, but couldn't find it");
298  }
299  childOfNeighborNode = childNode;
300  }
301  else
302  {
303  EFAError("Attempting to merge nodes: ",
304  childNode->id(),
305  " and ",
306  childOfNeighborNode->id(),
307  " but both are permanent themselves");
308  }
309  }
310  else
311  {
312  if (childOfNeighborNode->parent() != childNode &&
313  childOfNeighborNode->parent() != childNode->parent())
314  {
315  EFAError("Attempting to merge nodes ",
316  childOfNeighborNode->idCatString(),
317  " and ",
318  childNode->idCatString(),
319  " but neither the 2nd node nor its parent is parent of the 1st");
320  }
321  childOfNeighborElem->switchNode(childNode, childOfNeighborNode, true);
322  if (!Efa::deleteFromMap(TempNodes, childOfNeighborNode))
323  EFAError("Attempted to delete node: ",
324  childOfNeighborNode->id(),
325  " from TempNodes, but couldn't find it");
326  childOfNeighborNode = childNode;
327  }
328  }
329  else if (childOfNeighborNode->category() == EFANode::N_CATEGORY_PERMANENT)
330  {
331  if (childNode->parent() != childOfNeighborNode &&
332  childNode->parent() != childOfNeighborNode->parent())
333  {
334  EFAError("Attempting to merge nodes ",
335  childNode->id(),
336  " and ",
337  childOfNeighborNode->id(),
338  " but neither the 2nd node nor its parent is parent of the 1st");
339  }
340  childElem->switchNode(childOfNeighborNode, childNode, true);
341  if (!Efa::deleteFromMap(TempNodes, childNode))
342  EFAError(
343  "Attempted to delete node: ", childNode->id(), " from TempNodes, but couldn't find it");
344  childNode = childOfNeighborNode;
345  }
346  else // both nodes are temporary -- create new permanent node and delete temporary nodes
347  {
348  unsigned int new_node_id = Efa::getNewID(PermanentNodes);
349  EFANode * newNode =
350  new EFANode(new_node_id, EFANode::N_CATEGORY_PERMANENT, childNode->parent());
351  PermanentNodes.insert(std::make_pair(new_node_id, newNode));
352 
353  childOfNeighborElem->switchNode(newNode, childOfNeighborNode, true);
354  childElem->switchNode(newNode, childNode, true);
355 
356  if (childNode->parent() != childOfNeighborNode->parent())
357  {
358  EFAError("Attempting to merge nodes ",
359  childNode->id(),
360  " and ",
361  childOfNeighborNode->id(),
362  " but they don't share a common parent");
363  }
364 
365  if (!Efa::deleteFromMap(TempNodes, childOfNeighborNode))
366  EFAError("Attempted to delete node: ",
367  childOfNeighborNode->id(),
368  " from TempNodes, but couldn't find it");
369  if (!Efa::deleteFromMap(TempNodes, childNode))
370  EFAError(
371  "Attempted to delete node: ", childNode->id(), " from TempNodes, but couldn't find it");
372  childOfNeighborNode = newNode;
373  childNode = newNode;
374  }
375  }
376 }
unsigned int getNewID(std::map< unsigned int, T *> &theMap)
Definition: EFAFuncs.h:39
unsigned int _id
Definition: EFAElement.h:28
std::string idCatString()
Definition: EFANode.C:20
bool deleteFromMap(std::map< unsigned int, T *> &theMap, T *elemToDelete, bool delete_elem=true)
Definition: EFAFuncs.h:23
virtual void switchNode(EFANode *new_node, EFANode *old_node, bool descend_to_parent)=0
EFAElement * _parent
Definition: EFAElement.h:32
EFANode * parent() const
Definition: EFANode.C:48
unsigned int id() const
Definition: EFANode.C:36
N_CATEGORY category() const
Definition: EFANode.C:42

◆ neighborSanityCheck()

virtual void EFAElement::neighborSanityCheck ( ) const
pure virtual

◆ numChildren()

unsigned int EFAElement::numChildren ( ) const

Definition at line 197 of file EFAElement.C.

Referenced by EFAElement2D::connectNeighbors(), EFAElement3D::connectNeighbors(), EFAElement2D::switchNode(), and EFAElement3D::switchNode().

198 {
199  return _children.size();
200 }
std::vector< EFAElement * > _children
Definition: EFAElement.h:33

◆ numCrackTipNeighbors()

unsigned int EFAElement::numCrackTipNeighbors ( ) const

Definition at line 142 of file EFAElement.C.

143 {
144  return _crack_tip_neighbors.size();
145 }
std::vector< unsigned int > _crack_tip_neighbors
Definition: EFAElement.h:35

◆ numFragments()

virtual unsigned int EFAElement::numFragments ( ) const
pure virtual

Implemented in EFAElement3D, and EFAElement2D.

◆ numGeneralNeighbors()

unsigned int EFAElement::numGeneralNeighbors ( ) const

Definition at line 242 of file EFAElement.C.

Referenced by EFAElement2D::switchNode(), and EFAElement3D::switchNode().

243 {
244  return _general_neighbors.size();
245 }
std::vector< EFAElement * > _general_neighbors
Definition: EFAElement.h:37

◆ numInteriorNodes()

virtual unsigned int EFAElement::numInteriorNodes ( ) const
pure virtual

Implemented in EFAElement3D, and EFAElement2D.

◆ numNodes()

unsigned int EFAElement::numNodes ( ) const

◆ printElement()

virtual void EFAElement::printElement ( std::ostream &  ostream)
pure virtual

◆ printNodes()

void EFAElement::printNodes ( std::ostream &  ostream) const

Definition at line 61 of file EFAElement.C.

62 {
63  ostream << "***** nodes for element " << _id << " *****" << std::endl;
64  for (unsigned int i = 0; i < _num_nodes; ++i)
65  ostream << "addr " << _nodes[i] << ", ID " << _nodes[i]->idCatString() << ", category "
66  << _nodes[i]->category() << std::endl;
67 }
unsigned int _id
Definition: EFAElement.h:28
std::vector< EFANode * > _nodes
Definition: EFAElement.h:30
unsigned int _num_nodes
Definition: EFAElement.h:29

◆ removePhantomEmbeddedNode()

virtual void EFAElement::removePhantomEmbeddedNode ( )
pure virtual

Implemented in EFAElement3D, and EFAElement2D.

◆ restoreFragment()

virtual void EFAElement::restoreFragment ( const EFAElement *const  from_elem)
pure virtual

◆ setCrackTipSplit()

void EFAElement::setCrackTipSplit ( )

Definition at line 130 of file EFAElement.C.

131 {
133 }
bool _crack_tip_split_element
Definition: EFAElement.h:34

◆ setNode()

void EFAElement::setNode ( unsigned int  node_id,
EFANode node 
)

◆ setParent()

void EFAElement::setParent ( EFAElement parent)

Definition at line 191 of file EFAElement.C.

Referenced by EFAElement2D::createChild(), and EFAElement3D::createChild().

192 {
193  _parent = parent;
194 }
EFAElement * _parent
Definition: EFAElement.h:32

◆ setupNeighbors()

virtual void EFAElement::setupNeighbors ( std::map< EFANode *, std::set< EFAElement *>> &  InverseConnectivityMap)
pure virtual

◆ shouldDuplicateCrackTipSplitElement()

virtual bool EFAElement::shouldDuplicateCrackTipSplitElement ( const std::set< EFAElement *> &  CrackTipElements)
pure virtual

Implemented in EFAElement3D, and EFAElement2D.

◆ shouldDuplicateForCrackTip()

virtual bool EFAElement::shouldDuplicateForCrackTip ( const std::set< EFAElement *> &  CrackTipElements)
pure virtual

Implemented in EFAElement3D, and EFAElement2D.

◆ shouldDuplicateForPhantomCorner()

virtual bool EFAElement::shouldDuplicateForPhantomCorner ( )
pure virtual

Implemented in EFAElement3D, and EFAElement2D.

◆ switchEmbeddedNode()

virtual void EFAElement::switchEmbeddedNode ( EFANode new_node,
EFANode old_node 
)
pure virtual

Implemented in EFAElement3D, and EFAElement2D.

◆ switchNode()

virtual void EFAElement::switchNode ( EFANode new_node,
EFANode old_node,
bool  descend_to_parent 
)
pure virtual

◆ updateFragmentNode()

virtual void EFAElement::updateFragmentNode ( )
pure virtual

◆ updateFragments()

virtual void EFAElement::updateFragments ( const std::set< EFAElement *> &  CrackTipElements,
std::map< unsigned int, EFANode *> &  EmbeddedNodes 
)
pure virtual

◆ willCrackTipExtend()

virtual bool EFAElement::willCrackTipExtend ( std::vector< unsigned int > &  split_neighbors) const
pure virtual

Implemented in EFAElement3D, and EFAElement2D.

Member Data Documentation

◆ _children

std::vector<EFAElement *> EFAElement::_children
protected

◆ _crack_tip_neighbors

std::vector<unsigned int> EFAElement::_crack_tip_neighbors
protected

◆ _crack_tip_split_element

bool EFAElement::_crack_tip_split_element
protected

◆ _general_neighbors

std::vector<EFAElement *> EFAElement::_general_neighbors
protected

◆ _id

unsigned int EFAElement::_id
protected

◆ _local_nodes

std::vector<EFANode *> EFAElement::_local_nodes
protected

◆ _nodes

std::vector<EFANode *> EFAElement::_nodes
protected

◆ _num_nodes

unsigned int EFAElement::_num_nodes
protected

◆ _parent

EFAElement* EFAElement::_parent
protected

The documentation for this class was generated from the following files: