MonodomainSolver.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
00030
00031
00032
00033
00034
00035
00036 #ifndef MONODOMAINSOLVER_HPP_
00037 #define MONODOMAINSOLVER_HPP_
00038
00039 #include "AbstractDynamicLinearPdeSolver.hpp"
00040 #include "MassMatrixAssembler.hpp"
00041 #include "NaturalNeumannSurfaceTermAssembler.hpp"
00042 #include "MonodomainCorrectionTermAssembler.hpp"
00043 #include "MonodomainTissue.hpp"
00044 #include "MonodomainAssembler.hpp"
00045
00070 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00071 class MonodomainSolver
00072 : public AbstractDynamicLinearPdeSolver<ELEMENT_DIM,SPACE_DIM,1>
00073 {
00074 private:
00075
00077 MonodomainTissue<ELEMENT_DIM,SPACE_DIM>* mpMonodomainTissue;
00078
00080 BoundaryConditionsContainer<ELEMENT_DIM,SPACE_DIM,1>* mpBoundaryConditions;
00081
00083 MonodomainAssembler<ELEMENT_DIM,SPACE_DIM>* mpMonodomainAssembler;
00084
00086 NaturalNeumannSurfaceTermAssembler<ELEMENT_DIM,SPACE_DIM,1>* mpNeumannSurfaceTermsAssembler;
00087
00092 MonodomainCorrectionTermAssembler<ELEMENT_DIM,SPACE_DIM>* mpMonodomainCorrectionTermAssembler;
00093
00095 Mat mMassMatrix;
00096
00100 Vec mVecForConstructingRhs;
00101
00102
00111 void SetupLinearSystem(Vec currentSolution, bool computeMatrix);
00112
00113 public:
00120 void PrepareForSetupLinearSystem(Vec currentSolution);
00121
00127 virtual void InitialiseForSolve(Vec initialSolution);
00128
00136 MonodomainSolver(AbstractTetrahedralMesh<ELEMENT_DIM,SPACE_DIM>* pMesh,
00137 MonodomainTissue<ELEMENT_DIM,SPACE_DIM>* pTissue,
00138 BoundaryConditionsContainer<ELEMENT_DIM,SPACE_DIM,1>* pBoundaryConditions);
00139
00143 virtual ~MonodomainSolver();
00144 };
00145
00146
00147
00148 #endif