chrono::ChLinkSpringCB::ForceFunctor Class Referenceabstract

Description

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

A derived class must implement the virtual operator().

#include <ChLinkSpringCB.h>

Inheritance diagram for chrono::ChLinkSpringCB::ForceFunctor:

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

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

Implemented in chrono::vehicle::MapSpringDamperActuatorForce, chrono::vehicle::MapDamperForce, chrono::vehicle::DegressiveDamperForce, chrono::vehicle::LinearSpringBistopForce, chrono::vehicle::MapSpringBistopForce, chrono::vehicle::MapSpringForce, chrono::vehicle::LinearSpringDamperActuatorForce, chrono::vehicle::LinearSpringDamperForce, chrono::vehicle::LinearDamperForce, and chrono::vehicle::LinearSpringForce.