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 #ifndef OPERATORSPLITTINGMONODOMAINSOLVER_HPP_
00031 #define OPERATORSPLITTINGMONODOMAINSOLVER_HPP_
00032
00033
00034 #include "MonodomainTissue.hpp"
00035 #include "MonodomainAssembler.hpp"
00036 #include "AbstractDynamicLinearPdeSolver.hpp"
00037 #include "MassMatrixAssembler.hpp"
00038
00039
00066 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00067 class OperatorSplittingMonodomainSolver : public AbstractDynamicLinearPdeSolver<ELEMENT_DIM,SPACE_DIM,1>
00068 {
00069 private:
00070
00072 BoundaryConditionsContainer<ELEMENT_DIM,SPACE_DIM,1>* mpBoundaryConditions;
00073
00075 MonodomainTissue<ELEMENT_DIM,SPACE_DIM>* mpMonodomainTissue;
00076
00078 MonodomainAssembler<ELEMENT_DIM,SPACE_DIM>* mpMonodomainAssembler;
00079
00084 unsigned mNumQuadPoints;
00085
00087 Mat mMassMatrix;
00088
00096 Vec mVecForConstructingRhs;
00097
00106 void SetupLinearSystem(Vec currentSolution, bool computeMatrix);
00107
00112 void PrepareForSetupLinearSystem(Vec currentSolution);
00113
00118 void FollowingSolveLinearSystem(Vec currentSolution);
00119
00120 public:
00121
00127 void InitialiseForSolve(Vec initialSolution);
00128
00129
00138 OperatorSplittingMonodomainSolver(AbstractTetrahedralMesh<ELEMENT_DIM,SPACE_DIM>* pMesh,
00139 MonodomainTissue<ELEMENT_DIM,SPACE_DIM>* pTissue,
00140 BoundaryConditionsContainer<ELEMENT_DIM,SPACE_DIM,1>* pBoundaryConditions,
00141 unsigned numQuadPoints = 2);
00142
00146 ~OperatorSplittingMonodomainSolver();
00147 };
00148
00149
00150
00151
00152 #endif