modelSignalArrow
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]):
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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | animation | true | = true, if animation shall be enabled |
| if animation = true | |||
| Types.VectorQuantity | quantity | Types.VectorQuantity.RelativePosition | Kind of physical quantity represented by the vector |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Frame_a | frame_a (from PartialVisualizer) | Coordinate system in which visualization data is resolved | |
| Modelica.Blocks.Interfaces.RealInput[3] | r_head | Vector resolved in frame_a |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Position[3] | r_tail | {0, 0, 0} | Vector from frame_a to arrow tail, resolved in frame_a |
| Types.Color | color | {0, 0, 255} | Color of arrow |
| Types.SpecularCoefficient | specularCoefficient | world.defaultSpecularCoefficient | Reflection of ambient light (= 0: light is completely absorbed) |
| Boolean | headAtOrigin | false | = true, if the vector is pointing towards the origin of vector frame |