24 #ifndef _MASSLESS_SPRING_DAMPER_
25 #define _MASSLESS_SPRING_DAMPER_
27 #include "mbsimControl/signal_processing_system.h"
29 namespace MBSimControl {
39 virtual std::string getType()
const {
return "MasslessSpringDamper"; }
40 void initializeUsingXML(TiXmlElement * element);
42 void calcxSize() {xSize=1; }
43 fmatvec::Vec calculateOutput() {
return x.copy(); }
45 void init(MBSim::InitStage stage);
47 void updatedx(
double t,
double dt);
48 void updatexd(
double t);
50 void plot(
double t,
double dt);
52 void setSpringStiffness(
double c_) {c=c_; }
53 void setBasicSpringForce(
double F0_) {F0=F0_; }
54 void setDampingCoefficient(
double d_) {dPos=d_; }
55 void setNegativeDampingCoefficient(
double d_) {dNeg=d_; }
56 void setFrictionForce(
double FFric_) {FFricPos=FFric_; }
57 void setNegativeFrictionForce(
double FFric_) {FFricNeg=FFric_; }
58 void setMinimumPositionValue(
double xMin_) {xMin=xMin_; }
59 void setMaximumPositionValue(
double xMax_) {xMax=xMax_; }
62 double c, F0, dPos, dNeg, FFricPos, FFricNeg, xMin, xMax;