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"
25 #include "mbsim/utils/boost_parameters.h"
26 #include "mbsim/utils/openmbv_utils.h"
38 void updateGeneralizedForces();
43 std::string
getType()
const {
return "GeneralizedSpringDamper"; }
49 func->setParent(
this);
50 func->
setName(
"GeneralizedFoce");
56 void initializeUsingXML(xercesc::DOMElement *element);
void init(InitStage stage)
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:47
std::string getType() const
Definition: generalized_spring_damper.h:43
Definition: dual_rigid_body_link.h:30
Definition: generalized_spring_damper.h:30
virtual bool isSingleValued() const
asks the link if it contains single valued force laws that contribute to the right-hand side vector h...
Definition: generalized_spring_damper.h:42
bool isActive() const
Definition: generalized_spring_damper.h:40
InitStage
The stages of the initialization.
Definition: element.h:97
std::string name
name of element
Definition: element.h:298
void setGeneralizedUnloadedLength(double l0_)
Set unloaded generalized length.
Definition: generalized_spring_damper.h:54
void setName(const std::string &str)
Definition: element.h:163
bool gActiveChanged()
Definition: generalized_spring_damper.h:41