36 #ifndef ABSTRACTUNSTRUCTUREDGRIDDISCRETECONTINUUMSOLVER_HPP_ 37 #define ABSTRACTUNSTRUCTUREDGRIDDISCRETECONTINUUMSOLVER_HPP_ 41 #define _BACKWARD_BACKWARD_WARNING_H 1 //Cut out the vtk deprecated warning for now (gcc4.3) 42 #include <vtkUnstructuredGrid.h> 43 #include <vtkSmartPointer.h> 44 #include "SmartPointers.hpp" 45 #include "UblasIncludes.hpp" 46 #include "AbstractDiscreteContinuumSolver.hpp" 47 #include "RegularGrid.hpp" 48 #include "DiscreteContinuumMesh.hpp" 49 #include "UnitCollection.hpp" 56 template<
unsigned DIM>
73 boost::shared_ptr<DiscreteContinuumMesh<DIM, DIM> >
mpMesh;
91 boost::shared_ptr<DiscreteContinuumMesh<DIM> >
GetMesh();
155 virtual void Setup();
173 virtual void UpdateSolution(
const std::vector<units::quantity<unit::concentration> >& rData);
188 virtual void Solve() = 0;
193 virtual void Write();
virtual ~AbstractUnstructuredGridDiscreteContinuumSolver()
virtual std::vector< units::quantity< unit::concentration > > GetConcentrations()
void SetMesh(boost::shared_ptr< DiscreteContinuumMesh< DIM, DIM > > pMesh)
virtual std::vector< units::quantity< unit::concentration > > GetConcentrationsAtCentroids()
virtual void UpdateCellData()
AbstractUnstructuredGridDiscreteContinuumSolver()
virtual vtkSmartPointer< vtkUnstructuredGrid > GetVtkSolution()
virtual void UpdateSolution(const std::vector< double > &rData)
virtual std::vector< double > GetSolution()
boost::shared_ptr< DiscreteContinuumMesh< DIM > > GetMesh()
boost::shared_ptr< DiscreteContinuumMesh< DIM, DIM > > mpMesh
virtual void UpdateElementSolution(const std::vector< double > &rData)
vtkSmartPointer< vtkUnstructuredGrid > mpVtkSolution