chrono::vehicle::LinearSpringDamperActuatorForce Class Reference

Description

Utility class for specifying a linear translational spring-damper force with pre-tension.

#include <ChSubsysDefs.h>

Inheritance diagram for chrono::vehicle::LinearSpringDamperActuatorForce:
Collaboration diagram for chrono::vehicle::LinearSpringDamperActuatorForce:

Public Member Functions

 LinearSpringDamperActuatorForce (double k, double c, double f)
 
virtual double operator() (double time, double rest_length, double length, double vel, ChLinkTSDA *link) override
 Calculate and return the general spring-damper force at the specified configuration. More...
 

Member Function Documentation

◆ operator()()

virtual double chrono::vehicle::LinearSpringDamperActuatorForce::operator() ( double  time,
double  rest_length,
double  length,
double  vel,
ChLinkTSDA link 
)
inlineoverridevirtual

Calculate and return the general spring-damper force at the specified configuration.

If the link has internal ODE states, the current states can be accessed with link->GetStates().

Parameters
timecurrent time
rest_lengthundeformed length
lengthcurrent length
velcurrent velocity (positive when extending)
linkback-pointer to associated link

Implements chrono::ChLinkTSDA::ForceFunctor.


The documentation for this class was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono_vehicle/ChSubsysDefs.h