Spherical

On this page

A spherical joint is a ball joint: it lets a frame take any orientation relative to another, with three rotational degrees of freedom.

A spherical joint: a frame that can take any orientation relative to the reference frame

Parameters

Units are shown in SI (m, kg, s, N, rad). MOMDYN does not enforce units, so any consistent set works, but angles are always in radians.

NameTypeDefaultUnitsDescription
namestrNone—Name given to the joint, default is uppercase characters in alphabetical order (A, B, C, ...)
ref_point_keystr'origin'—Start point from which the vector component of the joint is defined
ref_frame_keystr'inertial'—Reference frame in which the translational and rotational displacement components are defined
is_formstr'degree of freedom'—'degree of freedom' makes the value a time-varying generalized coordinate; 'constant' fixes it at the given value.
rotation_sequencestr'ZYX'—'ZYX', 'XYZ', 'ZXZ', 'ZYZ', 'XYX', or 'XZX', represents the Euler angle sequence used for defining equivalent initial quaternion states
use_quaternionboolTrue—TODO
initial_r0numeric0radInitial value for the 0th rotation angle in the Euler sequence
initial_r1numeric0radInitial value for the 1st rotation angle in the Euler sequence
initial_r2numeric0radInitial value for the 2nd rotation angle in the Euler sequence
rate_r0numeric0rad/sInitial value for angular rotation rate about the x-axis of the created frame
rate_r1numeric0rad/sInitial value for angular rotation rate about the y-axis of the created frame
rate_r2numeric0rad/sInitial value for angular rotation rate about the z-axis of the created frame
kr0numeric0N·m/radStiffness corresponding to the 0th rotation angle
kr1numeric0N·m/radStiffness corresponding to the 1st rotation angle
kr2numeric0N·m/radStiffness corresponding to the 2nd rotation angle
cr0numeric0N·m·s/radDamping corresponding to the angular rate of the 0th rotation angle
cr1numeric0N·m·s/radDamping corresponding to the angular rate of the 1st rotation angle
cr2numeric0N·m·s/radDamping corresponding to the angular rate of the 2nd rotation angle
equilibrium_r0numeric0radEquilibrium corresponding to the 0th rotation angle
equilibrium_r1numeric0radEquilibrium corresponding to the 1st rotation angle
equilibrium_r2numeric0radEquilibrium corresponding to the 2nd rotation angle

Equations

Orientation is tracked with a unit quaternion, which avoids the singularities of Euler angles:

q02+q12+q22+q32=1q_0^2 + q_1^2 + q_2^2 + q_3^2 = 1

Sign conventions & notes

  • is_form is 'degree of freedom' (the value is a time-varying coordinate that the simulation solves for) or 'constant' (the value is fixed).

  • initial_r0, initial_r1 and initial_r2 give the starting orientation as an equivalent Euler angle sequence (rotation_sequence), which MOMDYN converts to the initial quaternion.

  • The rate_r* values are the initial angular velocity components about the axes of the created frame.

Search the docs