00001 #ifndef OPENTISSUE_DYNAMICS_SPH_SPH_SOLVER_H 00002 #define OPENTISSUE_DYNAMICS_SPH_SPH_SOLVER_H 00003 // 00004 // OpenTissue Template Library 00005 // - A generic toolbox for physics-based modeling and simulation. 00006 // Copyright (C) 2008 Department of Computer Science, University of Copenhagen. 00007 // 00008 // OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php 00009 // 00010 #include <OpenTissue/configuration.h> 00011 00012 namespace OpenTissue 00013 { 00014 namespace sph 00015 { 00016 00020 template< typename Types, typename Value > 00021 class Solver 00022 { 00023 public: 00024 typedef Value value; 00025 typedef typename Types::real_type real_type; 00026 typedef typename Types::vector vector; 00027 typedef typename Types::particle particle; 00028 typedef typename Types::particle_cptr_container::const_iterator particle_cptr_container_citerator; 00029 00030 public: 00034 Solver() 00035 { 00036 } 00037 00041 virtual ~Solver() 00042 { 00043 } 00044 00045 public: 00053 virtual value apply(const particle& /*par*/, particle_cptr_container_citerator /*begin*/, particle_cptr_container_citerator /*end*/) const 00054 { 00055 return value(0); 00056 } 00057 00064 virtual value apply(const particle& /*par*/, const particle& /*p*/) const 00065 { 00066 return value(0); 00067 } 00068 00069 00070 }; // End class Solver 00071 00072 } // namespace sph 00073 } // namespace OpenTissue 00074 00075 // OPENTISSUE_DYNAMICS_SPH_SPH_SOLVER_H 00076 #endif