RevoluteWithLengthConstraint

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

    RevoluteWithLengthConstraint

Library

Modelica/Mechanics/MultiBody/Joints/Internal

Description

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

RevoluteWithLengthConstraint_0

NameLabelDescriptionData TypeValid Values

mo_animation

animation

= true, if animation shall be enabled

Scalar

true
false

mo_lengthConstraint

lengthConstraint

Fixed length of length constraint

Scalar

mo_n

n

Axis of rotation resolved in frame_a (= same as in frame_b)

Vector of size 3

mo_phi_offset

phi_offset

Relative angle offset (angle = phi + from_deg(phi_offset))

Scalar

mo_phi_guess

phi_guess

Select the configuration such that at initial time |phi - from_deg(phi_guess)| is minimal

Scalar

mo_positiveBranch

positiveBranch

Based on phi_guess, selection of one of the two solutions of the non-linear constraint equation

Scalar

true
false

mo_e

e

Unit vector in direction of rotation axis, resolved in frame_a

Vector of size 3

RevoluteWithLengthConstraint_1

NameLabelDescriptionData TypeValid Values

mo_cylinderLength

cylinderLength

Length of cylinder representing the joint axis

Scalar

mo_cylinderDiameter

cylinderDiameter

Diameter of cylinder representing the joint axis

Scalar

mo_cylinderColor

cylinderColor

Color of cylinder representing the joint axis

Vector of size 3

mo_specularCoefficient

specularCoefficient

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

Scalar

RevoluteWithLengthConstraint_2

NameLabelDescriptionData TypeValid Values

mo_position_a

position_a

position_a

Structure

mo_position_a/fixed

fixed

Cell of vectors of size 3

true
false

mo_position_a/start

start

Cell of vectors of size 3

mo_position_b

position_b

position_b

Structure

mo_position_b/fixed

fixed

Cell of vectors of size 3

true
false

mo_position_b/start

start

Cell of vectors of size 3

mo_phi

phi

phi

Structure

mo_phi/fixed

fixed

Cell of scalars

true
false

mo_phi/start

start

Cell of scalars

mo_angle

angle

angle

Structure

mo_angle/fixed

fixed

Cell of scalars

true
false

mo_angle/start

start

Cell of scalars

mo_tau

tau

tau

Structure

mo_tau/fixed

fixed

Cell of scalars

true
false

mo_tau/start

start

Cell of scalars

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

axis

implicit

1-dim. rotational flange that drives the joint

input

2

bearing

implicit

1-dim. rotational flange of the drive bearing

output

2

position_a

implicit

Position vector from frame_a to frame_a side of length constraint, resolved in frame_a of revolute joint

input

3

position_b

implicit

Position vector from frame_b to frame_b side of length constraint, resolved in frame_b of revolute joint

input

4