13 #ifndef MODEL_DAMPING_H
14 #define MODEL_DAMPING_H
17 #include "Model/DampingIGP.h"
18 #include "Foundation/vec3.h"
19 #include "Foundation/quintuple.h"
46 typedef double (
CDamping::* ScalarFieldFunction)()
const;
47 typedef pair<bool,double> (
CDamping::* CheckedScalarFieldFunction)()
const;
59 inline void setLimit(
double limit){
s_limit2=limit*limit;};
60 void setTimeStepSize(
double dt);
62 virtual bool hasTag(
int,
int)
const;
63 virtual Vec3 getPosFirst()
const {
return m_p->getPos();};
64 virtual Vec3 getPosSecond()
const {
return Vec3(0.0,0.0,0.0);};
65 virtual Vec3 getPos()
const {
return m_p->getPos();};
79 static void zeroFlops(){s_flops=0;};
80 static int Flops(){
return s_flops;};
83 Vec3 getForce()
const;
86 #include "Model/Damping.hpp"