modelInitializeFlange

Initializes a flange with pre-defined angle, speed and angular acceleration (usually, this is reference data from a control bus)

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

TypeNameDefaultDescription
Booleanuse_phi_starttrue= true, if initial angle is defined by input phi_start, otherwise not initialized
Booleanuse_w_starttrue= true, if initial speed is defined by input w_start, otherwise not initialized
Booleanuse_a_starttrue= true, if initial angular acceleration is defined by input a_start, otherwise not initialized
StateSelectstateSelectStateSelect.defaultPriority to use flange angle and speed as states

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputphi_startInitial angle of flange
Modelica.Blocks.Interfaces.RealInputw_startInitial speed of flange
Modelica.Blocks.Interfaces.RealInputa_startInitial angular acceleration of flange
Interfaces.Flange_bflangeFlange that is initialized

Components

TypeNameDefaultDescription
SI.Anglephi_flangeflange.phiFlange angle
SI.AngularVelocityw_flangeder(phi_flange)= der(phi_flange)

Contents

NameDescription
Set_phi_startprotectedSet phi_start
Set_w_startprotectedSet w_start
Set_a_startprotectedSet a_start
Set_flange_tauprotectedSet flange.tau to zero