modelTabPosSlopeTorque

Torque using table (position... slope)

Extends from Partials.TabTorque (Table data to torque).

Information

This model uses a position-slope table. It is mainly intended for test-purposes.

  Column 1 contains the (horizontal) position in units s_unit (s_unit in "m").
  Column 'colData' contains the slope dh/ds of a height profile in dimensionless units.

Both position and slope may be linearly scaled by a factor if 'scale = true' (for example using a normalised height-profile).

The torque load tau is related to a driving force f and a parameter (wheel-) radius r by

  tau = f/r
The force as a function of position s corresponds to a mass moving along a height profile with linear and quadratic friction. Flange_a and flange_b are rigidly connected.

Note: If the height h is also needed, it has to be scaled with the factor slope_scale*D.
Start integration at time = 0.

Parameters

TypeNameDefaultDescription
StringtableName (from TabTorque)""table name in file
StringfileName (from TabTorque)TableDir + ""name of file containing table
IntegercolData (from TabTorque)2column # used data
SI.Forceg_nModelica.Constants.g_n
SI.Distances_unit1unit of 'position' in tab
Reals_bd{0, 1}{first, last} position in tab
IntegerdirTrack+1forward or backward track
IntegerdirVehicle+1vehicle forward or backward driving
Booleanscalefalsescale position and slope
SI.DistanceD1scale distance to D
SI.Percentslope_scale1scale slope to slope_scale
SI.Massmass1mass
RealcFrict{0, 0}friction cst {lin, quadr} (translation) in {[N.s/m], [N.s2/m2]}
SI.Radiusr1radius wheel
RealgRatio1gear-ratio

Connectors

TypeNameDefaultDescription
Interfaces.Rotation_pflange_a (from Flange_a_b)flange side a
Interfaces.Rotation_nflange_b (from Flange_a_b)flange side b

Components

TypeNameDefaultDescription
SI.Torquetau (from TabTorque)
Modelica.Blocks.Tables.CombiTable1Dstable (from TabTorque){time t .. force f ..}
SI.Distances
SI.VelocityvVehiclevehicle horizontal velocity