Shear-stress distribution
See the linear shear-stress profile across the full radius: zero at the centre, maximum at the surface. A colour gradient on the 3D shaft and a chart across the section both show the same gradient.
A shaft that passes the strength check can still fail in service: if it twists too much under load, gears lose their mesh, couplings bind, and timing-critical assemblies go out of phase. The allowable angle of twist is often around one degree per metre, which is a number that is impossible to picture on a drawing. This simulator lets you orbit a 3D shaft as it twists, watch the shear-stress gradient build from zero at the neutral axis to its maximum at the surface, read the angle of twist for any combination of torque and geometry, and see immediately how much material a hollow bore saves for how small a stiffness penalty. All four analysis views update as you drag any parameter. #ShaftDesign #Torsion #SolidMechanics
Open SimulatorShear-stress distribution
See the linear shear-stress profile across the full radius: zero at the centre, maximum at the surface. A colour gradient on the 3D shaft and a chart across the section both show the same gradient.
Angle of twist
Read the total angle of twist and the twist per metre for any torque, length, and shear modulus. A chart plots the cumulative twist from the fixed end to the free end.
Solid vs hollow sizing
Compare a hollow shaft against a solid one of the same outer diameter. Charts show what fraction of material and torsional stiffness you retain as the bore ratio increases.
Power, torque, and safety check
Sweep the outer diameter against the allowable shear stress to find the minimum safe diameter, and read a live safety factor and a verdict for your current shaft.
3D orbit, zoom, and auto-rotate with exaggerated twist The Three.js shaft renders painted surface lines that shear into helices as it twists. The displayed deformation is exaggerated so the twist is visible; the real angle reads on the charts.
Live numerical readouts Peak shear stress, shear stress at the bore, polar moment J, angle of twist, twist per metre, surface shear strain, and the safety factor all update as you move any slider.
Four analysis charts in two tabs The stress-and-twist tab shows shear stress versus radius and angle of twist versus position along the length. The sizing-and-material tab shows peak shear versus outer diameter (with the allowable stress line) and the hollow-versus-solid material and stiffness curves.
Four shaft presets Solid steel, hollow steel, precision shaft, and aluminium shaft cover the most common starting points. Switch presets and the 3D shaft, charts, and summaries all update together.
A/B shaft comparison Save the current shaft as Shaft A, change any parameters (for example switch from solid to hollow), and the A curves overlay every chart as a dashed purple line so you can compare both configurations directly.
Diameter sweep The peak-shear chart sweeps the outer diameter from 10 mm to 90 mm at constant torque and bore ratio, with the allowable stress as a horizontal line. The intersection is the minimum safe diameter, read as a separate result.
Watermarked free exports and paid downloads Export any chart as a watermarked PNG for free. Paid downloads (1 USD each) include a watermark-free lab report with all four charts, a full CSV dataset for both shafts when comparing, and a design-data sheet with animation video.
| Preset | T (Nm) | L (mm) | d_o (mm) | d_i (mm) | G (GPa) | tau_allow (MPa) | Represents |
|---|---|---|---|---|---|---|---|
| Solid steel shaft | 200 | 500 | 30 | 0 | 79 | 120 | Typical steel transmission shaft, solid section |
| Hollow steel shaft | 200 | 500 | 36 | 26 | 79 | 120 | Thin-walled steel tube, same torque as solid preset |
| Precision shaft | 80 | 400 | 25 | 0 | 79 | 90 | Instrument or spindle shaft where twist is tightly controlled |
| Aluminium shaft | 120 | 600 | 35 | 0 | 26 | 70 | Lightweight aluminium drive shaft, lower G and allowable |
Polar moment of area for solid and hollow circular sections:
J_solid = pi * d_o^4 / 32J_hollow = pi * (d_o^4 - d_i^4) / 32Shear stress at radius r from the centre (torsion formula):
tau(r) = T * r / Jtau_max = T * r_o / J (surface, r = r_o)tau_bore = T * r_i / J (bore wall, r = r_i; zero for solid shaft)Angle of twist over length L (in consistent units: T in N*mm, L in mm, G in MPa):
phi = T * L / (G * J) (radians)phi_deg = phi * 180 / pitwist_per_metre = phi_deg / (L / 1000) (deg/m)Torque from power and angular velocity:
T = P / omega (P in watts, omega in rad/s, T in N*m)Safety factor and minimum diameter check:
SF = tau_allow / tau_maxd_min = ( 16 * T / (pi * tau_allow * (1 - k^4)) )^(1/3) where k = d_i / d_o (bore ratio; k = 0 for solid)Hollow-versus-solid material and stiffness ratios (same outer diameter):
material ratio = (d_o^2 - d_i^2) / d_o^2 = 1 - k^2stiffness ratio = J_hollow / J_solid = 1 - k^4Work through the Shaft Torsion Experiments lesson for structured, Python-verified exercises that use this simulator as the measurement instrument:
Comments