ESyS-Particle
4.0.1
|
00001 00002 // // 00003 // Copyright (c) 2003-2011 by The University of Queensland // 00004 // Earth Systems Science Computational Centre (ESSCC) // 00005 // http://www.uq.edu.au/esscc // 00006 // // 00007 // Primary Business: Brisbane, Queensland, Australia // 00008 // Licensed under the Open Software License version 3.0 // 00009 // http://www.opensource.org/licenses/osl-3.0.php // 00010 // // 00012 00013 #ifndef __EWALLINTERACTION_H 00014 #define __EWALLINTERACTION_H 00015 00016 #include "Model/WallInteraction.h" 00017 #include "Model/Wall.h" 00018 #include "Model/Particle.h" 00019 #include "Model/RotParticle.h" 00020 00029 template <class T> 00030 class CElasticWallInteraction : public AWallInteraction<T> 00031 { 00032 protected: 00033 double m_k; 00034 public: 00035 CElasticWallInteraction(); 00036 CElasticWallInteraction(T*,CWall*,double,bool); 00037 virtual ~CElasticWallInteraction(){}; 00038 00039 virtual void calcForces(); 00040 virtual Vec3 getForce(); 00041 virtual void setPP(const vector<T*>){}; 00042 virtual double getStiffness(); 00043 }; 00044 00045 #include "EWallInteraction.hpp" 00046 00047 #endif //__EWALLINTERACTION_H