chrono::ChLinkTSDA::ForceFunctor Class Referenceabstract


Class to be used as a callback interface for calculating the general spring-damper force.

#include <ChLinkTSDA.h>

Inheritance diagram for chrono::ChLinkTSDA::ForceFunctor:

Public Member Functions

virtual double evaluate (double time, double rest_length, double length, double vel, const ChLinkTSDA &link)=0
 Calculate and return the general spring-damper force at the specified configuration. More...

Member Function Documentation

◆ evaluate()

virtual double chrono::ChLinkTSDA::ForceFunctor::evaluate ( double  time,
double  rest_length,
double  length,
double  vel,
const ChLinkTSDA link 
pure virtual

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().

timecurrent time
rest_lengthundeformed length
lengthcurrent length
velcurrent velocity (positive when extending)
linkassociated TSDA link

Implemented in chrono::vehicle::DegressiveDamperForce, chrono::vehicle::LinearSpringBistopForce, chrono::vehicle::MapSpringBistopForce, chrono::vehicle::MapSpringDamperForce, chrono::vehicle::MapDamperForce, chrono::vehicle::MapSpringForce, chrono::vehicle::LinearSpringDamperForce, chrono::vehicle::LinearDamperForce, chrono::vehicle::LinearSpringForce, chrono::vehicle::fmtv::MTV_ShockForceRear, and chrono::vehicle::fmtv::MTV_SpringForceRear.

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