BasicBidomainSolver.hpp

00001 
00002 /*
00003 
00004 Copyright (C) University of Oxford, 2005-2011
00005 
00006 University of Oxford means the Chancellor, Masters and Scholars of the
00007 University of Oxford, having an administrative office at Wellington
00008 Square, Oxford OX1 2JD, UK.
00009 
00010 This file is part of Chaste.
00011 
00012 Chaste is free software: you can redistribute it and/or modify it
00013 under the terms of the GNU Lesser General Public License as published
00014 by the Free Software Foundation, either version 2.1 of the License, or
00015 (at your option) any later version.
00016 
00017 Chaste is distributed in the hope that it will be useful, but WITHOUT
00018 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00019 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
00020 License for more details. The offer of Chaste under the terms of the
00021 License is subject to the License being interpreted in accordance with
00022 English Law and subject to any action against the University of Oxford
00023 being under the jurisdiction of the English Courts.
00024 
00025 You should have received a copy of the GNU Lesser General Public License
00026 along with Chaste. If not, see <http://www.gnu.org/licenses/>.
00027 
00028 */
00029 
00030 
00031 
00032 #ifndef BASICBIDOMAINSOLVER_HPP_
00033 #define BASICBIDOMAINSOLVER_HPP_
00034 
00035 #include "UblasIncludes.hpp"
00036 
00037 //#include <iostream>
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 /*BASICBIDOMAINSOLVER_HPP_*/

Generated on Tue May 31 14:31:41 2011 for Chaste by  doxygen 1.5.5