ESyS-Particle
4.0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
Model
ElasticInteractionGroup.h
1
2
// //
3
// Copyright (c) 2003-2011 by The University of Queensland //
4
// Earth Systems Science Computational Centre (ESSCC) //
5
// http://www.uq.edu.au/esscc //
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"
17
#include "Model/ElasticInteraction.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>
30
class
CElasticInteractionGroup
:
public
APairInteractionGroup
<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
:
38
CElasticInteractionGroup
();
39
CElasticInteractionGroup
(
const
CElasticIGP
*);
40
virtual
~
CElasticInteractionGroup
(){};
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
58
#include "Model/ElasticInteractionGroup.hpp"
59
60
#endif //__ELASTICINTERACTIONGROUP_H
Generated on Sat Mar 22 2014 08:30:42 for ESyS-Particle by
1.8.1.2