MyBenchLab Documentation Open editor

Rack

Component kind rack (category mech, DSL name rack, API v1)

Straight toothed bar. Engages a spur gear (the pinion) via mech.rackPinion; the pair converts rotation into linear translation along the rack local X axis.

Parameters

Parameters schema

ParameterTypeDefaultConstraints
moduleNumber2
lengthNumber300
widthNumber10
heightNumber10
pressureAngleNumber20

Ports

PortTypeDescription
motionlinearLinear port along the local X axis. Accumulates position as the rack translates.

Kinematics

Rack-pinion rule: velocity_rack = -omega_pinion × pinion.pitchRadius. Sign flips so a counter-clockwise pinion pushes the rack in the +X direction of its local frame by convention.

Example

rack "R1" {
  module: 2
  length: 300
}

engine apiVersion · 1

Want to see this component in 3D with live parameter controls? Open the interactive preview.