ESyS-Particle  2.3.2
BCorner2DInteraction.h
Go to the documentation of this file.
1 
2 // //
3 // Copyright (c) 2003-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 #ifndef __BCORNER2DINTERACTION_H
14 #define __BCORNER2DINTERACTION_H
15 
16 // --- project includes ---
17 #include "Geometry/Corner2D.h"
18 #include "Model/Particle.h"
19 #include "Model/BMesh2DIP.h"
20 
30 {
31  private:
34  double m_k;
35  double m_break;
36  double m_dist;
37  double k1,k2;
38  int b_me;
39  int m_cid;
40  int m_pid;
41 
43 
44  public:
46 
49  virtual ~BCorner2DInteraction(){};
50 
51  bool isInner(){return m_inner_flag;};
52  virtual void calcForces();
53  bool broken();
54  virtual Vec3 getPos()const {return m_p->getPos();}; // ??
55  inline int getPid() const {return m_pid;};
56  inline int getCid() const {return m_cid;};
57  virtual void setPP(CParticle* part_p){m_p=part_p;};
58  virtual void setCP(Corner2D* corner_p){m_corner=corner_p;};
59 
60  friend class TML_PackedMessageInterface;
61 };
62 
63 #endif // __BCORNER2DINTERACTION_H