modelWheel

Visualizing a wheel

Information

This shape provides a simple visualization of a wheel. The center of the wheel is located by position vector r. Its orientation is given by the orientation object R, whereby wheel's spin axis points in y direction of R and its middle plane is in the x-z plane of R. The wheel's rotation about its spin axis, i.e. about axis y of R, can be realized directly by the input psi.

model Visualizers.Advanced.Wheel

The dialog variables R, r, psi, radius, rRim, width, color and specularCoefficient 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 the shape instance is used.

Variable color is a RGB color space given in the range 0 .. 255. Predefined colors from Types.Defaults are used throughout the library to get a coherent visualization.

Components

TypeNameDefaultDescription
MB.Frames.OrientationRMB.Frames.nullRotation()Orientation object to rotate the world frame into the wheel frame
SI.Position[3]r{0, 0, 0}Position vector from origin of world frame to origin of wheel frame, resolved in world frame
SI.Anglepsi0Angle of wheel rotation about its spin axis
SI.Lengthradius0.3Wheel radius
SI.LengthrRim0.9*radiusRim radius
SI.Lengthwidth0.6*radiusWheel width
MB.Types.ColorcolorPlanarMechanics.Types.Defaults.WheelColorColor of shape
MB.Types.SpecularCoefficientspecularCoefficient0.7Reflection of ambient light (= 0: light is completely absorbed)
MB.Visualizers.Advanced.Shapecylinder
MB.Visualizers.Advanced.Shapetread1
MB.Visualizers.Advanced.Shapetread2
MB.Visualizers.Advanced.Shaperim
MB.Visualizers.Advanced.ShaperimSpoke1
MB.Visualizers.Advanced.ShaperimSpoke2