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.

Protected Attributes

double m_P
 pre-tension
bool m_stops
double m_min_length
double m_max_length
ChFunctionInterp m_bump
ChFunctionInterp m_rebound

Member Function Documentation

◆ exportJSON()

rapidjson::Value chrono::vehicle::SpringForce::exportJSON ( rapidjson::Document::AllocatorType & allocator)
overridevirtual

The documentation for this class was generated from the following files:
  • D:/W/B/src/chrono-9.0.1/src/chrono_vehicle/ChSubsysDefs.h
  • D:/W/B/src/chrono-9.0.1/src/chrono_vehicle/ChSubsysDefs.cpp