chrono::vehicle::SpringForce Class Reference
Description
Base class for linear and nonlinear translational spring forces.
#include <ChSubsysDefs.h>
Inheritance diagram for chrono::vehicle::SpringForce:

Collaboration diagram for chrono::vehicle::SpringForce:

Public Member Functions | |
SpringForce (double preload) | |
void | enable_stops (double min_length, double max_length) |
void | set_stops (const std::vector< std::pair< double, double >> &data_bump, const std::vector< std::pair< double, double >> &data_rebound) |
void | set_stops (double bump_coefficient, double rebound_coefficient) |
double | evaluate_stops (double length) |
virtual rapidjson::Value | exportJSON (rapidjson::Document::AllocatorType &allocator) override |
Optional reporting function to generate a JSON value with functor information. | |
![]() | |
virtual double | evaluate (double time, double rest_length, double length, double vel, const ChLinkTSDA &link)=0 |
Calculate and return the general spring-damper force at the specified configuration. More... | |
Protected Attributes | |
double | m_P |
pre-tension | |
bool | m_stops |
double | m_min_length |
double | m_max_length |
ChFunctionInterp | m_bump |
ChFunctionInterp | m_rebound |
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_vehicle/ChSubsysDefs.h
- /builds/uwsbel/chrono/src/chrono_vehicle/ChSubsysDefs.cpp