TransformRelativeVector

Transform relative vector in to another frame

    TransformRelativeVector

Library

PlanarMechanics/Sensors

Description

The input vector r_in is assumed to be a relativekinematic quantity between frame_a and frame_bthat is defined to be resolved in the frame defined with parameterframe_r_in. This model resolves vector r_inin the coordinate system defined with parameter frame_r_outand returns the transformed output vector as r_out.

Parameters

TransformRelativeVector_0

NameLabelDescriptionData TypeValid Values

mo_frame_r_in

frame_r_in

Frame in which vector r_in is resolved (1: world, 2: frame_a, 3: frame_b, 4: frame_resolve)

Structure

mo_frame_r_in/choice1

Modelica.Mechanics.MultiBody.Types.ResolveInFrameAB.world

Number

0
1

mo_frame_r_in/choice2

Modelica.Mechanics.MultiBody.Types.ResolveInFrameAB.frame_a

Number

0
1

mo_frame_r_in/choice3

Modelica.Mechanics.MultiBody.Types.ResolveInFrameAB.frame_b

Number

0
1

mo_frame_r_in/choice4

Modelica.Mechanics.MultiBody.Types.ResolveInFrameAB.frame_resolve

Number

0
1

mo_frame_r_out

frame_r_out

Frame in which vector r_in shall be resolved and provided as r_out (1: world, 2: frame_a, 3: frame_b, 4: frame_resolve)

Structure

mo_frame_r_out/choice1

Modelica.Mechanics.MultiBody.Types.ResolveInFrameAB.world

Number

0
1

mo_frame_r_out/choice2

Modelica.Mechanics.MultiBody.Types.ResolveInFrameAB.frame_a

Number

0
1

mo_frame_r_out/choice3

Modelica.Mechanics.MultiBody.Types.ResolveInFrameAB.frame_b

Number

0
1

mo_frame_r_out/choice4

Modelica.Mechanics.MultiBody.Types.ResolveInFrameAB.frame_resolve

Number

0
1

TransformRelativeVector_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

frame_a

implicit

Coordinate system a

input

1

frame_b

implicit

Coordinate system b

input

2

r_in

implicit

Input vector resolved in frame defined by frame_r_in

input

3

r_out

implicit

Input vector r_in resolved in frame defined by frame_r_out

output

1

Port 5

implicit

Coordinate system in which r_in or r_out is optionally resolved

output

(mo_frame_r_in.choice4)||(mo_frame_r_out.choice4)

See Also