19#ifndef _ISOTROPIC_ROTATIONAL_SPRING_DAMPER_H_
20#define _ISOTROPIC_ROTATIONAL_SPRING_DAMPER_H_
22#include "mbsim/links/fixed_frame_link.h"
23#include "mbsim/functions/function.h"
46 void updateGeneralizedPositions();
47 void updateGeneralizedVelocities();
48 void updateForceDirections();
56 void setElasticMomentFunction(
Function<
double(
double)> *func_) {
58 funcE->setParent(
this);
59 funcE->
setName(
"ElasticMoment");
62 void setDissipativeMomentFunction(Function<
double(
double)> *func_) {
64 funcD->setParent(
this);
65 funcD->
setName(
"DissipativeMoment");
68 void initializeUsingXML(xercesc::DOMElement *element);
71 Function<double(
double)> *funcE;
72 Function<double(
double)> *funcD;
InitStage
The stages of the initialization.
Definition: element.h:62
std::string name
name of element
Definition: element.h:260
void setName(const std::string &str)
Definition: element.h:115
frame link
Definition: fixed_frame_link.h:30
Definition: function.h:53
Isotropic rotational spring damper. This class connects two frames and applies a torque which depends...
Definition: isotropic_rotational_spring_damper.h:33
~IsotropicRotationalSpringDamper()
destructor
Definition: isotropic_rotational_spring_damper.cc:38
void init(InitStage stage, const InitConfigSet &config)
plots time series header
Definition: isotropic_rotational_spring_damper.cc:81
bool isActive() const
Definition: isotropic_rotational_spring_damper.h:51
bool gActiveChanged()
Definition: isotropic_rotational_spring_damper.h:52
IsotropicRotationalSpringDamper(const std::string &name="")
constructor
Definition: isotropic_rotational_spring_damper.cc:34
bool isSingleValued() const
asks the link if it contains single valued force laws that contribute to the right-hand side vector h
Definition: isotropic_rotational_spring_damper.h:53
namespace MBSim
Definition: bilateral_constraint.cc:30