modelPlanarWorldIn3D

Planar world coordinate system + gravity field + default animation definition

Information

Model PlanarWorld defines all possible general parameters to make parameterization of models much more convenient. It has the following functionalities.

  1. It defines the global coordinate system fixed in ground and shows the x, y, z axes in animation if wanted.
  2. It contains all default parameters for animation, e.g. axis diameter, default joint length etc, which can still be overwritten by setting parameters in these models.
  3. It provides the default gravity definition and its animation.


The planar world can optionally be coupled to a 3D-Multibody connector. This will affect visualization mainly. Beware! The physics of the planar world presume the inertial system to be non-accelerated. When connecting to an accelerated MultiBody connector the physical forces going along with this acceleration are thus neglected.

For physical coupling between 2D and 3D system use Interfaces.PlanarToMultiBody

The gravity vector can be inherited from the MultiBody world component. In this case, the vector is determined once for the origin of the planar world system and then applied to all body components (if enabled there, as default).

Parameters

TypeNameDefaultDescription
Gravity
BooleaninheritGravityFromMultiBodyfalse=true if gravity vector shall be inherited from 3D world model
SI.AccelerationconstantGravity{0, -9.81}Constant gravity acceleration vector resolved in world frame
Animation (General)
BooleanconnectToMultiBodyfalse= true when visualization of the planar world shall be connected to a 3D multibody system
BooleanenableAnimationtrue= true, if animation of all components is enabled
BooleananimateWorldtrue= true, if world coordinate system shall be visualized
BooleananimateGravitytrue= true, if gravity field shall be visualized (acceleration vector or field center)
Stringlabel1"x"Label of horizontal axis in icon
Stringlabel2"y"Label of vertical axis in icon
Animation › If animateWorld = true
SI.LengthaxisLengthnominalLength/2Length of world axes arrows
SI.DiameteraxisDiameteraxisLength/defaultFrameDiameterFractionDiameter of world axes arrows
BooleanaxisShowLabelstrue= true, if labels shall be shown
MB.Types.ColoraxisColor_xTypes.Defaults.FrameColorColor of x-arrow
MB.Types.ColoraxisColor_yaxisColor_xColor of y-arrow
MB.Types.ColoraxisColor_zaxisColor_xColor of z-arrow
Animation › If animateGravity = true
SI.Position[2]gravityArrowTail{0, 0}Position vector from origin of world frame to arrow tail, resolved in world frame
SI.LengthgravityArrowLengthaxisLength/2Length of gravity arrow
SI.DiametergravityArrowDiametergravityArrowLength/defaultWidthFractionDiameter of gravity arrow
MB.Types.ColorgravityArrowColor{0, 180, 0}Color of gravity arrow
Defaults
SI.LengthdefaultZPosition0Default for z positions of all the elements
SI.LengthnominalLength1"Nominal" length of PlanarMechanics
SI.LengthdefaultJointLengthnominalLength/10Default for the fixed length of a shape representing a joint
SI.LengthdefaultJointWidthnominalLength/10Default for the fixed width of a shape representing a joint
SI.DiameterdefaultBodyDiameternominalLength/9Default for diameter of sphere representing the center of mass of a body
RealdefaultWidthFraction20Default for shape width as a fraction of shape length (e.g., for Parts.FixedTranslation)
SI.DiameterdefaultArrowDiameternominalLength/40Default for arrow diameter (e.g., of forces, torques, sensors)
SI.LengthdefaultForceLengthnominalLength/10Default for the fixed length of a shape representing a force (e.g., damper)
SI.LengthdefaultForceWidthnominalLength/20Default for the fixed width of a shape representing a force (e.g., spring, bushing)
RealdefaultFrameDiameterFraction40Default for arrow diameter of a coordinate system as a fraction of axis length
MB.Types.SpecularCoefficientdefaultSpecularCoefficient0.7Default reflection of ambient light (= 0: light is completely absorbed)
RealdefaultN_to_m1000Default scaling of force arrows (length = force/defaultN_to_m)
RealdefaultNm_to_m1000Default scaling of torque arrows (length = torque/defaultNm_to_m)

Connectors

TypeNameDefaultDescription
MB.Interfaces.Frame_aMBFrame_a

Components

TypeNameDefaultDescription
SI.Position[3]r_0Position vector from world frame to the connector frame origin, resolved in world frame
MB.Frames.OrientationROrientation object to rotate the world frame into the connector frame
SI.AccelerationgConstant gravity acceleration vector resolved in world frame

Revisions

DLR logo Developed 2010 at the DLR Institute of System Dynamics and Control