FixedArrow
Visualizing an arrow with dynamically varying size in frame_a
Library
Modelica/Mechanics/MultiBody/Visualizers
Description
Model FixedArrow defines an arrow that isshown at the location of its frame_a.
The direction of the arrow specified with vectorn
is with respect to frame_a, i.e., the local frame to which thearrow component is attached. The direction, length and color of the arrowcan vary dynamically by providing appropriate expressions in the inputfields of the parameter menu.
The quantity
parameter defines what the vector represents, allowingtools to scale e.g. forces and torques differently in a consistent way.For the default value RelativePosition the obvious scaling is1 and the relative position is shown as is.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_animation | animation | = true, if animation shall be enabled | Scalar | true |
mo_r_tail | r_tail | Vector from frame_a to arrow tail, resolved in frame_a | Vector of size 3 | |
mo_n | n | Vector in arrow direction, resolved in frame_a | Vector of size 3 | |
mo_length | length | Length of complete arrow | Scalar | |
mo_color | color | Color of arrow | Vector of size 3 | |
mo_specularCoefficient | specularCoefficient | Reflection of ambient light (= 0: light is completely absorbed) | Scalar | |
mo_quantity | quantity | Kind of physical quantity represented by the vector | Structure | |
mo_quantity/choice1 | Modelica.Mechanics.MultiBody.Types.VectorQuantity.Force | Number | 0 | |
mo_quantity/choice2 | Modelica.Mechanics.MultiBody.Types.VectorQuantity.Torque | Number | 0 | |
mo_quantity/choice3 | Modelica.Mechanics.MultiBody.Types.VectorQuantity.Velocity | Number | 0 | |
mo_quantity/choice4 | Modelica.Mechanics.MultiBody.Types.VectorQuantity.Acceleration | Number | 0 | |
mo_quantity/choice5 | Modelica.Mechanics.MultiBody.Types.VectorQuantity.AngularVelocity | Number | 0 | |
mo_quantity/choice6 | Modelica.Mechanics.MultiBody.Types.VectorQuantity.AngularAcceleration | Number | 0 | |
mo_quantity/choice7 | Modelica.Mechanics.MultiBody.Types.VectorQuantity.RelativePosition | Number | 0 | |
mo_headAtOrigin | headAtOrigin | = true, if the vector is pointing towards the origin of vector frame | Scalar | true |
Name | Label | Description | Data Type | Valid 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' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
frame_a | implicit | Coordinate system in which visualization data is resolved | input | 1 |