ESyS-Particle  4.0.1
WallInteraction.h
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 __WALLINTERACTION_H
00014 #define __WALLINTERACTION_H
00015 
00016 #include "Wall.h"
00017 #include "Interaction.h"
00018 #include "Particle.h"
00019 
00028 template <class T>
00029 class AWallInteraction : public AInteraction
00030 {
00031 protected:
00032   T *m_p;
00033   CWall *m_wall;
00038   bool m_inner_flag; 
00039 
00040 public:
00041 
00042   AWallInteraction(T*,CWall*,bool iflag=true);
00043 
00044   virtual ~AWallInteraction(){};
00045 
00046   virtual bool hasTag(int,int) const;
00047   virtual Vec3 getPosFirst() const {return m_p->getPos();};
00048 
00049   inline bool isInner(){return m_inner_flag;};
00050   virtual void calcForces()=0;
00051   virtual double getStiffness(){return 0.0;};
00052 };
00053 
00054 #include "WallInteraction.hpp"
00055 
00056 #endif //__WALLINTERACTION_H