MBSim

Project Page
Public Member Functions | Protected Attributes
MBSim::LinearSpringDamperForce Class Reference

function describing a linear relationship between the input relative distance / velocity and the output for a spring More...

#include <kinetic_functions.h>

Inheritance diagram for MBSim::LinearSpringDamperForce:
MBSim::Function< double(double, double)> Function

List of all members.

Public Member Functions

 LinearSpringDamperForce ()
 constructor
 LinearSpringDamperForce (double c_, double d_, double l0_)
 constructor
virtual double operator() (const double &g, const double &gd)
void initializeUsingXML (xercesc::DOMElement *element)
void setParameters (double c_, double d_, double l0_)

Protected Attributes

double c
 stiffness, damping, undeformed length
double d
double l0

Detailed Description

function describing a linear relationship between the input relative distance / velocity and the output for a spring

Author:
Martin Foerg
Date:
2009-08-31 some comments (Thorsten Schindler)
Todo:
put in function_library TODO

Constructor & Destructor Documentation

MBSim::LinearSpringDamperForce::LinearSpringDamperForce ( double  c_,
double  d_,
double  l0_ 
) [inline]

constructor

Parameters:
stiffness
damping
undeformedlength

The documentation for this class was generated from the following file: