19#ifndef _GENERALIZED_ELASTIC_CONNECTION_H_ 
   20#define _GENERALIZED_ELASTIC_CONNECTION_H_ 
   22#include "mbsim/links/dual_rigid_body_link.h" 
   23#include "mbsim/functions/function.h" 
   29      Function<fmatvec::VecV(fmatvec::VecV,fmatvec::VecV)> *func;
 
   34      void updateGeneralizedForces() 
override;
 
   36      bool isActive()
 const override { 
return true; }
 
   39      void init(
InitStage stage, 
const InitConfigSet &config) 
override;
 
   41      void setGeneralizedForceFunction(
Function<fmatvec::VecV(fmatvec::VecV,fmatvec::VecV)> *func_) {
 
   43        func->setParent(
this);
 
   44        func->
setName(
"GeneralizedForce");
 
   47      void initializeUsingXML(xercesc::DOMElement *element) 
override;
 
   50      std::string saved_body1, saved_body2;
 
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_elastic_connection.h:27
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_elastic_connection.h:38
bool gActiveChanged() override
Definition: generalized_elastic_connection.h:37
void init(InitStage stage, const InitConfigSet &config) override
plots time series header
Definition: generalized_elastic_connection.cc:42
bool isActive() const override
Definition: generalized_elastic_connection.h:36
namespace MBSim
Definition: bilateral_constraint.cc:30