chrono::ChLinkRotSpringCB::TorqueFunctor Class Referenceabstract

Description

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

A derived class must implement the virtual operator().

#include <ChLinkRotSpringCB.h>

Inheritance diagram for chrono::ChLinkRotSpringCB::TorqueFunctor:

Public Member Functions

virtual double operator() (double time, double angle, double vel, ChLinkRotSpringCB *link)=0
 Calculate and return the general spring-damper torque at the specified configuration. More...
 

Member Function Documentation

◆ operator()()

virtual double chrono::ChLinkRotSpringCB::TorqueFunctor::operator() ( double  time,
double  angle,
double  vel,
ChLinkRotSpringCB link 
)
pure virtual

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

Parameters
timecurrent time
anglerelative angle of rotation
velrelative angular speed
linkback-pointer to associated link

Implemented in chrono::vehicle::MapDamperTorque, chrono::vehicle::MapSpringTorque, chrono::vehicle::LinearSpringDamperActuatorTorque, chrono::vehicle::LinearSpringDamperTorque, chrono::vehicle::LinearDamperTorque, and chrono::vehicle::LinearSpringTorque.


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