chrono::vehicle::MapSpringForce Class Reference

Description

Utility class for specifying a map translational spring force.

#include <ChSubsysDefs.h>

Inheritance diagram for chrono::vehicle::MapSpringForce:
Collaboration diagram for chrono::vehicle::MapSpringForce:

Public Member Functions

 MapSpringForce (const std::vector< std::pair< double, double >> &data)
 
void add_point (double x, double y)
 
virtual double operator() (double time, double rest_length, double length, double vel, ChLinkSpringCB *link) override
 Calculate and return the general spring-damper force at the specified configuration.