PlanarWorldIn3D

Planar world coordinate system + gravity field + default animation definition

    PlanarWorldIn3D

Library

PlanarMechanics

Description

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

  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

PlanarWorldIn3D_0

NameLabelDescriptionData TypeValid Values

mo_inheritGravityFromMultiBody

inheritGravityFromMultiBody

=true if gravity vector shall be inherited from 3D world model

Scalar

true
false

mo_constantGravity

constantGravity

Constant gravity acceleration vector resolved in world frame

Vector of size 2

mo_connectToMultiBody

connectToMultiBody

= true when visualization of the planar world shall be connected to a 3D multibody system

Number

0
1

mo_enableAnimation

enableAnimation

= true, if animation of all components is enabled

Scalar

true
false

mo_animateWorld

animateWorld

= true, if world coordinate system shall be visualized

Scalar

true
false

mo_animateGravity

animateGravity

= true, if gravity field shall be visualized (acceleration vector or field center)

Scalar

true
false

mo_label1

label1

Label of horizontal axis in icon

String

mo_label2

label2

Label of vertical axis in icon

String

mo_ndim

ndim

Scalar

mo_ndim2

ndim2

Scalar

mo_scaledLabel

scaledLabel

Scalar

mo_labelStart

labelStart

Scalar

PlanarWorldIn3D_1

NameLabelDescriptionData TypeValid Values

mo_axisLength

axisLength

Length of world axes arrows

Scalar

mo_axisDiameter

axisDiameter

Diameter of world axes arrows

Scalar

mo_axisShowLabels

axisShowLabels

= true, if labels shall be shown

Scalar

true
false

mo_axisColor_x

axisColor_x

Color of x-arrow

Vector of size 3

mo_axisColor_y

axisColor_y

Color of y-arrow

Vector of size 3

mo_axisColor_z

axisColor_z

Color of z-arrow

Vector of size 3

mo_gravityArrowTail

gravityArrowTail

Position vector from origin of world frame to arrow tail, resolved in world frame

Vector of size 2

mo_gravityArrowLength

gravityArrowLength

Length of gravity arrow

Scalar

mo_gravityArrowDiameter

gravityArrowDiameter

Diameter of gravity arrow

Scalar

mo_gravityArrowColor

gravityArrowColor

Color of gravity arrow

Vector of size 3

PlanarWorldIn3D_2

NameLabelDescriptionData TypeValid Values

mo_defaultZPosition

defaultZPosition

Default for z positions of all the elements

Scalar

mo_nominalLength

nominalLength

"Nominal" length of PlanarMechanics

Scalar

mo_defaultJointLength

defaultJointLength

Default for the fixed length of a shape representing a joint

Scalar

mo_defaultJointWidth

defaultJointWidth

Default for the fixed width of a shape representing a joint

Scalar

mo_defaultBodyDiameter

defaultBodyDiameter

Default for diameter of sphere representing the center of mass of a body

Scalar

mo_defaultWidthFraction

defaultWidthFraction

Default for shape width as a fraction of shape length (e.g., for Parts.FixedTranslation)

Scalar

mo_defaultArrowDiameter

defaultArrowDiameter

Default for arrow diameter (e.g., of forces, torques, sensors)

Scalar

mo_defaultForceLength

defaultForceLength

Default for the fixed length of a shape representing a force (e.g., damper)

Scalar

mo_defaultForceWidth

defaultForceWidth

Default for the fixed width of a shape represening a force (e.g., spring, bushing)

Scalar

mo_defaultFrameDiameterFraction

defaultFrameDiameterFraction

Default for arrow diameter of a coordinate system as a fraction of axis length

Scalar

mo_defaultSpecularCoefficient

defaultSpecularCoefficient

Default reflection of ambient light (= 0: light is completely absorbed)

Scalar

mo_defaultN_to_m

defaultN_to_m

Default scaling of force arrows (length = force/defaultN_to_m)

Scalar

mo_defaultNm_to_m

defaultNm_to_m

Default scaling of torque arrows (length = torque/defaultNm_to_m)

Scalar

PlanarWorldIn3D_3

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

'r_0'
'R'
'g'
'gz'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

Port 1

implicit

input

mo_connectToMultiBody

See Also