WOLFRAM SYSTEM MODELER

rectangle

Function defining the surface characteristic of a planar rectangle

Wolfram Language

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

Information

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

Function rectangle computes the X, Y and Z arrays to visualize a rectangle with model Rectangle. The image below shows two rectangles of

nu = 8,
nv = 3,
lu = 3,
lv = 2.

Syntax

(X, Y, Z, C) = rectangle(nu, nv, multiColoredSurface, lu, lv)

Inputs (5)

nu

Type: Integer

Description: Number of points in u-Dimension

nv

Type: Integer

Description: Number of points in v-Dimension

multiColoredSurface

Default Value: false

Type: Boolean

Description: = true: Color is defined for each surface point

lu

Default Value: 1

Type: Distance (m)

Description: Length in direction u

lv

Default Value: 3

Type: Distance (m)

Description: Length in direction v

Outputs (4)

X

Type: Position[nu,nv] (m)

Description: [nu,nv] positions of points in x-Direction resolved in surface frame

Y

Type: Position[nu,nv] (m)

Description: [nu,nv] positions of points in y-Direction resolved in surface frame

Z

Type: Position[nu,nv] (m)

Description: [nu,nv] positions of points in z-Direction resolved in surface frame

C

Type: Real[if multiColoredSurface then nu else 0,if multiColoredSurface then nv else 0,3]

Description: [nu,nv,3] Color array, defining the color for each surface point