WOLFRAM SYSTEMMODELER

Arrow

Visualizing an arrow with variable size; all data have to be set as modifiers (see info layer)

Wolfram Language

In[1]:=
SystemModel["PlanarMechanics.Visualizers.Internal.Arrow"]
Out[1]:=

Information

Note: This element is intended to be used in CoordinateSystem only! To visualize an arrow in your model, the best solution is usually to use the visualizer Advanced.Arrow. The only difference between this two visualizers is that the current one does not utilizes outer planarWorld, whereas the other does.

Model Arrow defines an arrow that is dynamically visualized at the defined location (see variables below).

model Visualizers.Advanced.Arrow

The variables under heading Parameters below 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.Arrow arrow(diameter = sin(time));

Variable color is a RGB color space given in the range 0 .. 255. The predefined type Types.Color contains a menu definition of the colors used in the library (will be replaced by a color editor).

Inputs (7)

R

Default Value: MB.Frames.nullRotation()

Type: Orientation

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

r

Default Value: {0, 0, 0}

Type: Position[3] (m)

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

r_tail

Default Value: {0, 0, 0}

Type: Position[3] (m)

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

r_head

Default Value: {0, 0, 0}

Type: Position[3] (m)

Description: Position vector from arrow tail to the head of the arrow, resolved in arrow frame

diameter

Default Value: 1 / 40

Type: Diameter (m)

Description: Diameter of arrow line

color

Default Value: PlanarMechanics.Types.Defaults.ArrowColor

Type: Color

Description: Color of arrow

specularCoefficient

Default Value: 0.7

Type: SpecularCoefficient

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

Components (3)

R

Type: Orientation

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

arrowLine

Type: Shape

arrowHead

Type: Shape

Used in Components (4)

PlanarWorld

PlanarMechanics

Planar world coordinate system + gravity field + default animation definition

PlanarWorldIn3D

PlanarMechanics

Planar world coordinate system + gravity field + default animation definition

Arrow

PlanarMechanics.Visualizers.Advanced

Visualizing an arrow with variable size; all data have to be set as modifiers (see info layer)

CoordinateSystem

PlanarMechanics.Visualizers.Internal

Visualizing an orthogonal coordinate system of three axes