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 BIDOMAINWITHBATHASSEMBLER_HPP_
00030 #define BIDOMAINWITHBATHASSEMBLER_HPP_
00031
00032 #include "BidomainDg0Assembler.hpp"
00033 #include "HeartConfig.hpp"
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00047 class BidomainWithBathAssembler
00048 : public virtual BidomainDg0Assembler<ELEMENT_DIM, SPACE_DIM>
00049 {
00050 public:
00051
00058 virtual c_matrix<double,2*(ELEMENT_DIM+1),2*(ELEMENT_DIM+1)> ComputeMatrixTerm(
00059 c_vector<double, ELEMENT_DIM+1> &rPhi,
00060 c_matrix<double, ELEMENT_DIM, ELEMENT_DIM+1> &rGradPhi,
00061 ChastePoint<SPACE_DIM> &rX,
00062 c_vector<double,2> &u,
00063 c_matrix<double, 2, SPACE_DIM> &rGradU ,
00064 Element<ELEMENT_DIM,SPACE_DIM>* pElement);
00065
00066
00067 virtual c_vector<double,2*(ELEMENT_DIM+1)> ComputeVectorTerm(
00068 c_vector<double, ELEMENT_DIM+1> &rPhi,
00069 c_matrix<double, ELEMENT_DIM, ELEMENT_DIM+1> &rGradPhi,
00070 ChastePoint<SPACE_DIM> &rX,
00071 c_vector<double,2> &u,
00072 c_matrix<double, 2, SPACE_DIM> &rGradU ,
00073 Element<ELEMENT_DIM,SPACE_DIM>* pElement);
00074
00081 void FinaliseLinearSystem(Vec currentSolutionOrGuess, double currentTime, bool assembleVector, bool assembleMatrix);
00082
00083 public:
00087 BidomainWithBathAssembler(AbstractMesh<ELEMENT_DIM,SPACE_DIM>* pMesh,
00088 BidomainPde<SPACE_DIM>* pPde,
00089 BoundaryConditionsContainer<ELEMENT_DIM, SPACE_DIM, 2>* pBcc,
00090 unsigned numQuadPoints = 2);
00091 };
00092
00093 #endif