00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef _ELEMENT_HPP_
00031 #define _ELEMENT_HPP_
00032
00033 #include "AbstractTetrahedralElement.hpp"
00034 #include <set>
00035
00036 template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00037 class Element : public AbstractTetrahedralElement<ELEMENT_DIM, SPACE_DIM>
00038 {
00039
00040 public:
00041 Element(unsigned index, std::vector<Node<SPACE_DIM>*> nodes);
00042
00048 Element(const Element &element, const unsigned index);
00049
00050 void RegisterWithNodes();
00051
00052 void MarkAsDeleted();
00053
00058 void UpdateNode(const unsigned& rIndex, Node<SPACE_DIM>* pNode);
00059
00060 void ResetIndex(unsigned index);
00061
00067 c_vector<double,SPACE_DIM+1> CalculateCircumsphere();
00068
00077 c_vector<double,SPACE_DIM+1> CalculateCircumsphere(c_matrix<double, SPACE_DIM, SPACE_DIM>& rJacobian, c_matrix<double, SPACE_DIM, SPACE_DIM>& rInverseJacobian);
00078
00079 double CalculateCircumsphereVolume();
00080
00086 double CalculateQuality();
00087
00088 c_vector<double, SPACE_DIM+1> CalculateInterpolationWeights(ChastePoint<SPACE_DIM> testPoint);
00089
00095 c_vector<double, SPACE_DIM+1> CalculateInterpolationWeightsWithProjection(ChastePoint<SPACE_DIM> testPoint);
00096
00097 c_vector<double, SPACE_DIM> CalculatePsi(ChastePoint<SPACE_DIM> testPoint);
00098
00099 bool IncludesPoint(ChastePoint<SPACE_DIM> testPoint, bool strict=false);
00100
00101 };
00102
00103
00104
00105
00106 #endif //_BOUNDARYELEMENT_HPP_
00107