ESyS-Particle
4.0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
Model
RotElasticInteractionGroup.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 __ROTELASTICINTERACTIONGROUP_H
14
#define __ROTELASTICINTERACTIONGROUP_H
15
16
#include "Model/InteractionGroup.h"
17
#include "Model/RotElasticInteraction.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
CRotElasticInteractionGroup
:
public
APairInteractionGroup
<T>
31
{
32
protected
:
33
vector<CRotElasticInteraction> m_interactions;
34
AParallelInteractionStorage
* m_exIG;
//<! if an interaction is in m_exIG, it can't be in m_interactions
35
double
m_kr;
//<! Normal spring constant
36
37
public
:
38
CRotElasticInteractionGroup
();
39
CRotElasticInteractionGroup
(
const
CRotElasticIGP
*);
40
virtual
~
CRotElasticInteractionGroup
(){};
41
42
virtual
void
setExIG(
AParallelInteractionStorage
* eg){m_exIG=eg;};
43
void
setParam(
const
CRotElasticIGP
*);
44
48
virtual
void
setTimeStepSize
(
double
dt)
49
{
50
}
51
52
virtual
void
calcForces();
53
virtual
void
Update
(
ParallelParticleArray<T>
*);
54
friend
ostream& operator<< <>(ostream&,
const
CRotElasticInteractionGroup<T>
&);
55
};
56
57
#include "Model/RotElasticInteractionGroup.hpp"
58
59
#endif //__ELASTICINTERACTIONGROUP_H
Generated on Mon Jun 4 2012 22:48:31 for ESyS-Particle by
1.8.1