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 ABSTRACTMONODOMAINSOLVER_HPP_
00030 #define ABSTRACTMONODOMAINSOLVER_HPP_
00031
00032
00033 #include "MonodomainTissue.hpp"
00034 #include "MonodomainAssembler.hpp"
00035 #include "AbstractDynamicLinearPdeSolver.hpp"
00036
00042 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00043 class AbstractMonodomainSolver
00044 : public AbstractDynamicLinearPdeSolver<ELEMENT_DIM,SPACE_DIM,1>
00045 {
00046 protected:
00048 BoundaryConditionsContainer<ELEMENT_DIM,SPACE_DIM,1>* mpBoundaryConditions;
00049
00051 MonodomainTissue<ELEMENT_DIM,SPACE_DIM>* mpMonodomainTissue;
00052
00057 MonodomainAssembler<ELEMENT_DIM,SPACE_DIM>* mpMonodomainAssembler;
00058
00063 unsigned mNumQuadPoints;
00064
00065 public:
00072 void PrepareForSetupLinearSystem(Vec currentSolution);
00073
00079 virtual void InitialiseForSolve(Vec initialSolution);
00080
00081
00090 AbstractMonodomainSolver(AbstractTetrahedralMesh<ELEMENT_DIM,SPACE_DIM>* pMesh,
00091 MonodomainTissue<ELEMENT_DIM,SPACE_DIM>* pTissue,
00092 BoundaryConditionsContainer<ELEMENT_DIM,SPACE_DIM,1>* pBoundaryConditions,
00093 unsigned numQuadPoints = 2);
00094
00098 virtual ~AbstractMonodomainSolver();
00099 };
00100
00101 #endif