modelWeakSpherical

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

Extends from Modelica.Mechanics.MultiBody.Interfaces.PartialTwoFrames (Base model for components providing two frame connectors + outer world + assert to guarantee that the component is connected).

Information

Attribution Notice

This model is a modification of the Spherical block in the Mechanics.MultiBody.Joints package of the Modelica Standard Library
Copyright © 1998-2016, Modelica Association and DLR.

Block for modeling a spherical joint with a weak constraint. Most Modelica joints introduce strong constraints, i.e. the position of the two frames must be exactly equal. In reality, such strong constraints can cause binding in systems with multiple joints and cause systems to have kinematic loops. This joint overcomes these problems by using a weak formulation of the joint constraints.

Rotational springs can be connected to add torsional stiffness to the joint.

One needs to pay attention and be careful with angle definitions when used in conjunction with rotational springs because phi is determined as a function of R_rel, therefore angle branching occurs at phi = pi and -pi.

Copyright © 2018
ATA ENGINEERING, INC.
ALL RIGHTS RESERVED

Parameters

TypeNameDefaultDescription
BooleanuseAxisFlangeXfalse= true, if axis flange X is enabled
BooleanuseAxisFlangeYfalse= true, if axis flange Y is enabled
BooleanuseAxisFlangeZfalse= true, if axis flange Z is enabled
SI.TranslationalSpringConstantc_constraint1.0e7Spring constant
SI.TranslationalDampingConstantd_constraint1.0Damping constant
Booleananimationfalse= true, if animation shall be enabled (show sphere)
if animation = true
SI.DistancesphereDiameterworld.defaultJointLengthDiameter of sphere representing the spherical joint
Advanced
Types.RotationSequencesequence_angles{1, 2, 3}Sequence of rotations to rotate frame_a into frame_b around the 3 angles used as states

Connectors

TypeNameDefaultDescription
Interfaces.Frame_aframe_a (from PartialTwoFrames)Coordinate system a fixed to the component with one cut-force and cut-torque
Interfaces.Frame_bframe_b (from PartialTwoFrames)Coordinate system b fixed to the component with one cut-force and cut-torque
Modelica.Mechanics.Rotational.Interfaces.Flange_aaxisX1-dim. rotational flange that drives the joint
Modelica.Mechanics.Rotational.Interfaces.Flange_bsupportX1-dim. rotational flange of the drive support (assumed to be fixed in the world frame, NOT in the joint)
Modelica.Mechanics.Rotational.Interfaces.Flange_bsupportZ1-dim. rotational flange of the drive support (assumed to be fixed in the world frame, NOT in the joint)
Modelica.Mechanics.Rotational.Interfaces.Flange_aaxisZ1-dim. rotational flange that drives the joint
Modelica.Mechanics.Rotational.Interfaces.Flange_aaxisY1-dim. rotational flange that drives the joint
Modelica.Mechanics.Rotational.Interfaces.Flange_bsupportY1-dim. rotational flange of the drive support (assumed to be fixed in the world frame, NOT in the joint)

Components

TypeNameDefaultDescription
Types.ColorsphereColorModelica.Mechanics.MultiBody.Types.Defaults.JointColorColor of sphere representing the spherical joint
Types.SpecularCoefficientspecularCoefficientworld.defaultSpecularCoefficientReflection of ambient light (= 0: light is completely absorbed)
SI.Positionr_rel_aPosition vector from frame_a to frame_b resolved in world frame
SI.Positionv_rel_a
SI.AnglephiThree angles to rotate frame_a into frame_b
Frames.OrientationR_relRelative orientation object to rotate from frame_a to frame_b
SI.TorquetauDriving torque in direction of axis of rotation