modelInitializeFlange
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Information
This component is used to optionally initialize the position, speed, and/or acceleration of the flange to which this component is connected. Via parameters use_s_start, use_v_start, use_a_start the corresponding input signals s_start, v_start, a_start are conditionally activated. If an input is activated, the corresponding flange property is initialized with the input value at start time.
For example, if "use_s_start = true", then flange.s is initialized with the value of the input signal "s_start" at the start time.
Additionally, it is optionally possible to define the "StateSelect" attribute of the flange position and the flange speed via parameter "stateSelection".
This component is especially useful when the initial values of a flange shall be set according to reference signals of a controller that are provided via a signal bus.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | use_s_start | true | = true, if initial position is defined by input s_start, otherwise not initialized |
| Boolean | use_v_start | true | = true, if initial speed is defined by input v_start, otherwise not initialized |
| Boolean | use_a_start | true | = true, if initial acceleration is defined by input a_start, otherwise not initialized |
| StateSelect | stateSelect | StateSelect.default | Priority to use flange angle and speed as states |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | s_start | Initial position of flange | |
| Modelica.Blocks.Interfaces.RealInput | v_start | Initial speed of flange | |
| Modelica.Blocks.Interfaces.RealInput | a_start | Initial angular acceleration of flange | |
| Interfaces.Flange_b | flange | Flange that is initialized |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Position | s_flange | flange.s | Flange position |
| SI.Velocity | v_flange | der(s_flange) | = der(s_flange) |
Contents
| Name | Description |
|---|---|
| Set s_start | |
| Set v_start | |
| Set a_start | |
| Set flange_f to zero |