Chaste Commit::1fd4e48e3990e67db148bc1bc4cf6991a0049d0c
|
#include <MutableElement.hpp>
Public Member Functions | |
MutableElement (unsigned index, const std::vector< Node< SPACE_DIM > * > &rNodes) | |
MutableElement (unsigned index) | |
virtual | ~MutableElement () |
void | UpdateNode (const unsigned &rIndex, Node< SPACE_DIM > *pNode) |
void | RegisterWithNodes () |
void | MarkAsDeleted () |
void | ResetIndex (unsigned index) |
void | DeleteNode (const unsigned &rIndex) |
void | AddNode (Node< SPACE_DIM > *pNode, const unsigned &rIndex) |
Edge< SPACE_DIM > * | GetEdge (unsigned localIndex) const |
bool | ContainsEdge (const Edge< SPACE_DIM > *pEdge) const |
unsigned | GetNumEdges () const |
void | SetEdgeHelper (EdgeHelper< SPACE_DIM > *pEdgeHelper) |
void | BuildEdges () |
void | ClearEdges () |
unsigned | GetEdgeGlobalIndex (unsigned localIndex) const |
std::set< unsigned > | GetNeighbouringElementAtEdgeIndex (unsigned localIndex) |
unsigned | GetNodeLocalIndex (unsigned globalIndex) const |
void | RegisterWithEdges () |
void | RebuildEdges () |
virtual bool | IsElementOnBoundary () const |
long | GetLocalEdgeIndex (const Edge< SPACE_DIM > *pEdge) const |
Public Member Functions inherited from AbstractElement< 1, SPACE_DIM > | |
AbstractElement (unsigned index, const std::vector< Node< SPACE_DIM > * > &rNodes) | |
AbstractElement (unsigned index=INDEX_IS_NOT_USED) | |
virtual | ~AbstractElement () |
void | ReplaceNode (Node< SPACE_DIM > *pOldNode, Node< SPACE_DIM > *pNewNode) |
double | GetNodeLocation (unsigned localIndex, unsigned dimension) const |
c_vector< double, SPACE_DIM > | GetNodeLocation (unsigned localIndex) const |
unsigned | GetNodeGlobalIndex (unsigned localIndex) const |
Node< SPACE_DIM > * | GetNode (unsigned localIndex) const |
unsigned | GetNumNodes () const |
void | AddNode (Node< SPACE_DIM > *pNode) |
bool | IsDeleted () const |
unsigned | GetIndex () const |
void | SetIndex (unsigned index) |
bool | GetOwnership () const |
void | SetOwnership (bool ownership) |
void | SetAttribute (double attribute) |
double | GetAttribute () |
unsigned | GetUnsignedAttribute () |
void | AddElementAttribute (double attribute) |
std::vector< double > & | rGetElementAttributes () |
unsigned | GetNumElementAttributes () |
Protected Attributes | |
std::vector< Edge< SPACE_DIM > * > | mEdges |
EdgeHelper< SPACE_DIM > * | mEdgeHelper |
Protected Attributes inherited from AbstractElement< 1, SPACE_DIM > | |
std::vector< Node< SPACE_DIM > * > | mNodes |
unsigned | mIndex |
bool | mIsDeleted |
bool | mOwnership |
ElementAttributes< ELEMENT_DIM, SPACE_DIM > * | mpElementAttributes |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractElement< 1, SPACE_DIM > | |
void | ConstructElementAttributes () |
Specialization for 1d elements so we don't get errors from Boost on some compilers.
Definition at line 253 of file MutableElement.hpp.
MutableElement< 1, SPACE_DIM >::MutableElement | ( | unsigned | index, |
const std::vector< Node< SPACE_DIM > * > & | rNodes | ||
) |
Constructor which takes in a vector of nodes.
index | the index of the element in the mesh |
rNodes | the nodes owned by the element |
Specialization for 1d elements so we don't get errors from Boost on some compilers.
Definition at line 368 of file MutableElement.cpp.
MutableElement< 1, SPACE_DIM >::MutableElement | ( | unsigned | index | ) |
Alternative constructor.
index | global index of the element |
|
virtual |
Virtual destructor, since this class has virtual methods.
Definition at line 377 of file MutableElement.cpp.
void MutableElement< 1, SPACE_DIM >::AddNode | ( | Node< SPACE_DIM > * | pNode, |
const unsigned & | rIndex | ||
) |
Add a node to the element between nodes at rIndex and rIndex+1.
rIndex | the local index of the node after which the new node is added |
pNode | a pointer to the new node |
Definition at line 532 of file MutableElement.cpp.
void MutableElement< 1, SPACE_DIM >::BuildEdges | ( | ) |
Builds edges from element nodes
Definition at line 448 of file MutableElement.cpp.
void MutableElement< 1, SPACE_DIM >::ClearEdges | ( | ) |
Clear edges from element
Definition at line 467 of file MutableElement.cpp.
bool MutableElement< 1, SPACE_DIM >::ContainsEdge | ( | const Edge< SPACE_DIM > * | pEdge | ) | const |
Check if the element contains an edge.
pEdge | pointer to an edge |
Definition at line 429 of file MutableElement.cpp.
void MutableElement< 1, SPACE_DIM >::DeleteNode | ( | const unsigned & | rIndex | ) |
Delete a node with given local index.
rIndex | is the local index of the node to remove |
Definition at line 520 of file MutableElement.cpp.
Edge< SPACE_DIM > * MutableElement< 1, SPACE_DIM >::GetEdge | ( | unsigned | localIndex | ) | const |
Get the edge at localIndex.
localIndex | local index of an edge in this element |
Definition at line 422 of file MutableElement.cpp.
unsigned MutableElement< 1, SPACE_DIM >::GetEdgeGlobalIndex | ( | unsigned | localIndex | ) | const |
Gets the global index of the edge at localIndex
localIndex | local index of the edge in this element |
Definition at line 491 of file MutableElement.cpp.
long MutableElement< 1, SPACE_DIM >::GetLocalEdgeIndex | ( | const Edge< SPACE_DIM > * | pEdge | ) | const |
Return the local index of an edge.
pEdge | pointer to an edge |
Definition at line 477 of file MutableElement.cpp.
std::set< unsigned > MutableElement< 1, SPACE_DIM >::GetNeighbouringElementAtEdgeIndex | ( | unsigned | localIndex | ) |
Gets a set of element indices that neighours the element at the specified edge
localIndex | Local index of the edge in this element |
Definition at line 498 of file MutableElement.cpp.
unsigned MutableElement< 1, SPACE_DIM >::GetNodeLocalIndex | ( | unsigned | globalIndex | ) | const |
Calculate the local index of a node given a global index if node is not contained in element return UINT_MAX
globalIndex | the global index of the node in the mesh |
Definition at line 544 of file MutableElement.cpp.
unsigned MutableElement< 1, SPACE_DIM >::GetNumEdges | ( | ) | const |
Definition at line 417 of file MutableElement.cpp.
|
virtual |
Get whether or not the element is on the boundary by seeing if contains boundary nodes.
Reimplemented in ImmersedBoundaryElement< 1, SPACE_DIM >.
Definition at line 569 of file MutableElement.cpp.
|
virtual |
Overridden MarkAsDeleted() method.
Mark an element as having been removed from the mesh. Also notify nodes in the element that it has been removed.
Implements AbstractElement< 1, SPACE_DIM >.
Definition at line 391 of file MutableElement.cpp.
void MutableElement< 1, SPACE_DIM >::RebuildEdges | ( | ) |
Rebuild edges in this element.
Definition at line 564 of file MutableElement.cpp.
void MutableElement< 1, SPACE_DIM >::RegisterWithEdges | ( | ) |
Inform all edges forming this element that they are in this element.
Definition at line 559 of file MutableElement.cpp.
|
virtual |
Overridden RegisterWithNodes() method.
Informs all nodes forming this element that they are in this element.
Implements AbstractElement< 1, SPACE_DIM >.
Definition at line 382 of file MutableElement.cpp.
void MutableElement< 1, SPACE_DIM >::ResetIndex | ( | unsigned | index | ) |
Reset the global index of the element and update its nodes.
index | the new global index |
Definition at line 404 of file MutableElement.cpp.
void MutableElement< 1, SPACE_DIM >::SetEdgeHelper | ( | EdgeHelper< SPACE_DIM > * | pEdgeHelper | ) |
Sets edge helper.
pEdgeHelper | pointer to an edge helper |
Definition at line 442 of file MutableElement.cpp.
|
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< 1, SPACE_DIM >.
Definition at line 505 of file MutableElement.cpp.
References Node< SPACE_DIM >::AddElement().
|
protected |
EdgeHelper class to keep track of edges
Definition at line 261 of file MutableElement.hpp.
|
protected |
The edges forming this element
Definition at line 258 of file MutableElement.hpp.