InitializeFlange

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

    InitializeFlange

Library

Modelica/Mechanics/Rotational/Components

Description

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

InitializeFlange_0

NameLabelDescriptionData TypeValid Values

mo_use_phi_start

use_phi_start

= true, if initial angle is defined by input phi_start, otherwise not initialized

Number

0
1

mo_use_w_start

use_w_start

= true, if initial speed is defined by input w_start, otherwise not initialized

Number

0
1

mo_use_a_start

use_a_start

= true, if initial angular acceleration is defined by input a_start, otherwise not initialized

Number

0
1

mo_stateSelect

stateSelect

Priority to use flange angle and speed as states

Structure

mo_stateSelect/choice1

StateSelect.never

Number

0
1

mo_stateSelect/choice2

StateSelect.avoid

Number

0
1

mo_stateSelect/choice3

StateSelect.default

Number

0
1

mo_stateSelect/choice4

StateSelect.prefer

Number

0
1

mo_stateSelect/choice5

StateSelect.always

Number

0
1

InitializeFlange_1

NameLabelDescriptionData TypeValid Values

mo_phi_start

phi_start

phi_start

Structure

mo_phi_start/fixed

fixed

Cell of scalars

true
false

mo_phi_start/start

start

Cell of scalars

mo_w_start

w_start

w_start

Structure

mo_w_start/fixed

fixed

Cell of scalars

true
false

mo_w_start/start

start

Cell of scalars

mo_a_start

a_start

a_start

Structure

mo_a_start/fixed

fixed

Cell of scalars

true
false

mo_a_start/start

start

Cell of scalars

mo_phi_flange

phi_flange

phi_flange

Structure

mo_phi_flange/fixed

fixed

Cell of scalars

true
false

mo_phi_flange/start

start

Cell of scalars

mo_w_flange

w_flange

w_flange

Structure

mo_w_flange/fixed

fixed

Cell of scalars

true
false

mo_w_flange/start

start

Cell of scalars

Ports

NameTypeDescriptionIO TypeNumber

flange

implicit

Flange that is initialized

output

1

Port 2

implicit

Initial angle of flange

input

mo_use_phi_start

Port 3

implicit

Initial speed of flange

input

mo_use_w_start

Port 4

implicit

Initial angular acceleration of flange

input

mo_use_a_start