Skip to content

Add geometry sketches for the four new calculators - #21

Merged
ehcrea merged 3 commits into
mainfrom
claude/project-thread-9t7nna
Nov 10, 2026
Merged

ehcrea merged 3 commits into
mainfrom
claude/project-thread-9t7nna

Conversation

@ehcrea

@ehcrea ehcrea commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Requested by Eren · project thread

Summary

Adds live SVG previews (js/preview.js) for the calculators added in #20:

  • Mass moment of inertia: oblique view of the cylinder, tube, block or sphere with the x/y/z axes, the key dimensions and the parallel-axis offset z' when d_p > 0.
  • Kinematic coupling: top view of the three 120° V-grooves on the ball circle R_c, plus a section through one ball in its groove showing the normal forces N, the flank angle θ and the preload F/3.
  • Bolt preload and torque: bolt in its clamped plates (hex or socket head, D_Km and d_h marked, F_M arrow), plus a bar that splits the tightening torque M_A into pitch, thread friction and head friction.
  • Press fit: half-section of the shaft and hub (L_F, D_F, D_a), plus a Lamé plot of σ_t and σ_r across the wall.

The new labels and notes are translated to DE, NL, TR and ES. The detailed bolted-joint tool (bolt length, clamp thickness, thread engagement) is not part of this PR.

Testing

  • npm test: 950 passed, 0 failed
  • Checked every variant in a browser in EN, in DE at 360 px in dark mode, and in the PDF export. No overflow and no page errors.

Generated by Claude Code

…s-fit calculators

- Mass moment of inertia (JPE article): cylinder, tube, block, sphere;
  mass from density or entered, J about the centre axes, radius of
  gyration, parallel axis.
- Kinematic coupling preload: three balls in three V-grooves; Hertz
  sphere-on-flat contact per flank, contact pressure, settling, vertical,
  horizontal, tilt and rotational stiffness, optional pressure check.
- Bolt preload & tightening torque (VDI 2230): M3-M24 coarse, 8.8/10.9/12.9,
  socket or hex head; max assembly preload, torque and its split, and the
  preload and equivalent stress for a given torque.
- Press fit (DIN 7190 / Lame): pressure after smoothing, hub and shaft
  equivalent stress and utilisation, hub outer diameter growth,
  transmissible torque and axial force.
- Calculators without a JPE article show "Based on: <standard>" instead of
  the JPE source link (page, help, PDF, generated pages).
- Theory notes and all texts in DE, NL, TR, ES; 20 new pages (105 in all).
- 22 new tests (VDI hand calculation, cross-check with the Hertz
  calculator, closed-form inertia and Lame cases).
- Result values no longer break inside a number on phones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtSyM5HXUjVKVXDMRw2Hht
…ing, bolt preload and press-fit calculators

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtSyM5HXUjVKVXDMRw2Hht
@ehcrea
ehcrea merged commit 28ca60e into main Nov 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants