StiffnessMatrixAssembler.hpp
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 #ifndef STIFFNESSMATRIXASSEMBLER_HPP_
00030 #define STIFFNESSMATRIXASSEMBLER_HPP_
00031
00032 #include "AbstractFeVolumeIntegralAssembler.hpp"
00033 #include "HeartConfig.hpp"
00034
00042 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00043 class StiffnessMatrixAssembler
00044 : public AbstractFeVolumeIntegralAssembler<ELEMENT_DIM, SPACE_DIM, 1, false , true, NORMAL>
00045 {
00046 public:
00047
00059 c_matrix<double,1*(ELEMENT_DIM+1),1*(ELEMENT_DIM+1)>
00060 ComputeMatrixTerm(
00061 c_vector<double, ELEMENT_DIM+1> &rPhi,
00062 c_matrix<double, SPACE_DIM, ELEMENT_DIM+1> &rGradPhi,
00063 ChastePoint<SPACE_DIM> &rX,
00064 c_vector<double,1> &rU,
00065 c_matrix<double, 1, SPACE_DIM> &rGradU ,
00066 Element<ELEMENT_DIM,SPACE_DIM>* pElement)
00067 {
00068 return prod( trans(rGradPhi), rGradPhi );
00069 }
00070
00076 StiffnessMatrixAssembler(AbstractTetrahedralMesh<ELEMENT_DIM,SPACE_DIM>* pMesh)
00077 : AbstractFeVolumeIntegralAssembler<ELEMENT_DIM,SPACE_DIM,1,false,true,NORMAL>(pMesh)
00078 {
00079 }
00080 };
00081
00082 #endif