chrono::vehicle::MapSpringTorque Class Reference

Description

Utility class for specifying a map rotational spring torque.

#include <ChSubsysDefs.h>

Inheritance diagram for chrono::vehicle::MapSpringTorque:
Collaboration diagram for chrono::vehicle::MapSpringTorque:

Public Member Functions

 MapSpringTorque (const std::vector< std::pair< double, double >> &data, double rest_angle=0)
 
void add_point (double x, double y)
 
virtual double operator() (double time, double angle, double vel, ChLinkRotSpringCB *link) override
 Calculate and return the general spring-damper torque at the specified configuration. More...
 

Member Function Documentation

◆ operator()()

virtual double chrono::vehicle::MapSpringTorque::operator() ( double  time,
double  angle,
double  vel,
ChLinkRotSpringCB link 
)
inlineoverridevirtual

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

Implements chrono::ChLinkRotSpringCB::TorqueFunctor.


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