MATLAB: How to create torsional stiffness between two gears in SimMechanics 2.7.1 (R2008a)

anddampdamperdampinggearjointSimscape Multibodyspringstifftorsiontrain

I would like to create torsional stiffness between two gears (represented by Body blocks). I have a Gear Constraint block between the two gears. The documentation for the Gear Constraint block states that only sensors, not actuators, can be connected to it:
<http://www.mathworks.com/access/helpdesk/help/toolbox/physmod/mech/ref/gearconstraint.html>
How can I represent the torsional stiffness between the gears in this case?

Best Answer

The torsional stiffness can be applied to a joint block connected to one of the gears. For an example of representing this, refer to the attached model. This is a modified version of the 'Gear Constraint' demo model 'mech_gears', which is available in our documentation.
In this model, Gear 2 has torsional stiffness that counteracts the actuation applied to Gear 1. The torsional stiffness is represented using a "Joint Spring and Damper" block connected to the Revolute block (which is attached to the Body block 'Gear 2').
Related Question