ESyS-Particle  4.0.1
ECorner2DInteraction.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 #ifndef __ECORNER2DINTERACTION_H
00013 #define __ECORNER2DINTERACTION_H
00014 
00015 // -- Project includes --
00016 #include "Foundation/vec3.h"
00017 #include "Geometry/Corner2D.h"
00018 #include "Model/Particle.h"
00019 #include "Model/ETriMeshIP.h"
00020 
00029 class ECorner2DInteraction
00030 {
00031  private:
00032   CParticle *m_p;
00033   Corner2D* m_corner;
00034   double m_k;;
00035 
00039   bool m_inner_flag; 
00040 
00041  public:
00042   ECorner2DInteraction();
00043   ECorner2DInteraction(CParticle*,Corner2D*,ETriMeshIP,bool iflag=true);
00044   ~ECorner2DInteraction();
00045 
00046   bool isInner(){return m_inner_flag;};
00047   virtual void calcForces();
00048 };
00049 
00050 #endif //__ECORNER2DINTERACTION_H