modelTrack
Simple description of track
Extends from Icons.Track (Basic graphical layout of track).
Information
The track model defines:
- The inclination along the track, either als constant value or as user-defined table.
- The rolling resistance coefficient along the track, either als constant value or as user-defined table.
- Wind speed, either as constant value or as input signal.
The wind speed input signal can be either in m/s or km/h, but the user has to specify whether conversion has be done or not via parameter convert_from_kmh. Positive wind speed is counted in positive direction of the track.
The user-defined tables for inclination and rolling resistance coefficient use the same track definition block with the same parameter record.
Additionally, the horizontal x-position and the vertical z-position along the track are calculated, using the x z position block
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| ParameterRecords.SingleTrackData | inclinationData | Definition of inclination versus position on track | |
| ParameterRecords.SingleTrackData | rollingResistanceData | Definition of cR versus position on track | |
| Wind | |||
| Boolean | useConstantWind | true | Use constant wind, otherwise input |
| Boolean | convert_from_kmh | true | Convert input signal from km/h? |
| Modelica.Units.SI.Velocity | VWind | 0 | Constant wind speed (>0 in direction of track) |
| Initialization | |||
| Modelica.Units.SI.Position | x0 | 0 | Initial horizontal x-position of vehicle |
| Modelica.Units.SI.Position | z0 | 0 | Initial vertical z-position of vehicle |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| VehicleInterfaces.Interfaces.ControlBus | controlBus | ||
| Modelica.Blocks.Interfaces.RealInput | vWind |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Math.Gain | from_kmh | ||
| Modelica.Blocks.Sources.Constant | constantWind | ||
| Components.XzPosition | xzPosition | ||
| Components.TrackDefinition | inclinationDefinition | ||
| Components.TrackDefinition | rollingResistanceDefinition |