#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 | CalculateJacobian (c_matrix< double, SPACE_DIM, ELEMENT_DIM > &rJacobian, double &rJacobianDeterminant) |
void | CalculateWeightedDirection (c_vector< double, SPACE_DIM > &rWeightedDirection, double &rJacobianDeterminant) |
void | CalculateInverseJacobian (c_matrix< double, SPACE_DIM, ELEMENT_DIM > &rJacobian, double &rJacobianDeterminant, c_matrix< double, ELEMENT_DIM, SPACE_DIM > &rInverseJacobian) |
double | GetVolume (double determinant) const |
void | GetStiffnessMatrixGlobalIndices (unsigned problemDim, unsigned *pIndices) const |
Protected Member Functions | |
void | RefreshJacobian (c_matrix< double, SPACE_DIM, ELEMENT_DIM > &rJacobian) |
Definition at line 45 of file AbstractTetrahedralElement.hpp.
AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::AbstractTetrahedralElement | ( | unsigned | index, | |
const std::vector< Node< SPACE_DIM > * > & | rNodes | |||
) | [inline] |
Constructor which takes in a vector of nodes.
index | the index of the element in the mesh | |
rNodes | the nodes owned by the element |
Definition at line 58 of file AbstractTetrahedralElement.cpp.
References AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateJacobian(), and AbstractElement< ELEMENT_DIM, SPACE_DIM >::mNodes.
AbstractTetrahedralElement< ELEMENT_DIM, 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.
index | the index of the element in the mesh (defaults to INDEX_IS_NOT_USED) |
Definition at line 95 of file AbstractTetrahedralElement.cpp.
virtual AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::~AbstractTetrahedralElement | ( | ) | [inline, virtual] |
Virtual destructor, since this class has virtual methods.
Definition at line 77 of file AbstractTetrahedralElement.hpp.
void AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::RefreshJacobian | ( | c_matrix< double, SPACE_DIM, ELEMENT_DIM > & | rJacobian | ) | [inline, protected] |
Refresh the Jacobian for this element.
rJacobian | the Jacobian matrix |
Definition at line 42 of file AbstractTetrahedralElement.cpp.
References AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNodeLocation(), and AbstractElement< ELEMENT_DIM, SPACE_DIM >::mIsDeleted.
Referenced by AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateJacobian(), and AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateWeightedDirection().
c_vector< double, SPACE_DIM > AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateCentroid | ( | ) | const [inline] |
Get the location of the centroid of the element.
Definition at line 166 of file AbstractTetrahedralElement.cpp.
References AbstractElement< ELEMENT_DIM, SPACE_DIM >::mNodes.
void AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateJacobian | ( | c_matrix< double, SPACE_DIM, ELEMENT_DIM > & | rJacobian, | |
double & | rJacobianDeterminant | |||
) | [inline] |
Compute the Jacobian for this element.
rJacobian | the Jacobian matrix | |
rJacobianDeterminant | the determinant of the Jacobian |
Definition at line 100 of file AbstractTetrahedralElement.cpp.
References AbstractElement< ELEMENT_DIM, SPACE_DIM >::mIndex, and AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::RefreshJacobian().
Referenced by AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::AbstractTetrahedralElement(), and AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateInverseJacobian().
void AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateWeightedDirection | ( | c_vector< double, SPACE_DIM > & | rWeightedDirection, | |
double & | rJacobianDeterminant | |||
) | [inline] |
Compute the weighted direction for this element.
rWeightedDirection | the weighted direction vector | |
rJacobianDeterminant | the determinant of the Jacobian |
Definition at line 120 of file AbstractTetrahedralElement.cpp.
References AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::RefreshJacobian().
Referenced by AbstractTetrahedralElement< 0, SPACE_DIM >::AbstractTetrahedralElement().
void AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateInverseJacobian | ( | c_matrix< double, SPACE_DIM, ELEMENT_DIM > & | rJacobian, | |
double & | rJacobianDeterminant, | |||
c_matrix< double, ELEMENT_DIM, SPACE_DIM > & | rInverseJacobian | |||
) | [inline] |
Compute the inverse Jacobian for this element.
rJacobian | the Jacobian matrix | |
rJacobianDeterminant | the determinant of the Jacobian | |
rInverseJacobian | the inverse Jacobian matrix |
Definition at line 177 of file AbstractTetrahedralElement.cpp.
References AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateJacobian().
Referenced by AbstractFunctionalCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::CalculateOnElement(), Element< ELEMENT_DIM, SPACE_DIM >::CalculatePsi(), and Element< ELEMENT_DIM, SPACE_DIM >::CalculateQuality().
double AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::GetVolume | ( | double | determinant | ) | const [inline] |
determinant | a pre-calculated Jacobian determinant for this element. |
Definition at line 188 of file AbstractTetrahedralElement.cpp.
References AbstractElement< ELEMENT_DIM, SPACE_DIM >::mIsDeleted.
void AbstractTetrahedralElement< ELEMENT_DIM, 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.
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 211 of file AbstractTetrahedralElement.cpp.
References AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNodeGlobalIndex().
Referenced by AbstractAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::ApplyNeummanBoundaryConditions(), and AbstractStaticAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, NON_HEART, CONCRETE >::AssembleSystem().