Skip to main content

A command-line gear generator

Project description

geargen

geargen is a command-line-based, CAD-independent generator for gears.

Features

  • Spur gears
  • Helical and herringbone gears
  • Internal gears
  • Bevel gears with arbitrary shaft angle

Usage

All parameters are specified by command line options. Distances are specified in millimeters and angles are specified in degrees.

Note: it only generates the essential part of a gear. Additional parts, such as the shaft bore or the hub, has to be added afterwards using CAD programs.

Spur gear

Spur gear with module 2, 16 teeth, and 10 mm width:

geargen -m 2 -n 16 -w 10 -o spur.step
  • -m option specifies the value of module.
  • -n specifies number of teeth.
  • -w specifies gear width.
  • -o specifies the name of a STEP file to be written.

Herringbone gear

Herringbone gear with helix angle of 30 degrees, module 1, 32 teeth, 10 mm width:

geargen -t herringbone -ha 30 -m 1 -n 32 -w 10 -o herringbone.step
  • -t option changes gear type. Also helical gears can be generated with -t helical.
  • -ha specifies helix angle (default 20 deg).

Internal gear

Internal spur gear with module 1, 50 teeth, 10 mm width, and outer diameter of 60 mm:

geargen -t internal -m 1 -n 50 -w 10 -od 60 -o internal.step
  • -t internal means internal spur gear. -t internal_helical and -t internal_herringbone are also supported.
  • -od specifies outer diameter.

Bevel gear

Bevel gear with module 1, 20 teeth, and 10 mm facewidth, meshes with a 40-teeth gear at 90 degrees:

geargen -t bevel -m 1 -n 20 -w 10 -nc 40 -sa 90 -o bevel.step
  • -nc option specifies number of teeth of the counterpart.
  • -sa specifies shaft angle (default 90 deg).

TODO

  • Profile shifting
  • Timing belt profile (GT2)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geargen-0.0.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geargen-0.0.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file geargen-0.0.1.tar.gz.

File metadata

  • Download URL: geargen-0.0.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for geargen-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cc4c481c293fc40f205d319602482654faf632e0a9f9e19ad98553a080a69607
MD5 7a972c23cfe29d778bd23c50c7e907dc
BLAKE2b-256 91e9f51723c87f79c858681cd8e01614b243518e3fdf2ebbbf99b0a825af084d

See more details on using hashes here.

File details

Details for the file geargen-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: geargen-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for geargen-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a711760c37ba81b75e2b0e0f9a9b39608898b3a072baaa5dd1ecce3465a00bd0
MD5 51a86fa24ce00ce08d015fd6c58274af
BLAKE2b-256 46fde5cd0701cf05f607c1e7b62c2822d9bd1adec3ceb8855d0aa8852e95bcb8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page