RACK

Rack and Pinion

Mechanics
Run the live example Free · no sign-up · runs in your browser

The 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:

v=r⋅ratio⋅ωv = r \cdot \text{ratio} \cdot \omega

By dynamic conservation of mechanical power (Prot=PtransP_{\text{rot}} = P_{\text{trans}} in an ideal lossless mesh):

P=τ⋅ω=F⋅v  ⟹  τ=r⋅ratio⋅FP = \tau \cdot \omega = F \cdot v \implies \tau = r \cdot \text{ratio} \cdot F

Where:

  • r is the pitch radius of the pinion gear in meters (m\text{m}).
  • \text{ratio} is the mechanical transmission ratio (default: 1.0).
  • \omega is the pinion angular velocity in radians per second (rad/s\text{rad/s}).
  • v is the linear velocity of the rack in meters per second (m/s\text{m/s}).
  • \tau is the shaft reaction torque in Newton-meters (N⋅m\text{N}\cdot\text{m}).
  • F is the linear thrust force exerted along the rack in Newtons (N\text{N}).

When connected to an optional thermal port H, meshing friction losses are injected into the thermal domain:

Qdiss=(1−η)⋅∣τ⋅ω∣[W]Q_{\text{diss}} = (1 - \eta) \cdot |\tau \cdot \omega| \quad \text{[W]}

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 ω=20 rad/s\omega = 20\text{ rad/s} and r=0.05 mr = 0.05\text{ m}, the carriage traverses at linear velocity v=1.0 m/sv = 1.0\text{ m/s}.

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) -> TranslationalReference

Remarks & 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 (P=τ⋅ω=F⋅vP = \tau \cdot \omega = F \cdot v) across solver stages.
  • Thermal Port Integration: Optional port H allows friction dissipation to heat an adjacent ThermalMass.

Related Components

  • DCMotor: Electromechanical transducer
  • GearPump: Rotational to hydraulic transducer
  • Mass: 1D translational inertial element
  • RotationalDamper: Viscous rotational friction element