ESyS-Particle  2.3
EWallInteractionGroup.h
Go to the documentation of this file.
1 // //
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  double k_local;
62 
63  public:
67 
71  virtual void setTimeStepSize(double dt)
72  {
73  }
74 
75  virtual void calcForces();
76  virtual void applyForce(const Vec3&);
77  virtual void Update(ParallelParticleArray<T>*);
78 
79  friend ostream& operator<< <>(ostream &, const CEWallInteractionGroup &);
80 };
81 
83 
84 #endif //__EWALLINTERACTIONGROUP_H
CEWallIGP(const std::string &, const std::string &, double)
Definition: EWallInteractionGroup.cpp:28
Definition: vec3.h:46
virtual void packInto(CVarMPIBuffer *) const
Definition: EWallInteractionGroup.cpp:38
virtual ~CEWallInteractionGroup()
Definition: EWallInteractionGroup.h:66
base class for all walls
Definition: Wall.h:39
parrallel particle storage array with neighborsearch and variable exchange
Definition: SubLattice.h:61
Abstract Base class for a group of interactions between particles and a wall.
Definition: WallIG.h:30
Interaction group parameters for CEWallInteractionGroups.
Definition: brokenEWallInteractionGroup.h:32
Abstract base class for MPI send/recv buffer.
Definition: mpibuf.h:33
CEWallIGP * extractEWallIGP(AMPIBuffer *)
Definition: EWallInteractionGroup.cpp:53
vector< CElasticWallInteraction< T > > m_interactions
Definition: brokenEWallInteractionGroup.h:58
Interaction group parameters for CElasticInteractionGroups.
Definition: ElasticInteraction.h:24
double k_local
Definition: EWallInteractionGroup.h:61
std::string getWallName() const
Definition: EWallInteractionGroup.h:40
abstract base class for communicator
Definition: comm.h:46
virtual void applyForce(const Vec3 &)
Definition: brokenEWallInteractionGroup.hpp:102
MPI send/recv buffer with automagically adjusted size.
Definition: mpivbuf.h:34
friend ostream & operator<<(ostream &, const CEWallIGP &)
Definition: EWallInteractionGroup.cpp:46
std::string m_wallname
Definition: brokenEWallInteractionGroup.h:35
Class for a group of unbonded,elastic interactions between particles and a wall.
Definition: brokenEWallInteractionGroup.h:48
CEWallInteractionGroup(TML_Comm *)
Definition: brokenEWallInteractionGroup.hpp:21
virtual void calcForces()
Definition: brokenEWallInteractionGroup.hpp:42
virtual void Update(ParallelParticleArray< T > *)
Definition: brokenEWallInteractionGroup.hpp:57
virtual void setTimeStepSize(double dt)
Definition: EWallInteractionGroup.h:71
double m_k
Elastic modulus.
Definition: brokenEWallInteractionGroup.h:59
double m_k_global
total wall stiffness
Definition: brokenEWallInteractionGroup.h:60