#include <BoundaryElement.hpp>
Public Member Functions | |
BoundaryElement (unsigned index, std::vector< Node< SPACE_DIM > * > nodes) | |
BoundaryElement (unsigned index, Node< SPACE_DIM > *pNode) | |
void | RegisterWithNodes () |
void | ResetIndex (unsigned index) |
void | MarkAsDeleted () |
void | UpdateNode (const unsigned &rIndex, Node< SPACE_DIM > *pNode) |
Definition at line 42 of file BoundaryElement.hpp.
BoundaryElement< ELEMENT_DIM, SPACE_DIM >::BoundaryElement | ( | unsigned | index, | |
std::vector< Node< SPACE_DIM > * > | nodes | |||
) | [inline] |
Constructor which takes in a vector of nodes.
index | the index of the element in the mesh | |
nodes | the nodes owned by the element |
Definition at line 39 of file BoundaryElement.cpp.
References BoundaryElement< ELEMENT_DIM, SPACE_DIM >::RegisterWithNodes().
BoundaryElement< ELEMENT_DIM, SPACE_DIM >::BoundaryElement | ( | unsigned | index, | |
Node< SPACE_DIM > * | pNode | |||
) | [inline] |
Create a new boundary element from a Node.
The element has ELEMENT_DIM=0 and SPACE_DIM identical to that of the node from which it is constructed.
index | the index of the element in the mesh | |
pNode | a pointer to the node |
Definition at line 46 of file BoundaryElement.cpp.
References AbstractElement< ELEMENT_DIM, SPACE_DIM >::mNodes, and BoundaryElement< ELEMENT_DIM, SPACE_DIM >::RegisterWithNodes().
void BoundaryElement< ELEMENT_DIM, SPACE_DIM >::RegisterWithNodes | ( | ) | [inline, virtual] |
Inform all nodes forming this element that they are in this element.
Implements AbstractElement< ELEMENT_DIM, SPACE_DIM >.
Definition at line 63 of file BoundaryElement.cpp.
References AbstractElement< ELEMENT_DIM, SPACE_DIM >::mIndex, and AbstractElement< ELEMENT_DIM, SPACE_DIM >::mNodes.
Referenced by BoundaryElement< ELEMENT_DIM, SPACE_DIM >::BoundaryElement(), Cylindrical2dMesh::ReMesh(), and BoundaryElement< ELEMENT_DIM, SPACE_DIM >::ResetIndex().
void BoundaryElement< ELEMENT_DIM, SPACE_DIM >::ResetIndex | ( | unsigned | index | ) | [inline] |
Reset the index of this boundary element in the mesh.
index | the new index of the boundary element |
Definition at line 72 of file BoundaryElement.cpp.
References AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::mIndex, AbstractElement< ELEMENT_DIM, SPACE_DIM >::mNodes, and BoundaryElement< ELEMENT_DIM, SPACE_DIM >::RegisterWithNodes().
void BoundaryElement< ELEMENT_DIM, SPACE_DIM >::MarkAsDeleted | ( | ) | [inline, virtual] |
Mark the element as having been removed from the mesh. Also notify nodes in the element that it has been removed.
Implements AbstractElement< ELEMENT_DIM, SPACE_DIM >.
Definition at line 83 of file BoundaryElement.cpp.
References AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::mIndex, AbstractElement< ELEMENT_DIM, SPACE_DIM >::mIsDeleted, and AbstractElement< ELEMENT_DIM, SPACE_DIM >::mNodes.
Referenced by Cylindrical2dMesh::ReconstructCylindricalMesh().
void BoundaryElement< ELEMENT_DIM, SPACE_DIM >::UpdateNode | ( | const unsigned & | rIndex, | |
Node< SPACE_DIM > * | pNode | |||
) | [inline, virtual] |
Update node at the given index.
rIndex | is an local index to which node to change | |
pNode | is a pointer to the replacement node |
Implements AbstractElement< ELEMENT_DIM, SPACE_DIM >.
Definition at line 95 of file BoundaryElement.cpp.
References AbstractElement< ELEMENT_DIM, SPACE_DIM >::mIndex, and AbstractElement< ELEMENT_DIM, SPACE_DIM >::mNodes.