modelInitializeFlange
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Information
This component is used to optionally initialize the angle, speed, and/or angular acceleration of the flange to which this component is connected. Via parameters use_phi_start, use_w_start, use_a_start the corresponding input signals phi_start, w_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_phi_start = true", then flange.phi is initialized with the value of the input signal "phi_start" at the start time.
Additionally, it is optionally possible to define the "StateSelect" attribute of the flange angle 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_phi_start | true | = true, if initial angle is defined by input phi_start, otherwise not initialized |
| Boolean | use_w_start | true | = true, if initial speed is defined by input w_start, otherwise not initialized |
| Boolean | use_a_start | true | = true, if initial angular 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 | phi_start | Initial angle of flange | |
| Modelica.Blocks.Interfaces.RealInput | w_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.Angle | phi_flange | flange.phi | Flange angle |
| SI.AngularVelocity | w_flange | der(phi_flange) | = der(phi_flange) |
Contents
| Name | Description |
|---|---|
| Set phi_start | |
| Set w_start | |
| Set a_start | |
| Set flange.tau to zero |