modelRevoluteWithLengthConstraint

Revolute joint where the rotation angle is computed from a length constraint (1 degree-of-freedom, no potential state)

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

Joint where frame_b rotates around axis n which is fixed in frame_a. The two frames coincide when "phi + phi_offset = 0", where "phi_offset" is a parameter with a zero default and "phi" is the rotation angle.

This variant of the revolute joint is designed to work together with a length constraint in a kinematic loop. This means that the angle of the revolute joint, phi, is computed such that the length constraint is fulfilled.

Usually, this joint should not be used by a user of the MultiBody library. It is only provided to built-up the Modelica.Mechanics.MultiBody.Joints.Assemblies.JointXYZ joints.

In releases before version 3.0 of the Modelica Standard Library, it was possible to activate the torque projection equation (= cut-torque projected to the rotation axis must be identical to the drive torque of flange axis) via parameter axisTorqueBalance. This is no longer possible, since otherwise this model would not be "balanced" (= same number of unknowns as equations). Instead, when using this model in version 3.0 and later versions, the force in the length constraint component (Joints.SphericalSpherical or Joints.UniversalSpherical) must be calculated such that the driving torque in direction of the rotation axis is (RC shall be the name of the instance of RevoluteWithLengthConstraint):

0 = RC.axis.tau + RC.e*RC.frame_b.t;

If this equation is used, usually the force in the length constraint and the second derivative of the revolute angle will be part of a linear algebraic system of equations. In some cases it is possible to solve this system of equations locally, i.e., provide the rod force directly as function of the revolute constraint torque. In any case, this projection equation or an equivalent one has to be provided via variable "constraintResidue" in the "Advanced" menu of "Joints.SphericalSpherical" or "Joints.UniversalSpherical".

Parameters

TypeNameDefaultDescription
Booleananimationtrue= true, if animation shall be enabled
SI.PositionlengthConstraintFixed length of length constraint
Modelica.Mechanics.MultiBody.Types.Axisn{0, 0, 1}Axis of rotation resolved in frame_a (= same as in frame_b)
Modelica.Units.NonSI.Angle_degphi_offset0Relative angle offset (angle = phi + from_deg(phi_offset))
Modelica.Units.NonSI.Angle_degphi_guess0Select the configuration such that at initial time |phi - from_deg(phi_guess)| is minimal
BooleanpositiveBranchBased on phi_guess, selection of one of the two solutions of the non-linear constraint equation
Real[3]eModelica.Math.Vectors.normalizeWithAssert(n)Unit vector in direction of rotation axis, resolved in frame_a
Animation › if animation = true
SI.DistancecylinderLengthworld.defaultJointLengthLength of cylinder representing the joint axis
SI.DistancecylinderDiameterworld.defaultJointWidthDiameter of cylinder representing the joint axis

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_aaxis1-dim. rotational flange that drives the joint
Modelica.Mechanics.Rotational.Interfaces.Flange_bbearing1-dim. rotational flange of the drive bearing
Modelica.Blocks.Interfaces.RealInput[3]position_aPosition vector from frame_a to frame_a side of length constraint, resolved in frame_a of revolute joint
Modelica.Blocks.Interfaces.RealInput[3]position_bPosition vector from frame_b to frame_b side of length constraint, resolved in frame_b of revolute joint

Components

TypeNameDefaultDescription
Types.ColorcylinderColorModelica.Mechanics.MultiBody.Types.Defaults.JointColorColor of cylinder representing the joint axis
Types.SpecularCoefficientspecularCoefficientworld.defaultSpecularCoefficientReflection of ambient light (= 0: light is completely absorbed)
SI.AnglephiRotation angle of revolute joint
Frames.OrientationR_relRelative orientation object from frame_a to frame_b
SI.Angleangle= phi + from_deg(phi_offset) (relative rotation angle between frame_a and frame_b)
SI.Torquetau= axis.tau (driving torque in the axis)

Contents

NameDescription
selectBranchprotectedDetermine branch which is closest to initial angle=0