Rack and Pinion
MechanicsThe RackAndPinion block models an electromechanical and mechanical transducer converting rotational motion into linear translational motion and vice versa. It couples a rotating pinion gear with a straight toothed rack bar, providing bi-directional power transmission between the rotational and translational physical domains.
It features a conserving rotational shaft port (flange), a conserving translational rack terminal (rod), an optional conserving thermal dissipation port (H), and optional causal signal probes for velocity, force, speed, and torque.
Real-World Analog: Represents a steering rack mechanism, CNC linear rail pinion drive, or elevator hoist converting rotary motion into linear translation.
Mathematical Model
The kinematic transformation between rotational angular velocity and linear rack velocity is governed by the pitch radius and transmission ratio:
By dynamic conservation of mechanical power ( in an ideal lossless mesh):
Where:
ris the pitch radius of the pinion gear in meters ().\text{ratio}is the mechanical transmission ratio (default:1.0).\omegais the pinion angular velocity in radians per second ().vis the linear velocity of the rack in meters per second ().\tauis the shaft reaction torque in Newton-meters ().Fis the linear thrust force exerted along the rack in Newtons ().
When connected to an optional thermal port H, meshing friction losses are injected into the thermal domain:
Inputs & Outputs
| Direction | ID | Label | Type | Status |
|---|---|---|---|---|
| → In | flange |
Shaft | number | Required |
| → In | rod |
Rack | number | Required |
| → In | in |
ω | number | Optional |
| → In | H |
H | number | Optional |
| ← Out | velocity |
v | number | Output |
| ← Out | force |
F | number | Output |
| ← Out | speed |
ω | number | Output |
| ← Out | torque |
τ | number | Output |
| ← Out | q_diss |
Q_diss | number | Output |
Parameters
| Parameters | Label | Type | Default | Description |
|---|---|---|---|---|
pinion_radius |
Pinion Radius (r) | number | 0.05 |
Pitch radius of the pinion gear in meters |
ratio |
Gear Ratio | number | 1 |
Mechanical transmission ratio factor (v = r * ratio * omega) |
efficiency |
Mechanical Efficiency (η) | number | 1 |
Mechanical transmission efficiency (1.0 = ideal lossless, < 1.0 dissipates friction heat to port H) |
Usage Examples
Precision Linear Stage Actuator
A rotational motor drives a rack and pinion to translate an optical carriage mass against linear damping:
AngularVelocitySource(w=20.0) -> RackAndPinion(pinion_radius=0.05) -> Mass(m=5.0) -> TranslationalDamper(d=2.0)
At and , the carriage traverses at linear velocity .
Automotive Rack-and-Pinion Steering Mechanism
A driver steering torque input turns the steering pinion, translating the steering rack to deflect vehicle tie rods against restoring tire forces:
TorqueSource(tau=15.0) -> RackAndPinion(pinion_radius=0.02) -> TranslationalSpring(k=2500.0) -> TranslationalReferenceRemarks & Best Practices
- Acausal Cross-Domain Transduction: Torque and force propagate bidirectionally between the rotational and translational networks.
- Power Conservation: Ideal kinematic conversion preserves mechanical power () across solver stages.
- Thermal Port Integration: Optional port
Hallows friction dissipation to heat an adjacentThermalMass.
Related Components
- DCMotor: Electromechanical transducer
- GearPump: Rotational to hydraulic transducer
- Mass: 1D translational inertial element
- RotationalDamper: Viscous rotational friction element