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
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 usedcontact_radius_mm0.186626 ± 1.9e-070.186626lockedunder 0.01 % of the tolerance usedpeak_pressure_MPa1370.88 ± 0.00141370.88lockedunder 0.01 % of the tolerance usedmean_pressure_MPa913.919 ± 0.00091913.919lockedunder 0.01 % of the tolerance usedapproach_mm0.00348291 ± 3.5e-090.00348291lockedunder 0.01 % of the tolerance usedstiffness_N_per_mm43067.4 ± 0.04343067.4lockedunder 0.01 % of the tolerance usedbodies.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 usedr0002Hertz 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 usedeffective_radius_mm6.66667 ± 6.7e-066.66667lockedunder 0.01 % of the tolerance usedcontact_half_width_mm0.120349 ± 1.2e-070.120349lockedunder 0.01 % of the tolerance usedpeak_pressure_MPa528.979 ± 0.00053528.979lockedunder 0.01 % of the tolerance usedmean_pressure_MPa415.459 ± 0.00042415.459lockedunder 0.01 % of the tolerance usedbodies.body_1.probe_lateral_stress_MPa{"value": -528.979395243, "rel_tol": 1e-06}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 usedmax_shear_depth_ratio0.786151 ± 7.9e-070.786151locked0.18 % of the tolerance usedapproach_mm= lockedexact matchr0004Sphere 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 usedcontact_radius_mm0.274296 ± 2.7e-070.274296lockedunder 0.01 % of the tolerance usedpeak_pressure_MPa3173.02 ± 0.00323173.02lockedunder 0.01 % of the tolerance usedapproach_mm0.0118485 ± 1.2e-080.0118485lockedunder 0.01 % of the tolerance usedmax_shear_over_p00.31 ± 0.0050.310021locked0.41 % of the tolerance usedmax_shear_depth_ratio0.48 ± 0.0050.480864locked17 % of the tolerance usedr0005First 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 usedbodies.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= elasticmisseddiffersbodies.body_2.yield_check= yieldsmisseddiffersyield_load_N785.146 ± 4.7788.369locked68 % of the tolerance usedyield_check= yieldsyieldslockedexact matchall_ok= falsefalselockedexact match
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
| Name | Unit | Default | Meaning |
|---|---|---|---|
geometry | sphere_on_flat | Point contact (sphere_*) or line contact (cylinder_on_flat, parallel_cylinders with parallel axes). | |
force_N | N | 100.0 | Normal load pressing the bodies together (for a line contact, the load over the whole length). |
radius1_mm | mm | 10.0 | Radius of body 1, the convex ball or roller. |
radius2_mm | mm | 10.0 | Radius of body 2 (sphere_on_sphere, parallel_cylinders only); negative for a cup or groove, which must be wider than body 1. |
length_mm | mm | 10.0 | Length of the line of contact (line contact only). |
modulus1_GPa | GPa | 210.0 | Young's modulus of body 1. |
modulus2_GPa | GPa | 210.0 | Young's modulus of body 2 (the flat, for *_on_flat). |
poisson1 | 1 | 0.3 | |
poisson2 | 1 | 0.3 | |
yield1_MPa | MPa | 0.0 | Yield strength of body 1 for the first-yield check; 0 skips it. |
yield2_MPa | MPa | 0.0 | Yield strength of body 2 for the first-yield check; 0 skips it. |
probe_depth_mm | mm | 0.0 | Depth below the surface, on the load axis, where the stresses are also reported. |
small_contact_limit | 1 | 0.1 | Largest contact size over the smallest radius accepted before warning that Hertz's half-space assumption is strained. |
Readings
| Name | Unit | Meaning |
|---|---|---|
geometry | Text: the geometry solved. | |
contact_type | Text: point (circle) or line (strip). | |
effective_modulus_GPa | GPa | E*: 1/E* = (1-nu1^2)/E1 + (1-nu2^2)/E2. |
effective_radius_mm | mm | R: 1/R = 1/R1 + 1/R2. |
contact_radius_mm | mm | a, point contact only. |
contact_half_width_mm | mm | b, line contact only. |
contact_size_mm | mm | a or b. |
contact_area_mm2 | mm^2 | |
peak_pressure_MPa | MPa | |
mean_pressure_MPa | MPa | |
approach_mm | mm | Approach of distant points, a^2/R; null for a line contact, where it depends on the bulk shape. |
stiffness_N_per_mm | N/mm | Contact stiffness dF/d(approach) = 2 E* a; null for a line contact. |
max_shear_MPa | MPa | Largest shear (Tresca) on the load axis, worse of the two bodies. |
max_shear_depth_mm | mm | |
max_shear_over_p0 | 1 | |
max_shear_depth_ratio | 1 | Depth over a or b. |
max_shear_body | Text: body_1 or body_2. | |
max_von_mises_MPa | MPa | |
max_von_mises_depth_mm | mm | |
max_von_mises_over_p0 | 1 | |
max_von_mises_body | Text: body_1 or body_2. | |
edge_tension_MPa | MPa | Radial tension at the edge of the contact circle, (1-2 nu) p0 / 3; null for a line contact. |
probe_depth_mm | mm | |
probe_depth_ratio | 1 | |
probe_axial_stress_MPa | MPa | |
size_ratio | 1 | |
small_contact_ok | true when size_ratio is at or below small_contact_limit. | |
yield_check | Text: elastic, yields, or not checked (no yield strength given). | |
min_yield_margin | 1 | |
yield_load_N | N | Load at which the first body starts to yield below the surface (von Mises). |
bodies | ||
all_ok | true when there is no warning: the contact is small, and no body with a yield strength given yields. | |
warnings | One line per body that yields, and one if the contact is not small. | |
notes | Assumptions 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.