modelSurface

Visualizing a moveable, parameterized surface; the surface characteristic is provided by a function

Extends from Modelica.Mechanics.MultiBody.Icons.Surface (Surface icon), Modelica.Utilities.Internal.PartialModelicaServices.Animation.PartialSurface (Interface for 3D animation of surfaces), ModelicaServices.Animation.Surface (Animation of a moveable, parameterized surface; the surface characteristic is provided by a function).

Information

Model Surface defines a moveable, parametrized surface in 3-dim. space that is used for animation. This object is specified by:

  • The surface frame (orientation object "R" and origin "r_0") in which the data is specified.
  • A set of two parameters, one in u- and one in v-direction, that defines the control points.
  • A time-varying position of each control point with respect to the surface frame.

The parameter values (u,v) are given by the ordinal numbers of the corresponding control point in u- or in v-direction, respectively. The surface is then defined by the replaceable function "surfaceCharacteristic" with the interface partialSurfaceCharacteristic that returns the x-, y-, z- coordinate of every control point in form of 3 arrays X, Y, Z, and an optional color array C, if every control point shall have a different color:

Real X[nu,nv], Y[nu,nv], Z[nu,nv], C[nu,nv,3];

An example of a parameterized surface with color coding is shown in the next figure:

Models Torus, VoluminousWheel, PipeWithScalarField, demonstrate how new visualizer objects can be constructed with the Surface model.
The direct usage of the Surface model, as well as of the Torus and the VoluminousWheel models, are demonstrated with example Examples.Elementary.Surfaces.

Parameters

TypeNameDefaultDescription
Surface properties
Integernu (from PartialSurface)2Number of points in u-Dimension
Integernv (from PartialSurface)2Number of points in v-Dimension
Material properties
Booleanwireframe (from PartialSurface)false= true: 3D model will be displayed without faces
BooleanmultiColoredSurface (from PartialSurface)false= true: Color is defined for each surface point

Components

TypeNameDefaultDescription
Frames.OrientationR (from PartialSurface)Frames.nullRotation()Orientation object to rotate the world frame into the surface frame
SI.Position[3]r_0 (from PartialSurface){0, 0, 0}Position vector from origin of world frame to origin of surface frame, resolved in world frame
Real[3]color (from PartialSurface){255, 0, 0}Color of surface
Types.SpecularCoefficientspecularCoefficient (from PartialSurface)0.7Reflection of ambient light (= 0: light is completely absorbed)
Realtransparency (from PartialSurface)0Transparency of shape: 0 (= opaque) ... 1 (= fully transparent)