Spherical

Spherical joint (3 constraints and no potential states, or 3 degrees-of-freedom and 3 states)

    Spherical

Library

Modelica/Mechanics/MultiBody/Joints

Description

Joint with 3 constraints that define that the origin of frame_a and the origin of frame_b coincide. By default this joint defines only the 3 constraints without any potential states. If parameter enforceStates is set to true in the "Advanced" menu, three states are introduced. Depending on parameter useQuaternions these are either quaternions and the relative angular velocity or 3 angles and the angle derivatives. In the latter case the orientation of frame_b is computed by rotating frame_a along the axes defined in parameter vector "sequence_angleStates" (default = {1,2,3}, i.e., the Cardan angle sequence) around the angles used as states. For example, the default is to rotate the x-axis of frame_a around angles[1], the new y-axis around angles[2] and the new z-axis around angles[3], arriving at frame_b. If angles are used as states there is the slight disadvantage that a singular configuration is present leading to a division by zero.

If this joint is used in a chain structure, a Modelica translator has to select orientation coordinates of a body as states, if the default setting is used. It is usually better to use relative coordinates in the spherical joint as states, and therefore in this situation parameter enforceStates might be set to true.

If this joint is used in a loop structure, the default setting results in a cut-joint that breaks the loop in independent kinematic pieces, hold together by the constraints of this joint. As a result, a Modelica translator will first try to select 3 generalized coordinates in the joints of the remaining parts of the loop and their first derivative as states and if this is not possible, e.g., because there are only spherical joints in the loop, will select coordinates from a body of the loop as states.

In the following figure the animation of a spherical joint is shown. The light blue coordinate system is frame_a and the dark blue coordinate system is frame_b of the joint. (here: angles_start = {45, 45, 45}o).

Parameters

Spherical_0

NameLabelDescriptionData TypeValid Values

mo_animation

animation

= true, if animation shall be enabled (show sphere)

Scalar

true
false

mo_sphereDiameter

sphereDiameter

Diameter of sphere representing the spherical joint

Scalar

mo_sphereColor

sphereColor

Color of sphere representing the spherical joint

Vector of size 3

mo_specularCoefficient

specularCoefficient

Reflection of ambient light (= 0: light is completely absorbed)

Scalar

mo_R_rel_start

R_rel_start

Orientation object from frame_a to frame_b at initial time

FromModelica('Modelica.Mechanics.MultiBody.Frames.Orientation')

mo_Q_start

Q_start

Quaternion orientation object from frame_a to frame_b at initial time

Vector of size 4

mo_phi_start

phi_start

Potential angle states at initial time

Vector of size 3

Spherical_1

NameLabelDescriptionData TypeValid Values

mo_angles_fixed

angles_fixed

= true, if angles_start are used as initial values, else as guess values

Scalar

true
false

mo_angles_start

angles_start

Initial values of angles to rotate frame_a around 'sequence_start' axes into frame_b

Vector of size 3

mo_sequence_start

sequence_start

Sequence of rotations to rotate frame_a into frame_b at initial time

Vector of size 3

mo_w_rel_a_fixed

w_rel_a_fixed

= true, if w_rel_a_start are used as initial values, else as guess values

Scalar

true
false

mo_w_rel_a_start

w_rel_a_start

Initial values of angular velocity of frame_b with respect to frame_a, resolved in frame_a

Vector of size 3

mo_z_rel_a_fixed

z_rel_a_fixed

= true, if z_rel_a_start are used as initial values, else as guess values

Scalar

true
false

mo_z_rel_a_start

z_rel_a_start

Initial values of angular acceleration z_rel_a = der(w_rel_a)

Vector of size 3

Spherical_2

NameLabelDescriptionData TypeValid Values

mo_enforceStates

enforceStates

= true, if relative variables of spherical joint shall be used as states (StateSelect.always)

Scalar

true
false

mo_useQuaternions

useQuaternions

= true, if quaternions shall be used as states otherwise use 3 angles as states (provided enforceStates=true)

Scalar

true
false

mo_sequence_angleStates

sequence_angleStates

Sequence of rotations to rotate frame_a into frame_b around the 3 angles used as states

Vector of size 3

Ports

NameTypeDescriptionIO TypeNumber

frame_a

implicit

Coordinate system a fixed to the component with one cut-force and cut-torque

input

1

frame_b

implicit

Coordinate system b fixed to the component with one cut-force and cut-torque

output

1