AbstractTetrahedralElement< 0, SPACE_DIM > Class Template Reference

#include <AbstractTetrahedralElement.hpp>

Inheritance diagram for AbstractTetrahedralElement< 0, SPACE_DIM >:

Inheritance graph
[legend]
Collaboration diagram for AbstractTetrahedralElement< 0, SPACE_DIM >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AbstractTetrahedralElement (unsigned index, const std::vector< Node< SPACE_DIM > * > &rNodes)
 AbstractTetrahedralElement (unsigned index=INDEX_IS_NOT_USED)
virtual ~AbstractTetrahedralElement ()
c_vector< double, SPACE_DIM > CalculateCentroid () const
void CalculateWeightedDirection (c_vector< double, SPACE_DIM > &rWeightedDirection, double &rJacobianDeterminant)
void GetStiffnessMatrixGlobalIndices (unsigned problemDim, unsigned *pIndices) const


Detailed Description

template<unsigned SPACE_DIM>
class AbstractTetrahedralElement< 0, SPACE_DIM >

Todo:
Move implementation into .cpp file? (#847)
Specialization for 0d elements so we don't get errors from Boost on some compilers.

Definition at line 142 of file AbstractTetrahedralElement.hpp.


Constructor & Destructor Documentation

template<unsigned SPACE_DIM>
AbstractTetrahedralElement< 0, SPACE_DIM >::AbstractTetrahedralElement ( unsigned  index,
const std::vector< Node< SPACE_DIM > * > &  rNodes 
) [inline]

Constructor which takes in a vector of nodes.

Parameters:
index the index of the element in the mesh
rNodes the nodes owned by the element

Todo:
We don't want to create new data, calculation and throw the answer away

Definition at line 195 of file AbstractTetrahedralElement.hpp.

References AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateWeightedDirection(), and AbstractElement< ELEMENT_DIM, SPACE_DIM >::mNodes.

template<unsigned SPACE_DIM>
AbstractTetrahedralElement< 0, SPACE_DIM >::AbstractTetrahedralElement ( unsigned  index = INDEX_IS_NOT_USED  )  [inline]

Default constructor, which doesn't fill in any nodes. The nodes must be added later.

Parameters:
index the index of the element in the mesh (defaults to INDEX_IS_NOT_USED)

Definition at line 217 of file AbstractTetrahedralElement.hpp.

template<unsigned SPACE_DIM>
virtual AbstractTetrahedralElement< 0, SPACE_DIM >::~AbstractTetrahedralElement (  )  [inline, virtual]

Virtual destructor, since this class has virtual methods.

Definition at line 165 of file AbstractTetrahedralElement.hpp.


Member Function Documentation

template<unsigned SPACE_DIM>
c_vector< double, SPACE_DIM > AbstractTetrahedralElement< 0, SPACE_DIM >::CalculateCentroid (  )  const [inline]

Get the location of the centroid of the element.

Definition at line 237 of file AbstractTetrahedralElement.hpp.

References AbstractElement< ELEMENT_DIM, SPACE_DIM >::mNodes.

template<unsigned SPACE_DIM>
void AbstractTetrahedralElement< 0, SPACE_DIM >::CalculateWeightedDirection ( c_vector< double, SPACE_DIM > &  rWeightedDirection,
double &  rJacobianDeterminant 
) [inline]

Compute the weighted direction for this element.

Parameters:
rWeightedDirection the weighted direction vector
rJacobianDeterminant the determinant of the Jacobian

Definition at line 223 of file AbstractTetrahedralElement.hpp.

template<unsigned SPACE_DIM>
void AbstractTetrahedralElement< 0, SPACE_DIM >::GetStiffnessMatrixGlobalIndices ( unsigned  problemDim,
unsigned *  pIndices 
) const [inline]

Place in the pIndices array, the global indices (within the stiffness matrix) of the degrees of freedom associated with this element.

Parameters:
problemDim the problem dimension e.g. 2 for Bidomain.
pIndices where to store results: an unsigned array with ELEMENT_DIM+1 entries.

Definition at line 244 of file AbstractTetrahedralElement.hpp.

References AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNodeGlobalIndex().


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

Generated on Tue Aug 4 16:10:47 2009 for Chaste by  doxygen 1.5.5