functionrectangle
Function defining the surface characteristic of a planar rectangle
Extends from Modelica.Mechanics.MultiBody.Interfaces.partialSurfaceCharacteristic (Interface for a function returning surface characteristics).
Information
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.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nu (from partialSurfaceCharacteristic) | Number of points in u-Dimension | |
| Integer | nv (from partialSurfaceCharacteristic) | Number of points in v-Dimension | |
| Boolean | multiColoredSurface (from partialSurfaceCharacteristic) | false | = true: Color is defined for each surface point |
| SI.Distance | lu | 1 | Length in direction u |
| SI.Distance | lv | 3 | Length in direction v |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Position[nu,nv] | X (from partialSurfaceCharacteristic) | [nu,nv] positions of points in x-Direction resolved in surface frame | |
| SI.Position[nu,nv] | Y (from partialSurfaceCharacteristic) | [nu,nv] positions of points in y-Direction resolved in surface frame | |
| SI.Position[nu,nv] | Z (from partialSurfaceCharacteristic) | [nu,nv] positions of points in z-Direction resolved in surface frame | |
| Real[if multiColoredSurface then nu else 0,if multiColoredSurface then nv else 0,3] | C (from partialSurfaceCharacteristic) | [nu,nv,3] Color array, defining the color for each surface point |