13 #ifndef __ELASTICINTERACTION_H
14 #define __ELASTICINTERACTION_H
16 #include "Model/IGParam.h"
17 #include "Model/Interaction.h"
18 #include "Model/Particle.h"
32 CElasticIGP(
const std::string&,
double,
bool scaling=
true);
35 void setSpringConst(
double k){m_k=k;};
36 double getSpringConst()
const{
return m_k;};
38 virtual std::string getTypeString()
const {
return "Elastic";}
40 friend ostream& operator<<(ostream&,
const CElasticIGP&);
75 virtual Vec3 getPos()
const {
return m_cpos;};
79 Vec3 getForce()
const;
86 #endif //__ELASTICINTERACTION_H