OperatorSplittingMonodomainSolver.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
00037 #ifndef OPERATORSPLITTINGMONODOMAINSOLVER_HPP_
00038 #define OPERATORSPLITTINGMONODOMAINSOLVER_HPP_
00039
00040
00041 #include "MonodomainTissue.hpp"
00042 #include "MonodomainAssembler.hpp"
00043 #include "AbstractDynamicLinearPdeSolver.hpp"
00044 #include "MassMatrixAssembler.hpp"
00045 #include "NaturalNeumannSurfaceTermAssembler.hpp"
00046
00071 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00072 class OperatorSplittingMonodomainSolver : public AbstractDynamicLinearPdeSolver<ELEMENT_DIM,SPACE_DIM,1>
00073 {
00074 private:
00075
00077 BoundaryConditionsContainer<ELEMENT_DIM,SPACE_DIM,1>* mpBoundaryConditions;
00078
00080 MonodomainTissue<ELEMENT_DIM,SPACE_DIM>* mpMonodomainTissue;
00081
00083 MonodomainAssembler<ELEMENT_DIM,SPACE_DIM>* mpMonodomainAssembler;
00084
00086 NaturalNeumannSurfaceTermAssembler<ELEMENT_DIM,SPACE_DIM,1>* mpNeumannSurfaceTermsAssembler;
00087
00089 Mat mMassMatrix;
00090
00098 Vec mVecForConstructingRhs;
00099
00108 void SetupLinearSystem(Vec currentSolution, bool computeMatrix);
00109
00114 void PrepareForSetupLinearSystem(Vec currentSolution);
00115
00120 void FollowingSolveLinearSystem(Vec currentSolution);
00121
00122 public:
00123
00129 void InitialiseForSolve(Vec initialSolution);
00130
00131
00139 OperatorSplittingMonodomainSolver(AbstractTetrahedralMesh<ELEMENT_DIM,SPACE_DIM>* pMesh,
00140 MonodomainTissue<ELEMENT_DIM,SPACE_DIM>* pTissue,
00141 BoundaryConditionsContainer<ELEMENT_DIM,SPACE_DIM,1>* pBoundaryConditions);
00142
00146 ~OperatorSplittingMonodomainSolver();
00147 };
00148
00149
00150
00151
00152 #endif