modelFixedArrow
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.
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
| 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 |
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.Axis | n | {1, 0, 0} | Vector in arrow direction, resolved in frame_a |
| SI.Length | length | 0.1 | Length of complete arrow |
| 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 |