chrono::ChSpringForceCallback Class Referenceabstract

Description

Base callback function for implementing a general spring-damper force A derived class must implement the virtual operator().

#include <ChLinkSpringCB.h>

Inheritance diagram for chrono::ChSpringForceCallback:

Public Member Functions

virtual double operator() (double time, double rest_length, double length, double vel)=0
 

Member Function Documentation

virtual double chrono::ChSpringForceCallback::operator() ( double  time,
double  rest_length,
double  length,
double  vel 
)
pure virtual
Parameters
timecurrent time
rest_lengthundeformed length
lengthcurrent length
velcurrent velocity (positive when extending)