BoundaryElement< ELEMENT_DIM, SPACE_DIM > Class Template Reference

#include <BoundaryElement.hpp>

Inheritance diagram for BoundaryElement< ELEMENT_DIM, SPACE_DIM >:

Inheritance graph
[legend]
Collaboration diagram for BoundaryElement< ELEMENT_DIM, SPACE_DIM >:

Collaboration graph
[legend]

List of all members.

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)


Detailed Description

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
class BoundaryElement< ELEMENT_DIM, SPACE_DIM >

Concrete boundary element class which inherits from AbstractTetrahedralElement.

Definition at line 42 of file BoundaryElement.hpp.


Constructor & Destructor Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
BoundaryElement< ELEMENT_DIM, SPACE_DIM >::BoundaryElement ( unsigned  index,
std::vector< Node< SPACE_DIM > * >  nodes 
) [inline]

Constructor which takes in a vector of nodes.

Parameters:
index the index of the element in the mesh
nodes the nodes owned by the element
Todo:
make rNodes like in AbstractTetrahedralElement? (#991)

Definition at line 39 of file BoundaryElement.cpp.

References BoundaryElement< ELEMENT_DIM, SPACE_DIM >::RegisterWithNodes().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
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.

Parameters:
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().


Member Function Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void BoundaryElement< ELEMENT_DIM, SPACE_DIM >::RegisterWithNodes (  )  [inline, virtual]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void BoundaryElement< ELEMENT_DIM, SPACE_DIM >::ResetIndex ( unsigned  index  )  [inline]

Reset the index of this boundary element in the mesh.

Parameters:
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().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void BoundaryElement< ELEMENT_DIM, SPACE_DIM >::MarkAsDeleted (  )  [inline, virtual]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void BoundaryElement< ELEMENT_DIM, SPACE_DIM >::UpdateNode ( const unsigned &  rIndex,
Node< SPACE_DIM > *  pNode 
) [inline, virtual]

Update node at the given index.

Parameters:
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.


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

Generated on Tue Aug 4 16:11:02 2009 for Chaste by  doxygen 1.5.5