chrono::ChLinkSpringCB::ForceFunctor Class Referenceabstract

Description

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

#include <ChLinkSpringCB.h>

Public Member Functions

virtual double operator() (double time, double rest_length, double length, double vel, ChLinkSpringCB *link)=0
 Calculate and return the general spring-damper force at the specified configuration. More...
 

Member Function Documentation

◆ operator()()

virtual double chrono::ChLinkSpringCB::ForceFunctor::operator() ( double  time,
double  rest_length,
double  length,
double  vel,
ChLinkSpringCB link 
)
pure virtual

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

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

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