Invntr
Source

All instruments

hertz_contact

Hertz contact of two elastic bodies (sphere on flat, sphere on sphere or in a cup, cylinder on flat, parallel cylinders): contact radius or half-width, peak and mean pressure, approach and stiffness, the stresses down the load axis with the largest shear and von Mises stress and their depths, and an optional first-yield check per body. Closed forms of Hertz (1882) as given by K. L. Johnson, Contact Mechanics (1985), chapters 3 and 4.

Field
Mechanics, CAD and finite elements
Version
0.1.0
Runs as
Compiled (Rust)
Typical run
0.05 s

Compiled from source: run sh packs/install.sh once before admitting it.

Known answers it must pass

Admission replayhertz_contact 0.1.0 · files 461435db2d29…b76a
  1. r0001Hertz sphere on flat, steel on steel, 100 N on R 10 mm: closed forms a = (3FR/4E*)^(1/3), p0 = 3F/(2 pi a^2), pm = F/(pi a^2), approach a^2/R, stiffness 2E*a, centre surface stress -(1+2nu)p0/2, edge tension (1-2nu)p0/3 (Johnson 1985 eqs 3.44-3.45, 4.22-4.23); rel 1e-6passed

    effective_modulus_GPa115.385 ± 0.00012115.385lockedunder 0.01 % of the tolerance used
    contact_radius_mm0.186626 ± 1.9e-070.186626lockedunder 0.01 % of the tolerance used
    peak_pressure_MPa1370.88 ± 0.00141370.88lockedunder 0.01 % of the tolerance used
    mean_pressure_MPa913.919 ± 0.00091913.919lockedunder 0.01 % of the tolerance used
    approach_mm0.00348291 ± 3.5e-090.00348291lockedunder 0.01 % of the tolerance used
    stiffness_N_per_mm43067.4 ± 0.04343067.4lockedunder 0.01 % of the tolerance used
    bodies.body_1.probe_lateral_stress_MPa{"value": -1096.70326293, "rel_tol": 1e-06}
    edge_tension_MPa182.784 ± 0.00018182.784lockedunder 0.01 % of the tolerance used
  2. r0002Hertz parallel cylinders R 10 and 20 mm, steel on aluminium (70 GPa, nu 0.33), 1000 N over 10 mm: closed forms R = R1R2/(R1+R2), b = sqrt(4FR/(pi L E*)), p0 = 2F/(pi b L), pm = F/(2bL), centre surface stress -p0 (Johnson 1985 eqs 4.43-4.45); rel 1e-6passed

    effective_modulus_GPa58.6052 ± 5.9e-0558.6052lockedunder 0.01 % of the tolerance used
    effective_radius_mm6.66667 ± 6.7e-066.66667lockedunder 0.01 % of the tolerance used
    contact_half_width_mm0.120349 ± 1.2e-070.120349lockedunder 0.01 % of the tolerance used
    peak_pressure_MPa528.979 ± 0.00053528.979lockedunder 0.01 % of the tolerance used
    mean_pressure_MPa415.459 ± 0.00042415.459lockedunder 0.01 % of the tolerance used
    bodies.body_1.probe_lateral_stress_MPa{"value": -528.979395243, "rel_tol": 1e-06}
  3. r0003Line contact largest shear, exact: d/dz of z(1 - z/sqrt(1+z^2)) = 0 gives z^4 + z^2 = 1, so depth = phi^(-1/2) b = 0.786151378 b and shear = phi^(-5/2) p0 = 0.300283106 p0 (Johnson 1985 eq 4.47 with plane strain, nu 0.3); rel 1e-6passed

    max_shear_over_p00.300283 ± 3e-070.300283lockedunder 0.01 % of the tolerance used
    max_shear_depth_ratio0.786151 ± 7.9e-070.786151locked0.18 % of the tolerance used
    approach_mm= lockedexact match
  4. r0004Sphere on sphere, two 12.7 mm balls, 500 N: R = R1/2 and the point closed forms (Johnson 1985 eqs 4.22-4.23); largest shear 0.31 p0 at 0.48 a for nu 0.3 (Johnson 1985 sec 3.4, quoted to 2 digits so abs 0.005)passed

    effective_radius_mm6.35 ± 6.3e-066.35lockedunder 0.01 % of the tolerance used
    contact_radius_mm0.274296 ± 2.7e-070.274296lockedunder 0.01 % of the tolerance used
    peak_pressure_MPa3173.02 ± 0.00323173.02lockedunder 0.01 % of the tolerance used
    approach_mm0.0118485 ± 1.2e-080.0118485lockedunder 0.01 % of the tolerance used
    max_shear_over_p00.31 ± 0.0050.310021locked0.41 % of the tolerance used
    max_shear_depth_ratio0.48 ± 0.0050.480864locked17 % of the tolerance used
  5. r0005First yield of a roller, steel on steel, 1000 N over 10 mm, nu 0.3: p0 = 606.037 MPa (closed form, eq 4.45) and von Mises yield starts at p0 = 1.79 Y (Johnson 1985 sec 6.2, quoted to 3 digits: abs 0.005, so margins rel 0.3 % and yield load, which goes as margin^2, rel 0.6 %). Body 1 Y 400 MPa: margin 1.18, elastic; body 2 Y 300 MPa: margin 0.886, yields at F (1.79 Y/p0)^2 = 785.1 Npassed

    peak_pressure_MPa606.037 ± 0.00061606.037lockedunder 0.01 % of the tolerance used
    bodies.body_1.yield_onset_p0_over_yield{"value": 1.79, "abs_tol": 0.005}
    bodies.body_1.yield_margin{"value": 1.18144635, "rel_tol": 0.003}
    bodies.body_2.yield_margin{"value": 0.886084763, "rel_tol": 0.003}
    bodies.body_1.yield_check= elasticmisseddiffers
    bodies.body_2.yield_check= yieldsmisseddiffers
    yield_load_N785.146 ± 4.7788.369locked68 % of the tolerance used
    yield_check= yieldsyieldslockedexact match
    all_ok= falsefalselockedexact match
