Chaste Release::3.1
|
#include <AbstractTetrahedralElement.hpp>
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) |
c_vector< double, SPACE_DIM > | CalculateNormal () |
void | GetStiffnessMatrixGlobalIndices (unsigned problemDim, unsigned *pIndices) const |
Specialization for 0d elements so we don't get errors from Boost on some compilers.
Definition at line 151 of file AbstractTetrahedralElement.hpp.
AbstractTetrahedralElement< 0, SPACE_DIM >::AbstractTetrahedralElement | ( | 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 0d elements so we don't get errors from Boost on some compilers.
Definition at line 267 of file AbstractTetrahedralElement.cpp.
References AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateWeightedDirection(), and AbstractElement< ELEMENT_DIM, SPACE_DIM >::mNodes.
AbstractTetrahedralElement< 0, SPACE_DIM >::AbstractTetrahedralElement | ( | unsigned | index = INDEX_IS_NOT_USED | ) |
Default constructor, which doesn't fill in any nodes. The nodes must be added later.
index | the index of the element in the mesh (defaults to INDEX_IS_NOT_USED) |
Definition at line 288 of file AbstractTetrahedralElement.cpp.
virtual AbstractTetrahedralElement< 0, SPACE_DIM >::~AbstractTetrahedralElement | ( | ) | [inline, virtual] |
Virtual destructor, since this class has virtual methods.
Definition at line 174 of file AbstractTetrahedralElement.hpp.
c_vector< double, SPACE_DIM > AbstractTetrahedralElement< 0, SPACE_DIM >::CalculateCentroid | ( | ) | const |
Get the location of the centroid of the element.
Definition at line 319 of file AbstractTetrahedralElement.cpp.
References AbstractElement< ELEMENT_DIM, SPACE_DIM >::mNodes.
c_vector< double, SPACE_DIM > AbstractTetrahedralElement< 0, SPACE_DIM >::CalculateNormal | ( | ) |
Compute a unit vector normal to this element, if possible.
Definition at line 308 of file AbstractTetrahedralElement.cpp.
void AbstractTetrahedralElement< 0, SPACE_DIM >::CalculateWeightedDirection | ( | c_vector< double, SPACE_DIM > & | rWeightedDirection, |
double & | rJacobianDeterminant | ||
) |
Compute the weighted direction for this element.
rWeightedDirection | the weighted direction vector |
rJacobianDeterminant | the determinant of the Jacobian |
Definition at line 294 of file AbstractTetrahedralElement.cpp.
void AbstractTetrahedralElement< 0, SPACE_DIM >::GetStiffnessMatrixGlobalIndices | ( | unsigned | problemDim, |
unsigned * | pIndices | ||
) | const |
Place in the pIndices array, the global indices (within the stiffness matrix) of the degrees of freedom associated with this element.
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 326 of file AbstractTetrahedralElement.cpp.
References AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNodeGlobalIndex().