36 #ifndef ABSTRACTREGULARGRIDDISCRETECONTINUUMSOLVER_HPP_ 37 #define ABSTRACTREGULARGRIDDISCRETECONTINUUMSOLVER_HPP_ 41 #define _BACKWARD_BACKWARD_WARNING_H 1 //Cut out the vtk deprecated warning for now (gcc4.3) 42 #include <vtkImageData.h> 43 #include <vtkSmartPointer.h> 44 #include "SmartPointers.hpp" 45 #include "UblasIncludes.hpp" 46 #include "AbstractDiscreteContinuumSolver.hpp" 47 #include "RegularGrid.hpp" 48 #include "UnitCollection.hpp" 55 template<
unsigned DIM>
90 boost::shared_ptr<RegularGrid<DIM> >
GetGrid();
148 virtual void Setup();
165 virtual void UpdateSolution(std::vector<units::quantity<unit::concentration> >& rData);
175 virtual void Solve() = 0;
180 virtual void Write();
virtual vtkSmartPointer< vtkImageData > GetVtkSolution()
virtual std::vector< units::quantity< unit::concentration > > GetConcentrations()
virtual ~AbstractRegularGridDiscreteContinuumSolver()
boost::shared_ptr< RegularGrid< DIM > > mpRegularGrid
boost::shared_ptr< RegularGrid< DIM > > GetGrid()
virtual std::vector< double > GetSolution()
AbstractRegularGridDiscreteContinuumSolver()
vtkSmartPointer< vtkImageData > mpVtkSolution
virtual void UpdateCellData()
virtual void UpdateSolution(std::vector< double > &rData)
void SetGrid(boost::shared_ptr< RegularGrid< DIM > > pRegularGrid)