5 of 5 cases passed · sandbox macos-seatbeltrecorded from the kernel in a fresh lab

Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.

Inputs

NameUnitDefaultMeaning
geometrysphere_on_flatPoint contact (sphere_*) or line contact (cylinder_on_flat, parallel_cylinders with parallel axes).
force_NN100.0Normal load pressing the bodies together (for a line contact, the load over the whole length).
radius1_mmmm10.0Radius of body 1, the convex ball or roller.
radius2_mmmm10.0Radius of body 2 (sphere_on_sphere, parallel_cylinders only); negative for a cup or groove, which must be wider than body 1.
length_mmmm10.0Length of the line of contact (line contact only).
modulus1_GPaGPa210.0Young's modulus of body 1.
modulus2_GPaGPa210.0Young's modulus of body 2 (the flat, for *_on_flat).
poisson110.3
poisson210.3
yield1_MPaMPa0.0Yield strength of body 1 for the first-yield check; 0 skips it.
yield2_MPaMPa0.0Yield strength of body 2 for the first-yield check; 0 skips it.
probe_depth_mmmm0.0Depth below the surface, on the load axis, where the stresses are also reported.
small_contact_limit10.1Largest contact size over the smallest radius accepted before warning that Hertz's half-space assumption is strained.

Readings

NameUnitMeaning
geometryText: the geometry solved.
contact_typeText: point (circle) or line (strip).
effective_modulus_GPaGPaE*: 1/E* = (1-nu1^2)/E1 + (1-nu2^2)/E2.
effective_radius_mmmmR: 1/R = 1/R1 + 1/R2.
contact_radius_mmmma, point contact only.
contact_half_width_mmmmb, line contact only.
contact_size_mmmma or b.
contact_area_mm2mm^2
peak_pressure_MPaMPa
mean_pressure_MPaMPa
approach_mmmmApproach of distant points, a^2/R; null for a line contact, where it depends on the bulk shape.
stiffness_N_per_mmN/mmContact stiffness dF/d(approach) = 2 E* a; null for a line contact.
max_shear_MPaMPaLargest shear (Tresca) on the load axis, worse of the two bodies.
max_shear_depth_mmmm
max_shear_over_p01
max_shear_depth_ratio1Depth over a or b.
max_shear_bodyText: body_1 or body_2.
max_von_mises_MPaMPa
max_von_mises_depth_mmmm
max_von_mises_over_p01
max_von_mises_bodyText: body_1 or body_2.
edge_tension_MPaMPaRadial tension at the edge of the contact circle, (1-2 nu) p0 / 3; null for a line contact.
probe_depth_mmmm
probe_depth_ratio1
probe_axial_stress_MPaMPa
size_ratio1
small_contact_oktrue when size_ratio is at or below small_contact_limit.
yield_checkText: elastic, yields, or not checked (no yield strength given).
min_yield_margin1
yield_load_NNLoad at which the first body starts to yield below the surface (von Mises).
bodies
all_oktrue when there is no warning: the contact is small, and no body with a yield strength given yields.
warningsOne line per body that yields, and one if the contact is not small.
notesAssumptions of the run, in words.

Try the call

Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.

Terminal
MCP call