ESyS-Particle  2.3.2
brokenEWallInteractionGroup.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 __EWALLINTERACTIONGROUP_H
14 #define __EWALLINTERACTIONGROUP_H
15 
16 //--- project includes ---
17 #include "Model/EWallInteraction.h"
18 #include "Model/WallIG.h"
20 #include "Model/IGParam.h"
21 
22 template <class T> class ParallelParticleArray;
23 
24 //--- STL includes ---
25 #include <map>
26 
27 using std::map;
28 
32 class CEWallIGP : public CElasticIGP
33 {
34 protected:
35  std::string m_wallname;
36 public:
37 
38  CEWallIGP(const std::string&,const std::string&,double);
39  virtual void packInto(CVarMPIBuffer*) const;
40  std::string getWallName() const {return m_wallname;};
41  friend ostream& operator<<(ostream&,const CEWallIGP&);
42 };
43 
45 
46 
47 // --- Forward decl ---
48 template <class T> class CEWallInteractionGroup;
49 template <class T> ostream& operator<< (ostream &, const CEWallInteractionGroup<T> &);
50 
54 template<class T>
56 {
57  protected:
58  vector<CElasticWallInteraction<T> > m_interactions;
59  double m_k;
60  double m_k_global;
61 
62  public:
66 
70  virtual void setTimeStepSize(double dt)
71  {
72  }
73 
74  virtual void calcForces();
75  virtual void applyForce(const Vec3&);
76  virtual void Update(ParallelParticleArray<T>*);
77 
78  friend ostream& operator<< <>(ostream &, const CEWallInteractionGroup &);
79 };
80 
82 
83 #endif //__EWALLINTERACTIONGROUP_H