modelSignalArrow

Visualizing an arrow with dynamically varying size in frame_a based on input signal

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 SignalArrow defines an arrow that is dynamically visualized at the location where its frame_a is attached. The vector from the tail to the head of the arrow, resolved in frame_a, is defined via the signal vector of the connector r_head (Real r_head[3]):
 

model Visualizers.SignalArrow

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.

The tail of the arrow is defined with input r_tail with respect to frame_a (vector from the origin of frame_a to the arrow tail).

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
Modelica.Blocks.Interfaces.RealInput[3]r_headVector resolved in frame_a

Components

TypeNameDefaultDescription
SI.Position[3]r_tail{0, 0, 0}Vector from frame_a to arrow tail, resolved in frame_a
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