MyBenchLab Documentation Open editor

Spur gear

Component kind spur-gear (category mech, DSL name spurGear, API v1)

Cylindrical gear with straight teeth. The canonical mechanical building block: mates with other spur gears of the same module via mech.mesh.

Parameters

Parameters schema

ParameterTypeDefaultConstraints
moduleNumber2
teethNumber20min: 4
widthNumber10
boreDiameterNumber8
pressureAngleNumber20
colorString

Ports

PortTypeDescription
axisrotationalSpin axis (rotational). Receives ω from the coupling or mesh propagation.

Kinematics

Mesh rule: ω_driven = -ω_driver · (teeth_driver / teeth_driven). Sign flips because meshed gears spin opposite ways.

Example

spurGear "G1" {
  teeth: 20
  module: 2
  at: position(0, 0, 0)
}

engine apiVersion · 1

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