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
00058 MonodomainAssembler<ELEMENT_DIM,SPACE_DIM>* mpMonodomainAssembler;
00059
00064 unsigned mNumQuadPoints;
00065
00066 public:
00073 void PrepareForSetupLinearSystem(Vec currentSolution);
00074
00080 virtual void InitialiseForSolve(Vec initialSolution);
00081
00082
00091 AbstractMonodomainSolver(AbstractTetrahedralMesh<ELEMENT_DIM,SPACE_DIM>* pMesh,
00092 MonodomainTissue<ELEMENT_DIM,SPACE_DIM>* pTissue,
00093 BoundaryConditionsContainer<ELEMENT_DIM,SPACE_DIM,1>* pBoundaryConditions,
00094 unsigned numQuadPoints = 2);
00095
00099 virtual ~AbstractMonodomainSolver();
00100 };
00101
00102 #endif