modelTestTrailerDCPM

Test trailer with DCPM-drive

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

The time table track prescribes:

  • the velocity [km/h] of the bike.
  • the wind speed [m/s] (positive = in direction of movement / from behind)
  • rolling resistance coefficient
  • the inclination = tan(angle) (positive = uphill).

The bike is modeled as a prescribed speed, i.e. the biker is strong enough to reach the prescribed speed. The force between bike and trailer is intended to get compensated by controlling the electrical drive(s) with prescribed torque.

The reference force fRef describes the force demanded from the bike, normally zero. Negative means additional resistance, positive means additional support for the bike.

Parameters

TypeNameDefaultDescription
DataRecords.TrailerDatatrailerData
DataRecords.TrackDatatrackData

Components

TypeNameDefaultDescription
Components.Trailertrailer
Modelica.Blocks.Continuous.LimPIDPID
Modelica.Blocks.Sources.ConstantfRef
Modelica.Blocks.Math.Gainfrom_kmh
Modelica.Mechanics.Translational.Sources.Speedbike
Components.DcpmDrivedcpmDrive
Modelica.Blocks.Sources.CombiTimeTabletrack