# Gear geometry, constraints, and creation

9 views (last 30 days)
A on 29 Nov 2021
Commented: A on 7 Dec 2021
I have a few questions about gears.
Here are some questions from the following sites.
1．Does the difference in geometry make any difference in the calculation of torque, friction, etc.?
2．Is it possible to reproduce a rack and pinion mechanism like the one in the image? I want the pinion gear to spin without any constraint from the rack when there is no gear.
3．How can I create an accurate gear using MATLAB files and Simulink blocks?
4．How can I reproduce realistic gears with gear friction, inertia, etc.?

Steve Miller on 29 Nov 2021
Edited: Steve Miller on 29 Nov 2021
1. Does the difference in geometry make any difference in the calculation of torque, friction, etc.?
The transmitted force and torque depends on the gear ratio between the pinion and rack degrees of freedom and the mass/inertia of the two parts. If you attach a Rack and Pinion Gear Constraint between properly constrained rack and pinion parts, the geometry only affects the torque/force if the mass and inertia calculations are based on the geometry.
2. Is it possible to reproduce a rack and pinion mechanism like the one in the image? I want the pinion gear to spin without any constraint from the rack when there is no gear.
Yes - simply omit the Rack and Pinion Constraint
3. How can I create an accurate gear using MATLAB files and Simulink blocks?
If you are speaking of the geometry, you can import the parts from CAD or use MATLAB to define extrusions for the parts. See the Simscape Multibody Parts Library for examples.
4. How can I reproduce realistic gears with gear friction, inertia, etc.?
Inertia effects are included automatically. The Rack and Pinion Constraint only implements the constraint between the gear angle and the rack displacement; you would need to add the friction effects yourself, either by adding damping to the joints defining the pinion and rack degrees of freedom or by using the External Force and Torque block.
--Steve
A on 7 Dec 2021
I didn't understand the dummy connection very well. Sorry about that.
So I made a simple rack and pinion.
Within the red block of the pinion, I want to remove the constraint so that the rack can move upward by the spring.
I would appreciate it if you could fix it.

R2021a

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!