Mechanical Engineering (mechanical-engineering-ai999x)
Mechanical Engineering covers statics, stress and strain, beams and frames, section properties, torsion, columns, fatigue, machine elements, vibrations and structural analysis: 97 calculations in 14 topics, each with its formula, its steps and its units, and a plain reason instead of a number when an input is missing or out of range. One compiled engine, four ways to use it: the desktop app, the command line, the browser and Python. Everything runs on your own computer, offline.
Four ways to use it
| Desktop app (Windows, Linux) | Windows · Linux |
Command line mechanical-engineering (Windows, Linux) |
Windows · Linux |
| Browser (any device) | Try it on the model page |
| Python 3.10+ | pip install mechanical-engineering-ai999x: on Windows and Linux (x86-64) pip installs the same compiled engine; on other systems (macOS, ARM) it installs a pure-Python build that gives the same answers |
See it
From the Mechanical Engineering desktop app: every scene and chart is drawn from the computed answer.
Charts:
Ask in words: 15 examples
Each question below was asked on this release; the comment under it is the line it printed.
import mechanical_engineering_ai999x as mechanical_engineering
a = mechanical_engineering.ask(
"Shrink fit: delta = 0.02 mm, R = 25 mm, ro = 50 mm, E = 207 GPa"
)
print(a.outcome, a.values)
# SOLVED {'p_MPa': 62.1, 'hub_hoop_MPa': 103.5, 'shaft_hoop_MPa': -62.1}
a = mechanical_engineering.ask(
"Bending stress: M = 10 kN*m, I = 8e-6 m^4, y = 100 mm"
)
print(a.outcome, a.values)
# SOLVED {'sigma': -125000000.0, 'sigma_MPa': -125.0}
a = mechanical_engineering.ask(
"Rainflow fatigue damage: history = [0, 90, 0], Sc = 90, m = 3"
)
print(a.outcome, a.values)
# SOLVED {'damage': 5e-07, 'repeats_to_failure': 2000000.0, 'cycles': 1.0}
a = mechanical_engineering.ask(
"Bolt torque: K = 0.2, d = 12 mm, F = 25 kN"
)
print(a.outcome, a.values)
# SOLVED {'T': 60.0, 'F': 25000.0, 'F_kN': 25.0}
a = mechanical_engineering.ask(
"Moment of a force: Fx = 100 N, Fy = 200 N, x = 2 m, y = 1 m"
)
print(a.outcome, a.values)
# SOLVED {'M': 300.0, 'd': 1.3416407865}
a = mechanical_engineering.ask(
"Resultant of concurrent forces: F = [3, 4], theta = [0, 90]"
)
print(a.outcome, a.values)
# SOLVED {'R': 5.0, 'Rx': 3.0, 'Ry': 4.0, 'direction_deg': 53.1301023542}
a = mechanical_engineering.ask(
"Dunkerley critical speed: masses = [50], positions = [0.5], L = 1 "
"m, E = 200 GPa, I = 2e-7 m^4"
)
print(a.outcome, a.values)
# SOLVED {'omega_cr': 195.959179423, 'N_cr_rpm': 1871.27232296}
a = mechanical_engineering.ask(
"Two cable tensions: W = 500 N, alpha = 30 deg, beta = 45 deg"
)
print(a.outcome, a.values)
# SOLVED {'T1': 366.025403784, 'T2': 448.287736084}
a = mechanical_engineering.ask(
"ASME-elliptic safety factor: sa = 100 MPa, sm = 60 MPa, Se = 220 "
"MPa, Sy = 450 MPa"
)
print(a.outcome, a.values)
# SOLVED {'n_fatigue': 2.11105175963, 'sigma_ar_MPa': 100.900919099}
a = mechanical_engineering.ask(
"Lewis bending stress: Wt = 2.5 kN, F = 40 mm, m = 4 mm, Y = 0.322"
)
print(a.outcome, a.values)
# SOLVED {'sigma': 48524844.7205, 'sigma_MPa': 48.5248447205}
a = mechanical_engineering.ask("Transmissibility: zeta = 0, r = 2")
print(a.outcome, a.values)
# SOLVED {'TR': 0.333333333333, 'isolation_percent': 66.6666666667}
a = mechanical_engineering.ask(
"Gerber safety factor: sa = 120 MPa, sm = 80 MPa, Se = 250 MPa, "
"Sut = 700 MPa"
)
print(a.outcome, a.values)
# SOLVED {'n_fatigue': 1.97698086182, 'sigma_ar_MPa': 121.58808933}
a = mechanical_engineering.ask(
"Goodman safety factor: sa = 120 MPa, sm = 80 MPa, Se = 250 MPa, "
"Sut = 700 MPa"
)
print(a.outcome, a.values)
# SOLVED {'n_fatigue': 1.68269230769, 'sigma_ar_MPa': 135.483870968}
a = mechanical_engineering.ask(
"Soderberg safety factor: sa = 100 MPa, sm = 60 MPa, Se = 220 MPa, "
"Sy = 450 MPa"
)
print(a.outcome, a.values)
# SOLVED {'n_fatigue': 1.70103092784, 'sigma_ar_MPa': 115.384615385}
a = mechanical_engineering.ask(
"S-N fatigue strength: Sut = 700 MPa, Se = 300 MPa, f = 0.85, N = "
"1000000"
)
print(a.outcome, a.values)
# SOLVED {'Sf_MPa': 300.0}
Command line: 15 examples
Each command below was run with mechanical-engineering of this release; the lines under it are the answer it printed (the full answer goes on with the method, every input in SI units and the conditions it assumes).
$ mechanical-engineering solve cantilever_point_load "L=2 m" "P=5 kN" "E=200 GPa" "I=8e-06 m^4"
R = 5000 N
M_fixed = 10000 N*m
deflection_at_load_mm = 8.333333333
tip_deflection_mm = 8.333333333
tip_slope_deg = 0.358098622
$ mechanical-engineering solve johnson_column "Sy=250 MPa" "E=200 GPa" "L=1.5 m" "r=20 mm" ends=pinned-pinned
slenderness = 75
transition_slenderness = 125.6637061
regime = Johnson
sigma_cr_MPa = 205.4740892
$ mechanical-engineering solve brittle_failure_mohr "sA=90 MPa" "sB=-50 MPa" "Sut=210 MPa" "Suc=750 MPa"
n_max_normal = 2.333333333
n_coulomb_mohr = 2.019230769
n_modified_mohr = 2.333333333
$ mechanical-engineering solve marin_endurance_limit "Sut=690 MPa" surface=machined load=bending "d=32 mm" R=0.99
ka = 0.7977770394
kb = 0.8557967591
kc = 1
ke = 0.8138921701
Se_prime_MPa = 345
Se_MPa = 191.7070727
$ mechanical-engineering solve belt_friction_capstan "T2=200 N" mu=0.3 "theta=180 deg"
T1 = 513.266479 N
ratio = 2.566332395
friction_force = 313.266479 N
$ mechanical-engineering solve shrink_fit_pressure "delta=0.02 mm" "R=25 mm" "ro=50 mm" "E=207 GPa"
p_MPa = 62.1
hub_hoop_MPa = 103.5
shaft_hoop_MPa = -62.1
$ mechanical-engineering solve composite_section_properties "rects=[[200, 20, 0, 10], [20, 300, 0, 170]]"
A = 10000
x_bar = 0
y_bar = 106
Ix = 106573333.3
Iy = 13533333.33
Ixy = 0
$ mechanical-engineering solve force_system_resultant "F=[[0, -100, 0], [0, -200, 0], [50, 0, 0]]" "P=[[1, 0, 0], [3, 0, 0], [0, 2, 0]]"
Rx = 50 N
Ry = -300 N
Rz = 0 N
R = 304.1381265 N
MOx = 0 N*m
MOy = 0 N*m
$ mechanical-engineering solve combined_axial_and_bending_stress "b=100 mm" "h=200 mm" "N=-50 kN" "Mx=8 kN*m" "My=2 kN*m"
sigma_corners_MPa = [15.5,3.5,-20.5,-8.5]
sigma_max_MPa = 15.5
sigma_min_MPa = -20.5
sigma_axial_MPa = -2.5
$ mechanical-engineering solve bar_fixed_at_both_ends "P=60 kN" "L1=0.4 m" "A1=500 mm^2" "E1=200 GPa" "L2=0.4 m" "A2=500 mm^2" "E2=200 GPa"
RA = 30000 N
RB = 30000 N
stress1_MPa = 60
stress2_MPa = -60
displacement_mm = 0.12
$ mechanical-engineering solve beam_bending_stress "M=10 kN*m" "I=8e-06 m^4" "y=100 mm"
sigma = -125000000 Pa
sigma_MPa = -125
$ mechanical-engineering solve continuous_beam_three_moment "spans=[6, 6]" "w=[10, 10]"
support_moments_kNm = [0.0,-45.0,0.0]
reactions_kN = [22.5,75.0,22.5]
$ mechanical-engineering solve stepped_shaft_twist "T=500 N*m" "lengths=[400, 600]" "diameters=[40, 30]" "G=80 GPa"
twist_rad = 0.05710420412 rad
twist_deg = 3.271829888
tau_max_MPa = 94.31404035
$ mechanical-engineering solve shaft_whirling_speeds "masses=[50]" "positions=[0.5]" "L=1 m" "E=200 GPa" "I=2e-07 m^4"
omega = [195.959179423]
N_rpm = [1871.27232296]
$ mechanical-engineering solve cantilever_triangular_load "L=3 m" "w=6 kN/m" "E=200 GPa" "I=2e-05 m^4"
R = 9000 N
M_fixed = 9000 N*m
tip_deflection_mm = 4.05
tip_slope_deg = 0.09668662793
Guides
- Desktop app guide: the window, every calculation, scenes and charts: PDF · HTML · Markdown
- Python guide: every calculation with a Python example: PDF · HTML · Markdown
- Command-line guide: every calculation with the command and what it printed: PDF · HTML · Markdown
Every calculation, with its formula, a worked example and its figures: Mechanical Engineering on ai999x.com. Install guides for the app and the command line: https://www.ai999x.com/desktop-cli/.
Version 1.6.7 · License: Apache-2.0 · Author: Ibnul Jaif Farabi · Organization: AI999X · Contact: support@ai999x.com · Support the project
The Future Is Self-Improving.
- Downloads last month
- 301
Collections including AI999X/mechanical-engineering-ai999x
Evaluation results
- identical on every platform on Golden answers (361 documented questions, Windows + Linux Python 3.10-3.14)self-reported1.000













