19 #ifndef _GENERALIZED_SPRING_DAMPER_H_ 20 #define _GENERALIZED_SPRING_DAMPER_H_ 22 #include "mbsim/links/dual_rigid_body_link.h" 23 #include "mbsim/functions/function.h" 29 Function<double(
double,
double)> *func;
35 void updateGeneralizedForces()
override;
37 bool isActive()
const override {
return true; }
40 void init(
InitStage stage,
const InitConfigSet &config)
override;
45 func->setParent(
this);
46 func->
setName(
"GeneralizedFoce");
52 void initializeUsingXML(xercesc::DOMElement *element)
override;
void init(InitStage stage, const InitConfigSet &config) override
plots time series header
Definition: generalized_spring_damper.cc:42
void setGeneralizedForceFunction(Function< double(double, double)> *func_)
Set the function for the generalized force.
Definition: generalized_spring_damper.h:43
bool isSingleValued() const override
asks the link if it contains single valued force laws that contribute to the right-hand side vector h
Definition: generalized_spring_damper.h:39
Definition: dual_rigid_body_link.h:27
Definition: generalized_spring_damper.h:27
InitStage
The stages of the initialization.
Definition: element.h:62
bool gActiveChanged() override
Definition: generalized_spring_damper.h:38
Definition: contact_kinematics.h:32
std::string name
name of element
Definition: element.h:249
void setGeneralizedUnloadedLength(double l0_)
Set unloaded generalized length.
Definition: generalized_spring_damper.h:50
void setName(const std::string &str)
Definition: element.h:115
bool isActive() const override
Definition: generalized_spring_damper.h:37
namespace MBSim
Definition: bilateral_constraint.cc:29