chrono::vehicle::ChSimplePowertrain Class Referenceabstract

Description

Template for simplified powertrain model.

This model uses a trivial speed-torque curve, has no torque converter and no transmission box.

#include <ChSimplePowertrain.h>

Inheritance diagram for chrono::vehicle::ChSimplePowertrain:
Collaboration diagram for chrono::vehicle::ChSimplePowertrain:

Public Member Functions

virtual double GetMotorSpeed () const override
 Return the current engine speed.
 
virtual double GetMotorTorque () const override
 Return the current engine torque.
 
virtual double GetTorqueConverterSlippage () const override
 Return the value of slippage in the torque converter. More...
 
virtual double GetTorqueConverterInputTorque () const override
 Return the input torque to the torque converter. More...
 
virtual double GetTorqueConverterOutputTorque () const override
 Return the output torque from the torque converter. More...
 
virtual int GetCurrentTransmissionGear () const override
 Return the current transmission gear This simplified model does not have a transmission box. More...
 
virtual double GetOutputTorque () const override
 Return the ouput torque from the powertrain. More...
 
virtual void SetDriveMode (ChPowertrain::DriveMode mmode) override
 Use this function to set the mode of automatic transmission. More...
 
virtual void Initialize (std::shared_ptr< ChBody > chassis, std::shared_ptr< ChShaft > driveshaft) override
 Initialize the powertrain system. More...
 
virtual void Synchronize (double time, double throttle, double shaft_speed) override
 Update the state of this powertrain system at the current time. More...
 
virtual void Advance (double step) override
 Advance the state of this powertrain system by the specified time step. More...
 
- Public Member Functions inherited from chrono::vehicle::ChPowertrain
DriveMode GetDriveMode ()
 Return the current mode of the transmission.
 

Protected Member Functions

virtual double GetForwardGearRatio () const =0
 Return the forward gear ratio (single gear transmission)
 
virtual double GetReverseGearRatio () const =0
 Return the reverse gear ratio.
 
virtual double GetMaxTorque () const =0
 Return the maximum motor torque.
 
virtual double GetMaxSpeed () const =0
 Return the maximum motor speed.
 

Additional Inherited Members

- Public Types inherited from chrono::vehicle::ChPowertrain
enum  DriveMode { FORWARD, NEUTRAL, REVERSE }
 Driving modes. More...
 
- Protected Attributes inherited from chrono::vehicle::ChPowertrain
DriveMode m_drive_mode
 

Member Function Documentation

virtual void chrono::vehicle::ChSimplePowertrain::Advance ( double  step)
overridevirtual

Advance the state of this powertrain system by the specified time step.

This function does nothing for this simplified powertrain model.

Implements chrono::vehicle::ChPowertrain.

virtual int chrono::vehicle::ChSimplePowertrain::GetCurrentTransmissionGear ( ) const
overridevirtual

Return the current transmission gear This simplified model does not have a transmission box.

Implements chrono::vehicle::ChPowertrain.

virtual double chrono::vehicle::ChSimplePowertrain::GetOutputTorque ( ) const
overridevirtual

Return the ouput torque from the powertrain.

This is the torque that is passed to a vehicle system, thus providing the interface between the powertrain and vehcicle cosimulation modules. Since a ShaftsPowertrain is directly connected to the vehicle's driveline, this function returns 0.

Implements chrono::vehicle::ChPowertrain.

virtual double chrono::vehicle::ChSimplePowertrain::GetTorqueConverterInputTorque ( ) const
overridevirtual

Return the input torque to the torque converter.

This simplified model does not have a torque converter.

Implements chrono::vehicle::ChPowertrain.

virtual double chrono::vehicle::ChSimplePowertrain::GetTorqueConverterOutputTorque ( ) const
overridevirtual

Return the output torque from the torque converter.

This simplified model does not have a torque converter.

Implements chrono::vehicle::ChPowertrain.

virtual double chrono::vehicle::ChSimplePowertrain::GetTorqueConverterSlippage ( ) const
overridevirtual

Return the value of slippage in the torque converter.

This simplified model does not have a torque converter.

Implements chrono::vehicle::ChPowertrain.

void chrono::vehicle::ChSimplePowertrain::Initialize ( std::shared_ptr< ChBody chassis,
std::shared_ptr< ChShaft driveshaft 
)
overridevirtual

Initialize the powertrain system.

Parameters
[in]chassischassis o the associated vehicle
[in]driveshaftshaft connection to the vehicle driveline

Implements chrono::vehicle::ChPowertrain.

void chrono::vehicle::ChSimplePowertrain::SetDriveMode ( ChPowertrain::DriveMode  mmode)
overridevirtual

Use this function to set the mode of automatic transmission.

This simplified model does not have a transmission box.

Implements chrono::vehicle::ChPowertrain.

void chrono::vehicle::ChSimplePowertrain::Synchronize ( double  time,
double  throttle,
double  shaft_speed 
)
overridevirtual

Update the state of this powertrain system at the current time.

The powertrain system is provided the current driver throttle input, a value in the range [0,1], and the current angular speed of the transmission shaft (from the driveline).

Parameters
[in]timecurrent time
[in]throttlecurrent throttle input [0,1]
[in]shaft_speedcurrent angular speed of the transmission shaft

Implements chrono::vehicle::ChPowertrain.