19#ifndef _GENERALIZED_FORCE_H_
20#define _GENERALIZED_FORCE_H_
22#include "mbsim/links/dual_rigid_body_link.h"
23#include "mbsim/functions/function.h"
34 void updateGeneralizedForces()
override;
36 bool isActive()
const override {
return true; }
39 void init(
InitStage stage,
const InitConfigSet &config)
override;
44 func->setParent(
this);
45 func->
setName(
"GeneralizedFoce");
48 void initializeUsingXML(xercesc::DOMElement *element)
override;
Definition: dual_rigid_body_link.h:27
InitStage
The stages of the initialization.
Definition: element.h:63
std::string name
name of element
Definition: element.h:263
void setName(const std::string &str)
Definition: element.h:116
Definition: function.h:53
Definition: generalized_force.h:27
void init(InitStage stage, const InitConfigSet &config) override
plots time series header
Definition: generalized_force.cc:42
bool isActive() const override
Definition: generalized_force.h:36
void setGeneralizedForceFunction(Function< double(double)> *func_)
Set the function for the generalized force.
Definition: generalized_force.h:42
bool gActiveChanged() override
Definition: generalized_force.h:37
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_force.h:38
namespace MBSim
Definition: bilateral_constraint.cc:30