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/rThe 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
| Type | Name | Default | Description |
|---|---|---|---|
| String | tableName (from TabTorque) | "" | table name in file |
| String | fileName (from TabTorque) | TableDir + "" | name of file containing table |
| Integer | colData (from TabTorque) | 2 | column # used data |
| SI.Force | g_n | Modelica.Constants.g_n | |
| SI.Distance | s_unit | 1 | unit of 'position' in tab |
| Real | s_bd | {0, 1} | {first, last} position in tab |
| Integer | dirTrack | +1 | forward or backward track |
| Integer | dirVehicle | +1 | vehicle forward or backward driving |
| Boolean | scale | false | scale position and slope |
| SI.Distance | D | 1 | scale distance to D |
| SI.Percent | slope_scale | 1 | scale slope to slope_scale |
| SI.Mass | mass | 1 | mass |
| Real | cFrict | {0, 0} | friction cst {lin, quadr} (translation) in {[N.s/m], [N.s2/m2]} |
| SI.Radius | r | 1 | radius wheel |
| Real | gRatio | 1 | gear-ratio |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Rotation_p | flange_a (from Flange_a_b) | flange side a | |
| Interfaces.Rotation_n | flange_b (from Flange_a_b) | flange side b |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Torque | tau (from TabTorque) | ||
| Modelica.Blocks.Tables.CombiTable1Ds | table (from TabTorque) | {time t .. force f ..} | |
| SI.Distance | s | ||
| SI.Velocity | vVehicle | vehicle horizontal velocity |