modelFixedArrow

Visualizing an arrow with dynamically varying size in frame_a

Extends from Modelica.Mechanics.MultiBody.Interfaces.PartialVisualizer (Base model for visualizers (has a frame_a on the left side + outer world + assert to guarantee that the component is connected)).

Information

Model FixedArrow defines an arrow that is shown at the location of its frame_a.
 

model Visualizers.FixedArrow

The direction of the arrow specified with vector n is with respect to frame_a, i.e., the local frame to which the arrow component is attached. The direction, length and color of the arrow can vary dynamically by providing appropriate expressions in the input fields of the parameter menu.

The quantity parameter defines what the vector represents, allowing tools to scale e.g. forces and torques differently in a consistent way. For the default value RelativePosition the obvious scaling is 1 and the relative position is shown as is.

Parameters

TypeNameDefaultDescription
Booleananimationtrue= true, if animation shall be enabled
if animation = true
Types.VectorQuantityquantityTypes.VectorQuantity.RelativePositionKind of physical quantity represented by the vector

Connectors

TypeNameDefaultDescription
Interfaces.Frame_aframe_a (from PartialVisualizer)Coordinate system in which visualization data is resolved

Components

TypeNameDefaultDescription
SI.Position[3]r_tail{0, 0, 0}Vector from frame_a to arrow tail, resolved in frame_a
Types.Axisn{1, 0, 0}Vector in arrow direction, resolved in frame_a
SI.Lengthlength0.1Length of complete arrow
Types.Colorcolor{0, 0, 255}Color of arrow
Types.SpecularCoefficientspecularCoefficientworld.defaultSpecularCoefficientReflection of ambient light (= 0: light is completely absorbed)
BooleanheadAtOriginfalse= true, if the vector is pointing towards the origin of vector frame