Calculation verification
Every number MechLab shows comes from code, and code can be wrong. This page compares MechLab with sources that are not MechLab: worked examples from textbooks and course material, standard and catalogue tables, closed-form formulas, and an independent implementation written separately in Python. The page is generated from the same automated tests that run on every change, so it shows the current code.
How to read the tables
- worked example: the reference number is printed in the source and was checked against it.
- standard / catalogue table: value from a standard or a manufacturer catalogue, checked against the table.
- closed-form formula: exact textbook formula (beam tables).
- derived analytically: computed here from the source formulas by hand or with separate code; the source text was not checked line by line.
- Difference = |MechLab − reference| / |reference|. Textbook answers are rounded (for example n = 1.62), so differences of a few tenths of a percent there are rounding.
What the verification changed
- Shaft: static (yield) check. The first-cycle yield check left out the notch factors Kf and Kfs. Shigley (eq. 7-15, Example 7-1) includes them: for that example MechLab gave ny ≈ 6.7 instead of 4.48. Now the yield check and the static diameter use the notch factors; the result is on the safe side.
- Chains: mass per metre. Masses of the B-series chains now follow the iwis ISO 606 catalogue (12B was 1.25 kg/m, the catalogue gives 1.15 kg/m). This changes only the small centrifugal pull.
- Sprockets: maximum hub diameter. ISO 606 uses the inner plate depth h2 in dg = p·cot(180°/z) − 1.04·h2 − 0.76; MechLab used the pitch p. B-series chains now use h2 from the catalogue (slightly larger allowed hub).
- Keys: standard lengths. For 40 mm and 45 mm wide keys the shortest standard length is 110 and 125 mm (MechLab had 100 and 110 mm). Only the warning about non-standard lengths was affected.
- Beam: couple exactly at a hinge. The random comparison found that a couple placed exactly on an internal hinge is ambiguous (it can act on the left or the right part, with different results). MechLab applies it to the right part and now says so in a warning.
Beam Calculator
Independent implementation: 400 random cases (88 of them mechanisms, recognised by both), compared quantities: reactions, M(x), EI·y(x). Largest difference: 5.7e-6 %.
| Example | Source | Source result | MechLab | Difference |
|---|---|---|---|---|
Simply supported, uniform load: max moment q = 10 kN/m, L = 6 m | [1] Beam tables (AISC, Roark) closed-form formula | 45 kN·m | 45 kN·m | < 0.000001 % ✓ |
Simply supported, uniform load: max deflection q = 10 kN/m, L = 6 m, EI = 21 000 kN·m² | [1] Beam tables (AISC, Roark) closed-form formula | 80.35714 mm | 80.35714 mm | < 0.000001 % ✓ |
Simply supported, central point load: deflection P = 20 kN, L = 4 m | [1] Beam tables (AISC, Roark) closed-form formula | 12.69841 mm | 12.69841 mm | < 0.000001 % ✓ |
Simply supported, off-centre load: max deflection P = 20 kN, L = 4 m, b = 1 m | [2] Osiński, PKM (PWN) closed-form formula | 8.873286 mm | 8.873286 mm | < 0.000001 % ✓ |
Cantilever, end load: tip deflection P = 5 kN, L = 2 m | [1] Beam tables (AISC, Roark) closed-form formula | 6.349206 mm | 6.349206 mm | < 0.000001 % ✓ |
Cantilever, uniform load: wall moment q = 10 kN/m, L = 3 m | [1] Beam tables (AISC, Roark) closed-form formula | 45 kN·m | 45 kN·m | < 0.000001 % ✓ |
Propped cantilever, uniform load: pin reaction q = 10 kN/m, L = 5 m | [1] Beam tables (AISC, Roark) closed-form formula | 18.75 kN | 18.75 kN | < 0.000001 % ✓ |
Propped cantilever, uniform load: clamp moment q = 10 kN/m, L = 5 m | [1] Beam tables (AISC, Roark) closed-form formula | 31.25 kN·m | 31.25 kN·m | < 0.000001 % ✓ |
Propped cantilever, central load: clamp moment P = 16 kN, L = 4 m | [1] Beam tables (AISC, Roark) closed-form formula | 12 kN·m | 12 kN·m | 0 ✓ |
Fixed–fixed, uniform load: end moment q = 10 kN/m, L = 6 m | [1] Beam tables (AISC, Roark) closed-form formula | 30 kN·m | 30 kN·m | < 0.000001 % ✓ |
Fixed–fixed, uniform load: mid-span deflection q = 10 kN/m, L = 6 m | [1] Beam tables (AISC, Roark) closed-form formula | 16.07143 mm | 16.07143 mm | 0 ✓ |
Fixed–fixed, central load: deflection P = 30 kN, L = 4 m | [1] Beam tables (AISC, Roark) closed-form formula | 4.761905 mm | 4.761905 mm | 0 ✓ |
Two equal spans, uniform load: middle reaction q = 10 kN/m, two spans L = 4 m | [1] Beam tables (AISC, Roark) closed-form formula | 50 kN | 50 kN | 0 ✓ |
Two equal spans: moment over the middle support q = 10 kN/m, two spans L = 4 m | [1] Beam tables (AISC, Roark) closed-form formula | -20 kN·m | -20 kN·m | 0 ✓ |
Three equal spans, uniform load: inner reaction q = 10 kN/m, three spans L = 3 m | [1] Beam tables (AISC, Roark) closed-form formula | 33 kN | 33 kN | 0 ✓ |
Three equal spans: moment over an inner support q = 10 kN/m, three spans L = 3 m | [1] Beam tables (AISC, Roark) closed-form formula | -9 kN·m | -9 kN·m | 0 ✓ |
Overhanging beam with P = qL, q on 3L and M = ½qL²: R_A q = 10 kN/m, L = 1 m | [3] Course material worked example | 30 kN | 30 kN | < 0.000001 % ✓ |
Overhanging beam with P = qL, q on 3L and M = ½qL²: R_B q = 10 kN/m, L = 1 m | [3] Course material worked example | 10 kN | 10 kN | 0 ✓ |
Overhanging beam with P = qL, q on 3L and M = ½qL²: M over A q = 10 kN/m, L = 1 m | [3] Course material worked example | -10 kN·m | -10 kN·m | 0 ✓ |
Overhanging beam with P = qL, q on 3L and M = ½qL²: M where T = 0 (x = 3L) q = 10 kN/m, L = 1 m | [3] Course material worked example | 10 kN·m | 10 kN·m | < 0.000001 % ✓ |
Overhanging beam with P = qL, q on 3L and M = ½qL²: M just left of the couple q = 10 kN/m, L = 1 m | [3] Course material worked example | 5 kN·m | 5 kN·m | < 0.000001 % ✓ |
Overhanging beam with P = qL, q on 3L and M = ½qL²: T just right of A q = 10 kN/m, L = 1 m | [3] Course material worked example | 20 kN | 20 kN | < 0.000001 % ✓ |
Twice indeterminate beam (Clebsch): R_C q = 10 kN/m, a = 1 m | [4] Exam task derived analytically | 4 kN | 4 kN | < 0.000001 % ✓ |
Twice indeterminate beam (Clebsch): clamp moment q = 10 kN/m, a = 1 m | [4] Exam task derived analytically | 2 kN·m | 2 kN·m | < 0.000001 % ✓ |
Twice indeterminate beam (Clebsch): deflection at x = a q = 10 kN/m, a = 1 m | [4] Exam task derived analytically | -0.08333333 kN·m³ | -0.08333333 kN·m³ | < 0.000001 % ✓ |
Shaft Diameter Calculator
Independent implementation: 300 random cases, compared quantities: dFatigue, nCheck, nYield. Largest difference: < 0.000001 %.
| Example | Source | Source result | MechLab | Difference |
|---|---|---|---|---|
Shoulder in bending and torsion: endurance limit S_e d = 1.100 in, S_ut = 105 kpsi, machined, R = 0.99 | [5] Shigley, 8th ed., Ex. 7-1, p. 358 worked example | 202.0164 MPa | 201.5264 MPa | 0.24 % ✓ |
Same shoulder: fatigue safety factor, DE-Goodman M_a = 1260 lbf·in, T_m = 1100 lbf·in, K_f = 1.58, K_fs = 1.39 | [5] Shigley, 8th ed., Ex. 7-1, p. 358 worked example | 1.62 – | 1.618782 – | 0.08 % ✓ |
Same shoulder: first-cycle yield safety factor S_y = 82 kpsi | [5] Shigley, 8th ed., Ex. 7-1, eq. 7-15, 7-16, p. 358–360 worked example | 4.48 – | 4.48147 – | 0.03 % ✓ |
Twist per metre of a round shaft M_s = 500 N·m, d = 40 mm, G = 80 GPa | [2] Osiński, PKM (PWN) derived analytically | 1.424829 °/m | 1.424829 °/m | 0 ✓ |
Gear Pair Designer
Independent implementation: 300 random cases, compared quantities: d1, da1, df1, db1, center, eps, Ft, Fr, V, sig1, sig2, sigH. Largest difference: < 0.000001 %.
| Example | Source | Source result | MechLab | Difference |
|---|---|---|---|---|
Base circle diameter z₁ = 20, z₂ = 50, m = 2 mm, α = 20° | [6] ISO 6336-2 / ISO 21771 derived analytically | 37.5877 mm | 37.5877 mm | 0 ✓ |
Root diameter (ISO 53 rack, h_f = 1.25m) z₁ = 20, z₂ = 50, m = 2 mm, α = 20° | [6] ISO 6336-2 / ISO 21771 derived analytically | 35 mm | 35 mm | 0 ✓ |
Transverse contact ratio z₁ = 20, z₂ = 50, m = 2 mm, α = 20° | [6] ISO 6336-2 / ISO 21771 derived analytically | 1.655756 – | 1.655756 – | 0 ✓ |
Zone factor Z_H (spur, x = 0, α = 20°) z₁ = 20, z₂ = 50, m = 2 mm, α = 20° | [6] ISO 6336-2 / ISO 21771 standard / catalogue table | 2.495 – | 2.494573 – | 0.02 % ✓ |
Elasticity factor Z_E, steel/steel E = 210 000 MPa, ν = 0.3 | [6] ISO 6336-2 / ISO 21771 standard / catalogue table | 191.6339 √MPa | 191.6457 √MPa | 6.2e-3 % ✓ |
Lewis form factor, 17 teeth 20°, full depth | [7] Shigley, Lewis (ch. 14) standard / catalogue table | 0.303 – | 0.303 – | 0 ✓ |
Lewis bending stress with the Barth factor z₁ = 20, z₂ = 50, m = 2 mm, α = 20°, b = 20 mm, T₁ = 50 N·m, n₁ = 1450 rpm | [7] Shigley, Lewis (ch. 14) derived analytically | 290.7314 MPa | 290.7314 MPa | 0 ✓ |
Belt Drive Calculator
Independent implementation: 300 random cases, compared quantities: C, wrap, v, Ft, F1, F2, Fi, Fshaft, n2. Largest difference: < 0.000001 %.
| Example | Source | Source result | MechLab | Difference |
|---|---|---|---|---|
V-belt: centre distance for L_p = 113.8 in d = 7.4 in, D = 11 in Reference from the independent Python solver (tools/verify). Shigley’s approximate formula gives 42.4 in = 1077 mm. | [8] Shigley, ch. 17 (belts) derived analytically | 1077.226 mm | 1077.226 mm | < 0.000001 % ✓ |
V-belt: wrap on the small sheave d = 7.4 in, D = 11 in, L_p = 113.8 in | [8] Shigley, ch. 17 (belts) derived analytically | 3.056682 rad | 3.056682 rad | < 0.000001 % ✓ |
V-belt: initial tension per belt (without F_c) 10 hp, 1750 rpm, K_s = 1.3, 3 belts | [8] Shigley, ch. 17 (belts) derived analytically | 143.3526 N | 143.3526 N | < 0.000001 % ✓ |
GT2 pulley, 20 teeth: pitch diameter GT2, z = 20 | [9] Belt catalogues derived analytically | 12.7324 mm | 12.7324 mm | 0 ✓ |
Chain & Sprocket Calculator
Independent implementation: 300 random cases, compared quantities: Lexact, links, C, d1, d2, df1, daMax1, daMin1, v, Ft. Largest difference: 0.
| Example | Source | Source result | MechLab | Difference |
|---|---|---|---|---|
05B-1: minimum tensile strength F_u ISO 606 | [10] iwis catalogue, ISO 606 standard / catalogue table | 4.4 kN | 4.4 kN | 0 ✓ |
05B-1: mass per metre | [10] iwis catalogue, ISO 606 standard / catalogue table | 0.2 kg/m | 0.2 kg/m | 0 ✓ |
06B-1: minimum tensile strength F_u ISO 606 | [10] iwis catalogue, ISO 606 standard / catalogue table | 8.9 kN | 8.9 kN | 0 ✓ |
06B-1: mass per metre | [10] iwis catalogue, ISO 606 standard / catalogue table | 0.41 kg/m | 0.41 kg/m | 0 ✓ |
08B-1: minimum tensile strength F_u ISO 606 | [10] iwis catalogue, ISO 606 standard / catalogue table | 17.8 kN | 17.8 kN | 0 ✓ |
08B-1: mass per metre | [10] iwis catalogue, ISO 606 standard / catalogue table | 0.69 kg/m | 0.69 kg/m | 0 ✓ |
10B-1: minimum tensile strength F_u ISO 606 | [10] iwis catalogue, ISO 606 standard / catalogue table | 22.2 kN | 22.2 kN | 0 ✓ |
10B-1: mass per metre | [10] iwis catalogue, ISO 606 standard / catalogue table | 0.93 kg/m | 0.93 kg/m | 0 ✓ |
12B-1: minimum tensile strength F_u ISO 606 | [10] iwis catalogue, ISO 606 standard / catalogue table | 28.9 kN | 28.9 kN | 0 ✓ |
12B-1: mass per metre | [10] iwis catalogue, ISO 606 standard / catalogue table | 1.15 kg/m | 1.15 kg/m | 0 ✓ |
16B-1: minimum tensile strength F_u ISO 606 | [10] iwis catalogue, ISO 606 standard / catalogue table | 60 kN | 60 kN | 0 ✓ |
16B-1: mass per metre | [10] iwis catalogue, ISO 606 standard / catalogue table | 2.71 kg/m | 2.71 kg/m | 0 ✓ |
08B sprocket, 17 teeth: pitch diameter p = 12.7 mm, z = 17 | [11] Shigley ch. 17; ISO 606 derived analytically | 69.11583 mm | 69.11583 mm | 0 ✓ |
08B, 17 teeth: max hub (shroud) diameter h₂ = 11.81 mm | [11] Shigley ch. 17; ISO 606 derived analytically | 54.8966 mm | 54.8966 mm | 0 ✓ |
Chain length for z = 17/34, C = 25p p = 12.7 mm | [11] Shigley ch. 17; ISO 606 derived analytically | 75.79282 links | 75.79282 links | 0 ✓ |
Centre distance for 76 links, z = 17/34 L = 76 | [11] Shigley ch. 17; ISO 606 derived analytically | 25.1042 C/p | 25.1042 C/p | 0 ✓ |
Motor Sizing Calculator
Independent implementation: 300 random cases, compared quantities: TL, Jtot, nM, Trms, Tpeak, Thold. Largest difference: < 0.000001 %.
| Example | Source | Source result | MechLab | Difference |
|---|---|---|---|---|
Lead screw lift: load torque 100 kg lifted vertically, lead 5 mm, η = 0.9, Ø16 × 500 mm screw | [12] Rigid-body dynamics derived analytically | 0.8670982 N·m | 0.8670982 N·m | 0 ✓ |
Lead screw: inertia at the motor 100 kg lifted vertically, lead 5 mm, η = 0.9, Ø16 × 500 mm screw | [12] Rigid-body dynamics derived analytically | 1.88579e-4 kg·m² | 1.88579e-4 kg·m² | 0 ✓ |
RMS torque over the cycle 100 kg lifted vertically, lead 5 mm, η = 0.9, Ø16 × 500 mm screw, 0.1/1/0.1/1 s | [12] Rigid-body dynamics derived analytically | 0.8295796 N·m | 0.8295796 N·m | 0 ✓ |
Parallel Key Calculator
Independent implementation: 300 random cases, compared quantities: b, h, l0, p, tau. Largest difference: 0.
| Example | Source | Source result | MechLab | Difference |
|---|---|---|---|---|
Key for d over 6 up to 8 mm: b × h, t₁, t₂ d = 8 mm | [13] DIN 6885-1 table standard / catalogue table | 2 / 2 / 1.2 / 1 mm | 2 / 2 / 1.2 / 1 mm | identical ✓ |
Key for d over 8 up to 10 mm: b × h, t₁, t₂ d = 10 mm | [13] DIN 6885-1 table standard / catalogue table | 3 / 3 / 1.8 / 1.4 mm | 3 / 3 / 1.8 / 1.4 mm | identical ✓ |
Key for d over 10 up to 12 mm: b × h, t₁, t₂ d = 12 mm | [13] DIN 6885-1 table standard / catalogue table | 4 / 4 / 2.5 / 1.8 mm | 4 / 4 / 2.5 / 1.8 mm | identical ✓ |
Key for d over 12 up to 17 mm: b × h, t₁, t₂ d = 17 mm | [13] DIN 6885-1 table standard / catalogue table | 5 / 5 / 3 / 2.3 mm | 5 / 5 / 3 / 2.3 mm | identical ✓ |
Key for d over 17 up to 22 mm: b × h, t₁, t₂ d = 22 mm | [13] DIN 6885-1 table standard / catalogue table | 6 / 6 / 3.5 / 2.8 mm | 6 / 6 / 3.5 / 2.8 mm | identical ✓ |
Key for d over 22 up to 30 mm: b × h, t₁, t₂ d = 30 mm | [13] DIN 6885-1 table standard / catalogue table | 8 / 7 / 4 / 3.3 mm | 8 / 7 / 4 / 3.3 mm | identical ✓ |
Key for d over 30 up to 38 mm: b × h, t₁, t₂ d = 38 mm | [13] DIN 6885-1 table standard / catalogue table | 10 / 8 / 5 / 3.3 mm | 10 / 8 / 5 / 3.3 mm | identical ✓ |
Key for d over 38 up to 44 mm: b × h, t₁, t₂ d = 44 mm | [13] DIN 6885-1 table standard / catalogue table | 12 / 8 / 5 / 3.3 mm | 12 / 8 / 5 / 3.3 mm | identical ✓ |
Key for d over 44 up to 50 mm: b × h, t₁, t₂ d = 50 mm | [13] DIN 6885-1 table standard / catalogue table | 14 / 9 / 5.5 / 3.8 mm | 14 / 9 / 5.5 / 3.8 mm | identical ✓ |
Key for d over 50 up to 58 mm: b × h, t₁, t₂ d = 58 mm | [13] DIN 6885-1 table standard / catalogue table | 16 / 10 / 6 / 4.3 mm | 16 / 10 / 6 / 4.3 mm | identical ✓ |
Key for d over 58 up to 65 mm: b × h, t₁, t₂ d = 65 mm | [13] DIN 6885-1 table standard / catalogue table | 18 / 11 / 7 / 4.4 mm | 18 / 11 / 7 / 4.4 mm | identical ✓ |
Key for d over 65 up to 75 mm: b × h, t₁, t₂ d = 75 mm | [13] DIN 6885-1 table standard / catalogue table | 20 / 12 / 7.5 / 4.9 mm | 20 / 12 / 7.5 / 4.9 mm | identical ✓ |
Key for d over 75 up to 85 mm: b × h, t₁, t₂ d = 85 mm | [13] DIN 6885-1 table standard / catalogue table | 22 / 14 / 9 / 5.4 mm | 22 / 14 / 9 / 5.4 mm | identical ✓ |
Key for d over 85 up to 95 mm: b × h, t₁, t₂ d = 95 mm | [13] DIN 6885-1 table standard / catalogue table | 25 / 14 / 9 / 5.4 mm | 25 / 14 / 9 / 5.4 mm | identical ✓ |
Key for d over 95 up to 110 mm: b × h, t₁, t₂ d = 110 mm | [13] DIN 6885-1 table standard / catalogue table | 28 / 16 / 10 / 6.4 mm | 28 / 16 / 10 / 6.4 mm | identical ✓ |
Key for d over 110 up to 130 mm: b × h, t₁, t₂ d = 130 mm | [13] DIN 6885-1 table standard / catalogue table | 32 / 18 / 11 / 7.4 mm | 32 / 18 / 11 / 7.4 mm | identical ✓ |
Key for d over 130 up to 150 mm: b × h, t₁, t₂ d = 150 mm | [13] DIN 6885-1 table standard / catalogue table | 36 / 20 / 12 / 8.4 mm | 36 / 20 / 12 / 8.4 mm | identical ✓ |
Key for d over 150 up to 170 mm: b × h, t₁, t₂ d = 170 mm | [13] DIN 6885-1 table standard / catalogue table | 40 / 22 / 13 / 9.4 mm | 40 / 22 / 13 / 9.4 mm | identical ✓ |
Key for d over 170 up to 200 mm: b × h, t₁, t₂ d = 200 mm | [13] DIN 6885-1 table standard / catalogue table | 45 / 25 / 15 / 10.4 mm | 45 / 25 / 15 / 10.4 mm | identical ✓ |
Standard length range, b = 40 mm | [13] DIN 6885-1 table standard / catalogue table | 110–400 mm | 110–400 mm | identical ✓ |
Standard length range, b = 45 mm | [13] DIN 6885-1 table standard / catalogue table | 125–400 mm | 125–400 mm | identical ✓ |
Standard length range, b = 36 mm | [13] DIN 6885-1 table standard / catalogue table | 100–400 mm | 100–400 mm | identical ✓ |
Standard length range, b = 8 mm | [13] DIN 6885-1 table standard / catalogue table | 18–90 mm | 18–90 mm | identical ✓ |
Key pressure, contact on h/2 d = 40, M_s = 300 N·m, 12 × 8, l₀ = 45 mm | [2] Osiński, PKM (PWN) derived analytically | 83.33333 MPa | 83.33333 MPa | 0 ✓ |
Coupling Ø60, 900 N·m × 2: allowable pressure S275, z = 0.6 | [14] PKM course material worked example | 82.5 MPa | 82.5 MPa | 0 ✓ |
Lead Screw and Nut Calculator
Independent implementation: 300 random cases, compared quantities: d2, d3, TR, eta, nw, zReq. Largest difference: < 0.000001 %.
| Example | Source | Source result | MechLab | Difference |
|---|---|---|---|---|
Tr 20×4: pitch and core diameter | [22] ISO 2904; Shigley ch. 8 derived analytically | 18 / 15.5 mm | 18 / 15.5 mm | identical ✓ |
Tr 40×7: pitch and core diameter | [22] ISO 2904; Shigley ch. 8 derived analytically | 36.5 / 32 mm | 36.5 / 32 mm | identical ✓ |
Tr 44×7: pitch and core diameter | [22] ISO 2904; Shigley ch. 8 derived analytically | 40.5 / 36 mm | 40.5 / 36 mm | identical ✓ |
Tr 44×10: pitch and core diameter | [22] ISO 2904; Shigley ch. 8 derived analytically | 39 / 33 mm | 39 / 33 mm | identical ✓ |
Thread torque to raise, Tr 32×4 double start F = 6.4 kN, f = 0.08, α = 15° | [22] ISO 2904; Shigley ch. 8 derived analytically | 16213.64 N·mm | 16213.64 N·mm | < 0.000001 % ✓ |
Collar friction torque d_c = 40 mm, f_c = 0.08 | [22] ISO 2904; Shigley ch. 8 derived analytically | 10240 N·mm | 10240 N·mm | 0 ✓ |
Euler critical load of the core (slender) Tr 32×4, L = 2 m, fixed–free | [22] ISO 2904; Shigley ch. 8 derived analytically | 3636.635 N | 3636.635 N | < 0.000001 % ✓ |
Engineering Unit Converter
| Example | Source | Source result | MechLab | Difference |
|---|---|---|---|---|
1 in in m exact | [23] NIST SP 811 standard / catalogue table | 0.0254 m | 0.0254 m | 0 ✓ |
1 mi in m exact | [23] NIST SP 811 standard / catalogue table | 1609.344 m | 1609.344 m | < 0.000001 % ✓ |
1 kgf in N exact | [23] NIST SP 811 standard / catalogue table | 9.80665 N | 9.80665 N | 0 ✓ |
1 kip in N 7 significant digits | [23] NIST SP 811 standard / catalogue table | 4448.222 N | 4448.222 N | 8.6e-6 % ✓ |
1 ozf·in in N·m 7 significant digits | [23] NIST SP 811 standard / catalogue table | 0.007061552 N·m | 0.007061552 N·m | 2.6e-6 % ✓ |
1 ksi in Pa 7 significant digits | [23] NIST SP 811 standard / catalogue table | 6894757 Pa | 6894757 Pa | 4.3e-6 % ✓ |
1 atm in Pa exact | [23] NIST SP 811 standard / catalogue table | 101325 Pa | 101325 Pa | 0 ✓ |
1 bar in Pa exact | [23] NIST SP 811 standard / catalogue table | 100000 Pa | 100000 Pa | 0 ✓ |
1 mmHg in Pa 7 significant digits | [23] NIST SP 811 standard / catalogue table | 133.3224 Pa | 133.3224 Pa | 2.4e-5 % ✓ |
1 inHg in Pa 7 significant digits | [23] NIST SP 811 standard / catalogue table | 3386.389 Pa | 3386.388 Pa | 2.5e-5 % ✓ |
1 inH₂O in Pa 7 significant digits | [23] NIST SP 811 standard / catalogue table | 249.0889 Pa | 249.0889 Pa | 4.0e-6 % ✓ |
1 mmH₂O in Pa exact | [23] NIST SP 811 standard / catalogue table | 9.80665 Pa | 9.80665 Pa | 0 ✓ |
1 hp in W 7 significant digits | [23] NIST SP 811 standard / catalogue table | 745.6999 W | 745.6999 W | 3.8e-6 % ✓ |
1 PS in W 7 significant digits | [23] NIST SP 811 standard / catalogue table | 735.4988 W | 735.4987 W | 6.8e-6 % ✓ |
1 BTU/h in W 7 significant digits | [23] NIST SP 811 standard / catalogue table | 0.2930711 W | 0.2930711 W | 1.0e-5 % ✓ |
1 BTU in J 7 significant digits | [23] NIST SP 811 standard / catalogue table | 1055.056 J | 1055.056 J | 1.4e-5 % ✓ |
1 cal in J exact | [23] NIST SP 811 standard / catalogue table | 4.184 J | 4.184 J | 0 ✓ |
1 kWh in J exact | [23] NIST SP 811 standard / catalogue table | 3600000 J | 3600000 J | 0 ✓ |
1 ft·lbf in J 7 significant digits | [23] NIST SP 811 standard / catalogue table | 1.355818 J | 1.355818 J | 3.8e-6 % ✓ |
1 gal (US) in m³ 7 significant digits | [23] NIST SP 811 standard / catalogue table | 0.003785412 m³ | 0.003785412 m³ | 5.7e-6 % ✓ |
1 gal (UK) in m³ exact | [23] NIST SP 811 standard / catalogue table | 0.00454609 m³ | 0.00454609 m³ | 0 ✓ |
1 cfm in m³/s 7 significant digits | [23] NIST SP 811 standard / catalogue table | 4.71947e-4 m³/s | 4.71947e-4 m³/s | 9.2e-6 % ✓ |
1 gpm (US) in m³/s 7 significant digits | [23] NIST SP 811 standard / catalogue table | 6.30902e-5 m³/s | 6.30902e-5 m³/s | 5.7e-6 % ✓ |
1 kn in m/s 7 significant digits | [23] NIST SP 811 standard / catalogue table | 0.5144444 m/s | 0.5144444 m/s | 8.6e-6 % ✓ |
1 mph in m/s exact | [23] NIST SP 811 standard / catalogue table | 0.44704 m/s | 0.44704 m/s | < 0.000001 % ✓ |
1 in⁴ in m⁴ 7 significant digits | [23] NIST SP 811 standard / catalogue table | 4.16231e-7 m⁴ | 4.16231e-7 m⁴ | 6.2e-6 % ✓ |
1 cP in Pa·s exact | [23] NIST SP 811 standard / catalogue table | 0.001 Pa·s | 0.001 Pa·s | 0 ✓ |
1 cSt in m²/s exact | [23] NIST SP 811 standard / catalogue table | 1.00000e-6 m²/s | 1.00000e-6 m²/s | 0 ✓ |
100 °F in K exact | [23] NIST SP 811 standard / catalogue table | 310.9278 K | 310.9278 K | < 0.000001 % ✓ |
Welded Joint Calculator
| Example | Source | Source result | MechLab | Difference |
|---|---|---|---|---|
Butt weld 8 × 90 without run-off plates: force carried S275, x_e = 2, z = 0.8 | [15] PKM course: welds worked example | 65.12 kN | 65.12 kN | 0 ✓ |
Angle 90×60×8: force in the toe weld F = 70 kN, e₂ = 29.7 mm, b = 90 mm | [15] PKM course: welds worked example | 23.1 kN | 23.1 kN | 0 ✓ |
Angle 90×60×8, pulsating load: real length of the heel weld a = 5 mm, k_tj′ = 0.65·0.6·82.5 MPa | [15] PKM course: welds worked example | 310 mm | 310 mm | 0 ✓ |
Angle 90×60×8: tension in the bar A = 11.4 cm² | [15] PKM course: welds worked example | 61.4 MPa | 61.40351 MPa | 5.7e-3 % ✓ |
Bracket: allowable stress in the fillet weld S235, x_e = 2 | [15] PKM course: welds worked example | 45.8 MPa | 45.825 MPa | 0.05 % ✓ |
Bracket: load-bearing weld length h = 275 mm, a = 8 mm | [15] PKM course: welds worked example | 251 mm | 251 mm | 0 ✓ |
Bracket: combined stress in two welds F = 35 kN, l = 200 mm | [15] PKM course: welds derived analytically | 44.3161 MPa | 44.3161 MPa | 0 ✓ |
Butt weld on run-off plates: bar width S235, g = 10 mm, F = 165 kN | [16] Colloquium task worked example | 175.53 mm | 175.5319 mm | 1.1e-3 % ✓ |
Bolted Joint Calculator
| Example | Source | Source result | MechLab | Difference |
|---|---|---|---|---|
M16: core diameter d3 d₂ = 14.701, D₁ = 13.835 | [17] ISO 724 table standard / catalogue table | 13.546 mm | 13.54626 mm | 1.9e-3 % ✓ |
M20: core diameter d3 d₂ = 18.376, D₁ = 17.294 | [17] ISO 724 table standard / catalogue table | 16.933 mm | 16.93283 mm | 1.0e-3 % ✓ |
M36: core diameter d3 d₂ = 33.402, D₁ = 31.67 | [17] ISO 724 table standard / catalogue table | 31.093 mm | 31.09252 mm | 1.5e-3 % ✓ |
Coupling, clearance bolts: preload from friction M_o = 716.25 N·m, D = 150 mm | [18] PKM course: threads worked example | 14922 N | 14921.87 N | 8.4e-4 % ✓ |
Coupling, clearance bolts: thread chosen S235, x_e = 2 | [18] PKM course: threads worked example | M20 | M20 | identical ✓ |
Coupling, fitted bolts: shank diameter k_t = 0.6·117.5 MPa | [18] PKM course: threads worked example | 6.6 mm | 6.566473 mm | 0.51 % ✓ |
M16 clamp: friction torque on the thrust pin D_o = 12 mm, μ_d = 0.15 | [18] PKM course: threads worked example | 11250 N·mm | 11250 N·mm | 0 ✓ |
M16 clamp: bolt property class Q₀ = 25 kN, x_e = 2 | [18] PKM course: threads worked example | 8.8 | 8.8 | identical ✓ |
M36, 60 kN, head Ø59: tightening torque μ = 0.2 | [16] Colloquium task derived analytically | 449.0075 N·m | 449.007 N·m | 1.2e-4 % ✓ |
Pin and Clevis Joint Calculator
| Example | Source | Source result | MechLab | Difference |
|---|---|---|---|---|
Radial pin, 84 N·m on a Ø30 shaft: diameter from shear C55E pin, x_e = 2 | [19] PKM course: pins worked example | 4.93 mm | 4.92465 mm | 0.11 % ✓ |
Radial pin Ø5: pressure on the E335 hub p_dop = 0.6·167.5 = 100.5 MPa | [19] PKM course: pins worked example | 56 MPa | 56 MPa | 0 ✓ |
Radial pin, 176 N·m on a Ø44 shaft, C45E: diameter k_t = 0.6·215 = 129 MPa | [16] Colloquium task worked example | 6.2833 mm | 6.283335 mm | 5.5e-4 % ✓ |
Loose clevis pin, 50 kN pulsating: first diameter k_gj = 0.6·0.9·245 MPa (course rounds to 132 → 36.08) | [19] PKM course: pins worked example | 36.04 mm | 36.04475 mm | 0.01 % ✓ |
Loose clevis pin: moment after widening the eye and fork to 90/45 l₁ = 90, l₂ = 45 mm | [19] PKM course: pins worked example | 1125 N·m | 1125 N·m | 0 ✓ |
Loose clevis pin: final standard diameter p_dop = 0.06·245 = 14.7 MPa | [19] PKM course: pins worked example | 45 mm | 45 mm | 0 ✓ |
Loose clevis: fork outer diameter k_rj = 0.6·245 = 147 MPa | [19] PKM course: pins worked example | 48.78 mm | 48.77929 mm | 1.5e-3 % ✓ |
Tight clevis pin, 50 kN pulsating: diameter from double shear course rounds k_tj to 88 → 19.02 | [19] PKM course: pins worked example | 19 mm | 18.99725 mm | 0.01 % ✓ |
Tight clevis pin Ø20: pressure in the fork l₂ = 0.6·20 = 12 mm | [19] PKM course: pins worked example | 104.17 MPa | 104.1667 MPa | 3.2e-3 % ✓ |
Tight clevis: fork outer diameter D = 35 mm | [19] PKM course: pins worked example | 34.1 mm | 34.17234 mm | 0.21 % ✓ |
Loose clevis pin, 20 kN alternating, eye 80, fork 35: diameter from bending C55E, x_e = 2 | [16] Colloquium task derived analytically | 35.88094 mm | 35.88094 mm | 0 ✓ |
Riveted Joint Calculator
| Example | Source | Source result | MechLab | Difference |
|---|---|---|---|---|
Two cover plates, 195 kN: rivets from contact pressure d = 16, d₀ = 17 mm, k_o = 2.5·100 MPa | [20] PKM course: rivets worked example | 5.74 | 5.735294 | 0.08 % ✓ |
Two cover plates: shear in 6 double-shear rivets course rounds 71.6 to 72 | [20] PKM course: rivets worked example | 72 MPa | 71.59219 MPa | 0.57 % ✓ |
Two cover plates: plate section III b = 190 mm, rows 1–2–3 | [20] PKM course: rivets worked example | 87.7 MPa | 87.67986 MPa | 0.02 % ✓ |
Two cover plates 6 mm: stress in the covers g_n ≥ 0.65·8 = 5.2 → 6 mm | [20] PKM course: rivets worked example | 117 MPa | 116.9065 MPa | 0.08 % ✓ |
Rivet length for 6 + 8 + 6 mm rivet 16 × 40 | [20] PKM course: rivets worked example | 39 mm | 39 mm | 0 ✓ |
Lap joint, 80 kN: rivets from shear St3N hot, k_n = 110 MPa | [20] PKM course: rivets worked example | 3.2 | 3.204126 | 0.13 % ✓ |
Lap joint, 4 rivets: contact pressure g = 8 mm | [20] PKM course: rivets worked example | 147.1 MPa | 147.0588 MPa | 0.03 % ✓ |
Lap joint: plate width from section I course rounds k_r = 147.5 to 147 | [20] PKM course: rivets worked example | 85.1 mm | 84.79661 mm | 0.36 % ✓ |
Lap joint 8 × 90: section II rows 1–2–1 | [20] PKM course: rivets worked example | 133.93 MPa | 133.9286 MPa | 1.1e-3 % ✓ |
Spline Calculator
| Example | Source | Source result | MechLab | Difference |
|---|---|---|---|---|
Spline 6 × 28 × 34, 70 N·m: tangential force course rounds 4516 to 4520 | [21] PKM course: splines worked example | 4520 N | 4516.129 N | 0.09 % ✓ |
ZI350 hub, sliding under load, heavy conditions: allowable pressure E295 shaft is stronger | [21] PKM course: splines worked example | 3 MPa | 3 MPa | 0 ✓ |
Spline 6 × 28 × 34: effective length h₀ = (34 − 28)/2 = 3 mm | [21] PKM course: splines worked example | 111.6 mm | 111.5094 mm | 0.08 % ✓ |
Sliding hub, Δ = 8 mm: spline length l₀ rounded up to 112 mm | [21] PKM course: splines worked example | 120 mm | 120 mm | 0 ✓ |
Sources
- Beam tables (AISC Steel Construction Manual, Beam Diagrams and Formulas; Roark’s Formulas for Stress and Strain, Table 8.1)
- Osiński (ed.), Podstawy konstrukcji maszyn, PWN 2002 (as quoted in PKM course notes)
- Strength of materials course material (worked example)
- Strength of materials exam task, solved by hand and checked independently
- Shigley’s Mechanical Engineering Design, 8th ed. (Budynas, Nisbett), McGraw-Hill sample chapter 7
- ISO 6336-2 / ISO 21771 formulas (Z_E, Z_H, Z_ε, contact ratio, involute geometry)
- Lewis equation and form factors, Shigley Table 14-2 and eq. 14-4b (Barth factor)
- Shigley ch. 17: exact open-belt geometry and the V-belt tension equations (17-8, 17-9), inputs of Example 17-4
- Timing pulley pitch diameter (belt makers’ catalogues)
- iwis catalogue “Roller chains according to ISO 606 (DIN 8187)”, simplex table
- Shigley ch. 17: chain length and centre distance (eq. 17-34, 17-35); ISO 606 sprocket formulas
- Rigid-body dynamics: T = F·l/(2πη), J = m(l/2π)² + πρLD⁴/32, RMS torque over the cycle (servo makers’ sizing guides)
- DIN 6885-1 parallel keys (table reproduced by fasten.it and engineersedge.com)
- PKM course material on keys and threads (worked example)
- PKM course material “Projektowanie połączeń spawanych”, worked examples 1–3 and the weld factor table
- PKM colloquium task, solved by hand and checked independently
- ISO 724 basic dimensions of metric threads (as tabulated in the PKM course material)
- PKM course material “Projektowanie połączeń gwintowych i mechanizmów śrubowych”, examples 1–2
- PKM course material “Projektowanie połączeń kołkowych i sworzniowych”, examples 1–2 and tasks 1–2
- PKM course material “Projektowanie połączeń nitowych”, worked examples 1–2 and the rivet allowable table
- PKM course material “Projektowanie połączeń wpustowych i wielowypustowych”, worked example 2
- ISO 2904 basic relations for Tr threads; power-screw torque in the Acme form (Shigley eq. 8-1 with sec α); Euler and Johnson buckling
- NIST Special Publication 811, Appendix B.8
Independent implementation
The Python programs in the repository (tools/verify) recompute every tool from the textbook equations without using MechLab code, and write their reference results for random inputs. Where the textbook allows two equivalent forms, they use the other one on purpose: the beam by direct Clebsch integration with the reactions as unknowns (MechLab uses a stiffness solution), gear contact from the Hertz formula for two cylinders (MechLab uses the factors Z_E and Z_H), screw torque in the sec α form (MechLab uses the friction angle), belt shaft load from strand vectors.
A failed comparison stops the deployment. If you find a case where MechLab disagrees with your own calculation, please send it through the feedback button: it will be added to this page.