Selection is often slow not because you cannot calculate, but because finding one figure means paging through three handbooks: the material properties in the first, the parallel key sizes in the second, the bolt preload torques in the third. Designing a gearbox can burn half a day on table lookups alone, and the three lookups may not even come from matching editions.
A digital knowledge base solves exactly this — turning scattered tables into structured, searchable data tables with sources attached. Below we walk through a complete selection case for a gearbox output shaft, then expand into the formulas and the database design.
Known conditions
| Item | Value | Data source |
|---|---|---|
| Transmitted torque T | 430 N·m | Duty calculation |
| Output shaft diameter d | 45 mm | Preliminary structural design |
| Load nature | Slight impact, duty factor K = 1.25 | Duty factor library |
| Candidate materials (3) | 45 steel quenched and tempered / 40Cr quenched and tempered / 20CrMnTi carburised and hardened | Material mechanical property library |
| Parallel key size | To be determined (type A parallel key) | GB/T 1096 standard part library |
| Bearing housing bolts | M12, grade 8.8 | GB/T 3098.1 thread library |
The library is indexed by "grade + heat treatment condition", so all the data for the three candidates comes out in one query:
| Grade | Heat treatment | σb (MPa) | σs (MPa) | σ₋₁ (MPa) | Hardness |
|---|---|---|---|---|---|
| 45 | Quenched and tempered | 650 | 360 | 300 | 217~255 HBW |
| 40Cr | Quenched and tempered | 980 | 785 | 440 | 241~286 HBW |
| 20CrMnTi | Carburised and hardened | 1100 | 850 | 500 | Surface 58~62 HRC |
Note that the "heat treatment condition" is part of the index — the σs of normalised 45 steel is only 300 MPa, while after quenching and tempering it is 360 MPa, a difference of 20%. If the library does not record the condition, the data is essentially unusable.
Take the solid circular shaft torsion formula from the formula library:
Wt = πd³ / 16 = 3.1416 × 45³ / 16 = 3.1416 × 91125 / 16 = 17 892 mm³
τ = T / Wt = 430 000 / 17 892 = 24.0 MPa
(Torque conversion: 430 N·m = 430 000 N·mm; the units must be unified before the formula can be used.)
Get the allowable torsional shear stress [τ] from the material library: take 35 MPa for quenched and tempered 45 steel and 45 MPa for quenched and tempered 40Cr.
45 steel: τ = 24.0 < [τ] = 35 MPa, margin = (35 − 24.0) / 35 = 31.4%
Back-calculate the minimum diameter: d_min = ∛(16T / (π[τ])) = ∛(6 880 000 / 109.96) = 39.7 mm; the structure takes 45 mm, leaving room for machining and assembly tolerances.
| Candidate material | [τ] (MPa) | d_min (mm) | Conclusion |
|---|---|---|---|
| 45 steel quenched and tempered | 35 | 39.7 | φ45 satisfies it, margin 31% ✓ |
| 40Cr quenched and tempered | 45 | 36.5 | Satisfies it, but the material cost is high |
Conclusion: choose 45 steel quenched and tempered at φ45 mm.Not "the stronger the better", but "good enough and low cost".
The shaft diameter of 45 mm falls in the 44~50 range, so the standard part library gives the type A parallel key 14×9 (b = 14, h = 9); take the standard length L = 70 mm.
Working length of the round-ended key l = L − b = 70 − 14 = 56 mm.
Crushing stress: σp = 4T / (d · h · l) = 4 × 430 000 / (45 × 9 × 56) = 1 720 000 / 22 680 = 75.8 MPa
For a steel-on-steel static joint with slight impact, the allowable crushing stress [σp] = 120 MPa, margin = (120 − 75.8) / 120 = 36.8%, acceptable.
M12, grade 8.8: σb,min = 800 MPa, σs,min = 640 MPa, thread stress area As = 84.3 mm² (looked up directly, no calculation needed).
Preload taken as 50% of the yield strength: F0 = 0.5 σs As = 0.5 × 640 × 84.3 = 27.0 kN
Tightening torque (K = 0.2, unlubricated): T_f = K · F0 · d = 0.2 × 27 000 × 12 = 64 700 N·mm = 64.7 N·m
Tensile stress in the bolt after tightening: σ = 1.3 F0 / As = 1.3 × 27 000 / 84.3 = 416 MPa
Against 0.8 σs = 512 MPa the margin is 18.8%, which is usable; calibrate the torque wrench at 65 N·m.
This is the step most easily overlooked and most easily got wrong in a digital library. Every value loaded into the library must be loaded with its unit, and converted consistently when it is called:
| Conversion | Value | Common trap |
|---|---|---|
| 1 N·m → N·mm | × 1000 | The formula uses N·mm but the table stores N·m |
| 1 MPa | = 1 N/mm² | μ written as N/m², off by a factor of 10⁶ |
| 1 kgf/mm² | = 9.807 MPa | Data from old handbooks used directly as MPa |
| 1 kgf·m | = 9.807 N·m | Old and new torque tables mixed together |
For the six steps above to be reusable, the material table needs at least 7 fields:
| Field | Example | Why it is required |
|---|---|---|
| Grade | 45 | Primary key, unique identifier |
| Heat treatment condition | Quenched and tempered | Strength of the same grade differs by 20% |
| σb tensile strength | 650 MPa | Material selection, back-calculation from hardness |
| σs yield strength | 360 MPa | Basis for the allowable stress calculation |
| σ₋₁ fully reversed fatigue limit | 300 MPa | Basis for the fatigue verification |
| Hardness range | 217~255 HBW | Basis for process and inspection |
| Data source + version | GB/T 699-2015 | Traceable, and updatable when the standard is revised |
The last field is the one most often omitted, and the most dangerous: when a problem arises, without a source there is no data.
| Stage | Result | Verified value | Margin |
|---|---|---|---|
| Shaft material and diameter | 45 steel quenched and tempered, φ45 mm | τ = 24.0 ≤ 35 MPa | 31.4% |
| Parallel key | Type A 14×9×70, GB/T 1096 | σp = 75.8 ≤ 120 MPa | 36.8% |
| Bearing housing bolts | M12 × grade 8.8, 65 N·m | σ = 416 ≤ 512 MPa | 18.8% |
One query, three stages all settled.
| Layer | Content | Function |
|---|---|---|
| Data layer | Material properties, standard part parameters, process parameters, empirical coefficients | Structurises the tables in handbooks and standards |
| Index layer | Grade, size, diameter range, standard number, duty factor | Makes the data retrievable accurately |
| Application layer | Selection calculations, strength verifications, report output | Feeds the query results straight into the formulas |
None of the three layers can be omitted. With only the data layer you have scanned the handbook into a PDF and the lookup is still slow; with only the application layer the provenance of the data is unclear and, however fast the calculation, nobody dares to sign it off.
| Library type | Typical content | Update trigger |
|---|---|---|
| Material library | Grade / heat treatment / σb / σs / σ₋₁ / hardness | Revision of a material standard |
| Standard part library | Bearings / keys / bolts / seals / section sizes | Revision of a national standard |
| Process library | Machining times / surface treatments / heat treatment parameters / tool library | Process improvement, equipment renewal |
| Empirical library | Safety factors / duty factors / allowable stresses / error cases | Project review, failure analysis |
| Comparison item | Printed handbook | Digital knowledge base |
|---|---|---|
| Retrieval method | Table of contents plus page numbers, relying on memory | Direct hit on grade / size / range |
| Units | Several systems mixed together | Unified basis, automatic conversion |
| Versions | The old edition is still in circulation after revision | Version controlled, one update takes effect everywhere |
| Traceability | The source is quoted from memory | Every record carries a standard number and version |
| Link to calculation | Figures copied by hand into formulas | Query results connect directly to the calculation |
Finding the torque from a known power and speed is the first step of shaft selection. In reverse, P = T · n / 9550 gives the permissible power from the torque.
Engineering practice often uses 0.2 d³ for a quick estimate: 45³ × 0.2 = 18 225 mm³, which differs from the exact 17 892 mm³ by 1.9% — good enough for a mental check.
[τ] is the allowable torsional shear stress, a conservative value for the material that already accounts for the influence of the bending moment; the values for different materials are in the table below.
d is the shaft diameter, h the key height and l the working length of the key. For a type B square-ended key l = L, and for a type C single round-ended key l = L − b/2; using the wrong type gives a wrong result.
k is the preload factor, normally 0.5~0.7 (0.5 for frequent removal and refitting, 0.7 for one-time assembly); K is the torque factor, 0.20 unlubricated, 0.22 zinc plated and 0.16 lubricated.
The tables use SI units throughout; data in the kgf system from old handbooks must be converted on entry and the original value recorded, otherwise nobody can tell later which figures have already been converted.
| Grade | Heat treatment | σb (MPa) | σs (MPa) | σ₋₁ (MPa) | Hardness | Standard |
|---|---|---|---|---|---|---|
| Q235 | Hot rolled | 375~500 | 235 | 170 | — | GB/T 700 |
| Q355 | Hot rolled | 490~630 | 355 | 220 | — | GB/T 1591 |
| 45 | Normalised | 600 | 300 | 245 | 170~210 HBW | GB/T 699 |
| 45 | Quenched and tempered | 650 | 360 | 300 | 217~255 HBW | GB/T 699 |
| 40Cr | Quenched and tempered | 980 | 785 | 440 | 241~286 HBW | GB/T 3077 |
| 42CrMo | Quenched and tempered | 1080 | 930 | 500 | 217~255 HBW | GB/T 3077 |
| 20CrMnTi | Carburised and hardened | 1100 | 850 | 500 | 58~62 HRC | GB/T 3077 |
| 304 | Solution treated | ≥ 520 | ≥ 205 | 240 | ≤ 187 HBW | GB/T 1220 |
| Material | [τ] (MPa) | A₀ coefficient | Applicable situations |
|---|---|---|---|
| Q235 | 15~25 | 135~160 | Non-critical, low-speed shafts |
| 45 steel (normalised) | 25~35 | 126~112 | General transmission shafts |
| 45 steel (quenched and tempered) | 25~45 | 126~103 | General gearbox shafts |
| 40Cr / 42CrMo | 35~55 | 112~98 | High load, large span |
The formula d = A₀ ∛(P/n) gives a quick estimate: in this example P = T·n/9550 = 430 × 150 / 9550 = 6.75 kW; taking A₀ = 112 gives d = 112 × ∛(6.75/150) = 39.8 mm, in complete agreement with the exact calculation of 39.7 mm.
| Shaft diameter d (mm) | Key b×h | Slot depth t (shaft) | Common key lengths L |
|---|---|---|---|
| 22~30 | 8×7 | 4.0 | 20~90 |
| 30~38 | 10×8 | 5.0 | 22~110 |
| 38~44 | 12×8 | 5.0 | 28~140 |
| 44~50 | 14×9 | 5.5 | 36~160 |
| 50~58 | 16×10 | 6.0 | 45~180 |
| 58~65 | 18×11 | 7.0 | 50~200 |
| 65~75 | 20×12 | 7.5 | 56~220 |
| 75~85 | 22×14 | 9.0 | 63~250 |
| Size | As (mm²) | Grade 8.8 F0 | Grade 8.8 T_f | Grade 10.9 F0 | Grade 10.9 T_f |
|---|---|---|---|---|---|
| M8 | 36.6 | 11.7 kN | 18.7 N·m | 17.2 kN | 27.5 N·m |
| M10 | 58.0 | 18.6 kN | 37.1 N·m | 27.3 kN | 54.5 N·m |
| M12 | 84.3 | 27.0 kN | 64.7 N·m | 39.6 kN | 95.1 N·m |
| M16 | 157 | 50.2 kN | 160.8 N·m | 73.8 kN | 236.1 N·m |
| M20 | 245 | 78.4 kN | 313.6 N·m | 115.2 kN | 460.6 N·m |
| M24 | 353 | 113.0 kN | 542.2 N·m | 165.9 kN | 796.4 N·m |
| Selection item | Recommended practice | Reason |
|---|---|---|
| Primary key design | Composite primary key of grade + heat treatment condition | The strength of the same grade differs by 20% with the condition |
| Unit field | Separate columns for the value and the unit | A library with values only will eventually cause an accident |
| Source field | Standard number + version + page number | Allows the original text to be looked up in a dispute |
| Value ranges | Store the upper and lower limits, not a "typical value" | Handbooks give ranges, not single points |
| Safety factors | Store them graded by duty (static / slight impact / heavy load) | Choosing the wrong factor is more common than a wrong calculation |
| Version management | Add a new record when a standard is revised; do not overwrite the old value | Old products have to be recalculated against the old standard |
| Common error | Consequence | Correct practice |
|---|---|---|
| Material data without the heat treatment condition | Normalised and quenched and tempered 45 steel get mixed up, a 20% difference in strength | Use grade + condition as the composite primary key |
| Using σb in place of σs | The allowable stress is nearly doubled and the part fails directly | Use σs or σ₋₁ for all verifications |
| Taking kgf/mm² directly as MPa | Under-counts by a factor of 9.8 and the margin appears out of thin air | Convert on entry and keep the original value |
| Mixing N·m and N·mm | The result is off by a factor of 1000 and the order of magnitude is not obvious | Use N·mm throughout the tables and state the unit in the heading |
| Carrying on data from an old edition of a standard | The size or the grade has been withdrawn and cannot be purchased | Carry a version number in the table and check the current standards regularly |
| Data without a source | The review stalls on a single question and nothing can be traced | State the standard number and version for every record |
The efficiency bottleneck in mechanical design often lies not in the calculation itself but in the stretch of road between the data in the handbook and the formula on the screen. Building materials, standard parts, processes and empirical coefficients into structured tables, so that the query results connect directly to the calculation, turns selection from "paging through three handbooks and copying dozens of figures" into "enter the duty, get the result".
Start by trying it on the selection of one shaft: load in the ten most common materials, one table of key sizes and one table of bolt preload torques, and once you have finished a project you will never go back.