chrono::ChLinkRSDA::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 <ChLinkRSDA.h>

Inheritance diagram for chrono::ChLinkRSDA::TorqueFunctor:

Public Member Functions

virtual double evaluate (double time, double rest_angle, double angle, double vel, const ChLinkRSDA &link)=0
 Calculate and return the general spring-damper torque at the specified configuration. More...
 
virtual rapidjson::Value exportJSON (rapidjson::Document::AllocatorType &allocator)
 Optional reporting function to generate a JSON value with functor information.
 

Member Function Documentation

◆ evaluate()

virtual double chrono::ChLinkRSDA::TorqueFunctor::evaluate ( double  time,
double  rest_angle,
double  angle,
double  vel,
const ChLinkRSDA link 
)
pure virtual

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

Parameters
timecurrent time
rest_angleundeformed angle
anglerelative angle of rotation
velrelative angular speed
linkassociated RSDA link

Implemented in chrono::vehicle::NonlinearSpringDamperTorque, chrono::vehicle::LinearSpringDamperTorque, chrono::vehicle::NonlinearDamperTorque, chrono::vehicle::LinearDamperTorque, chrono::vehicle::NonlinearSpringTorque, chrono::vehicle::LinearSpringTorque, and chrono::vehicle::ChTrackAssemblySegmented::TrackBendingFunctor.


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