ESyS-Particle  2.3.2
ElasticInteractionGroup.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 __ELASTICINTERACTIONGROUP_H
14 #define __ELASTICINTERACTIONGROUP_H
15 
16 #include "Model/InteractionGroup.h"
18 #include "Model/IGParam.h"
19 
20 //--- IO includes ---
21 #include <iostream>
22 using std::ostream;
23 using std::endl;
24 
25 
29 template <class T>
31 {
32  protected:
33  vector<CElasticInteraction> m_interactions;
34  AParallelInteractionStorage* m_exIG; //<! if an interaction is in m_exIG, it can't be in m_interactions
35  double m_k; //<! spring constant
36 
37  public:
41 
42  virtual void setExIG(AParallelInteractionStorage* eg){m_exIG=eg;};
43  void setParam(const CElasticIGP*);
44 
45  virtual void calcForces();
46 
50  virtual void setTimeStepSize(double dt)
51  {
52  }
53 
54  virtual void Update(ParallelParticleArray<T>*);
55  friend ostream& operator<< <>(ostream&,const CElasticInteractionGroup<T>&);
56 };
57 
59 
60 #endif //__ELASTICINTERACTIONGROUP_H