WOLFRAM SYSTEM MODELER

DoubleArrow

Visualizing a double arrow with variable size

Wolfram Language

In[1]:=
SystemModel["Modelica.Mechanics.MultiBody.Visualizers.Advanced.DoubleArrow"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Model DoubleArrow defines a double arrow that is dynamically visualized at the defined location (see variables below). Nonetheless, visualizing physical vectors by means of Vector can be better option in many cases.

model Visualizers.Advanced.DoubleArrow

The dialog variables R, r, r_tail, r_head, color, specularCoefficient, and headAtOrigin are declared as (time varying) input variables. If the default equation is not appropriate, a corresponding modifier equation has to be provided in the model where an Arrow instance is used, e.g., in the form

Visualizers.Advanced.DoubleArrow doubleArrow(r_head = {sin(time),cos(time},0})

Variable color is an Integer vector with 3 elements, {r, g, b}, and specifies the color of the shape. {r, g, b} are the "red", "green" and "blue" color parts. Note, r, g and b are given in the range 0 … 255. The predefined type MultiBody.Types.Color contains a menu definition of the colors used in the MultiBody library together with a color editor.

Parameters (1)

quantity

Value: Types.VectorQuantity.Torque

Type: VectorQuantity

Description: Kind of physical quantity represented by the vector

Inputs (7)

R

Default Value: Frames.nullRotation()

Type: Orientation

Description: Orientation object to rotate the world frame into the arrow frame

r

Default Value: {0, 0, 0}

Type: Position[3] (m)

Description: Position vector from origin of world frame to origin of arrow frame, resolved in world frame

r_tail

Default Value: {0, 0, 0}

Type: Position[3] (m)

Description: Position vector from origin of arrow frame to double arrow tail, resolved in arrow frame

r_head

Default Value: {0, 0, 0}

Type: Real[3]

Description: Vector from double arrow tail to the head of the double arrow, resolved in arrow frame

color

Default Value: Modelica.Mechanics.MultiBody.Types.Defaults.ArrowColor

Type: Color

Description: Color of double arrow

specularCoefficient

Default Value: world.defaultSpecularCoefficient

Type: SpecularCoefficient

Description: Material property describing the reflecting of ambient light (= 0 means, that light is completely absorbed)

headAtOrigin

Default Value: true

Type: Boolean

Description: = true, if the vector is pointing towards the origin of vector frame

Components (3)

R

Type: Orientation

Description: Orientation object to rotate the world frame into the arrow frame

world

Type: World

Description: World coordinate system + gravity field + default animation definition

arrowLine

Type: Vector

Description: Visualizing a vector quantity (force, torque, etc.)

Used in Components (6)

WorldTorque

Modelica.Mechanics.MultiBody.Forces

External torque acting at frame_b, defined by 3 input signals and resolved in frame world, frame_b or frame_resolve

WorldForceAndTorque

Modelica.Mechanics.MultiBody.Forces

External force and torque acting at frame_b, defined by 3+3 input signals and resolved in frame world, frame_b or in frame_resolve

Torque

Modelica.Mechanics.MultiBody.Forces

Torque acting between two frames, defined by 3 input signals and resolved in frame world, frame_a, frame_b or frame_resolve

ForceAndTorque

Modelica.Mechanics.MultiBody.Forces

Force and torque acting between two frames, defined by 3+3 input signals and resolved in frame world, frame_a, frame_b or frame_resolve

CutTorque

Modelica.Mechanics.MultiBody.Sensors

Measure cut torque vector

CutForceAndTorque

Modelica.Mechanics.MultiBody.Sensors

Measure cut force and cut torque vector