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 #ifndef BASICBIDOMAINSOLVER_HPP_
00033 #define BASICBIDOMAINSOLVER_HPP_
00034
00035 #include "UblasIncludes.hpp"
00036
00037
00038 #include <vector>
00039 #include <petscvec.h>
00040
00041 #include "BidomainAssembler.hpp"
00042 #include "BidomainWithBathAssembler.hpp"
00043 #include "AbstractBidomainSolver.hpp"
00044 #include "HeartConfig.hpp"
00045
00046 #include <boost/numeric/ublas/vector_proxy.hpp>
00047
00048
00054 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00055 class BasicBidomainSolver :
00056 public AbstractBidomainSolver<ELEMENT_DIM,SPACE_DIM>
00057 {
00058 protected:
00069 void SetupLinearSystem(Vec currentSolution, bool computeMatrix);
00070
00074 virtual void InitialiseAssembler();
00075
00076 public:
00077
00087 BasicBidomainSolver(bool bathSimulation,
00088 AbstractTetrahedralMesh<ELEMENT_DIM,SPACE_DIM>* pMesh,
00089 BidomainTissue<SPACE_DIM>* pTissue,
00090 BoundaryConditionsContainer<ELEMENT_DIM, SPACE_DIM, 2>* pBcc,
00091 unsigned numQuadPoints = 2);
00092
00096 virtual ~BasicBidomainSolver()
00097 {
00098 }
00099 };
00100
00101
00102 #endif