www.mooseframework.org
Public Member Functions | List of all members
EFAFragment Class Referenceabstract

#include <EFAFragment.h>

Inheritance diagram for EFAFragment:
[legend]

Public Member Functions

 EFAFragment ()
 
virtual ~EFAFragment ()
 
virtual void switchNode (EFANode *new_node, EFANode *old_node)=0
 
virtual bool containsNode (EFANode *node) const =0
 
virtual unsigned int getNumCuts () const =0
 
virtual unsigned int getNumCutNodes () const =0
 
virtual std::set< EFANode * > getAllNodes () const =0
 
virtual bool isConnected (EFAFragment *other_fragment) const =0
 
virtual void removeInvalidEmbeddedNodes (std::map< unsigned int, EFANode *> &EmbeddedNodes)=0
 
std::vector< EFANode * > getCommonNodes (EFAFragment *other) const
 

Detailed Description

Definition at line 19 of file EFAFragment.h.

Constructor & Destructor Documentation

◆ EFAFragment()

EFAFragment::EFAFragment ( )

Definition at line 15 of file EFAFragment.C.

15 {}

◆ ~EFAFragment()

EFAFragment::~EFAFragment ( )
virtual

Definition at line 17 of file EFAFragment.C.

17 {}

Member Function Documentation

◆ containsNode()

virtual bool EFAFragment::containsNode ( EFANode node) const
pure virtual

Implemented in EFAFragment2D, and EFAFragment3D.

◆ getAllNodes()

virtual std::set<EFANode *> EFAFragment::getAllNodes ( ) const
pure virtual

Implemented in EFAFragment2D, and EFAFragment3D.

Referenced by getCommonNodes().

◆ getCommonNodes()

std::vector< EFANode * > EFAFragment::getCommonNodes ( EFAFragment other) const

Definition at line 20 of file EFAFragment.C.

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

21 {
22  std::set<EFANode *> frag1_nodes = getAllNodes();
23  std::set<EFANode *> frag2_nodes = other->getAllNodes();
24  std::vector<EFANode *> common_nodes = Efa::getCommonElems(frag1_nodes, frag2_nodes);
25  return common_nodes;
26 }
virtual std::set< EFANode * > getAllNodes() const =0
std::vector< T > getCommonElems(std::set< T > &v1, std::set< T > &v2)
Definition: EFAFuncs.h:70

◆ getNumCutNodes()

virtual unsigned int EFAFragment::getNumCutNodes ( ) const
pure virtual

Implemented in EFAFragment2D, and EFAFragment3D.

◆ getNumCuts()

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

Implemented in EFAFragment2D, and EFAFragment3D.

◆ isConnected()

virtual bool EFAFragment::isConnected ( EFAFragment other_fragment) const
pure virtual

Implemented in EFAFragment2D, and EFAFragment3D.

◆ removeInvalidEmbeddedNodes()

virtual void EFAFragment::removeInvalidEmbeddedNodes ( std::map< unsigned int, EFANode *> &  EmbeddedNodes)
pure virtual

Implemented in EFAFragment3D, and EFAFragment2D.

◆ switchNode()

virtual void EFAFragment::switchNode ( EFANode new_node,
EFANode old_node 
)
pure virtual

Implemented in EFAFragment2D, and EFAFragment3D.


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