material
A material's properties with the source of every value, and a design endurance limit derived as a run. action=library: a built-in material from open sources only (MIL-HDBK-5J, NASA TN D-2899), values as printed with document, table and page, converted exactly to SI. action=record: a property set from outside the library with its source (URL or document, where, date read, trust), validated and journalled, so a design cites the run instead of a typed number. action=endurance: the endurance limit of the part as made from a test value: Goodman mean-stress conversion, life change (Basquin slope, flat, or a stated factor), surface, size, loading, temperature, other and reliability factors (normal distribution), each with its formula or source. Readings feed other instruments: @run:E_Pa (strip), @run:arm_material (arm), @run:ultimate_MPa, @run:yield_MPa, @run:design.endurance_MPa (fatigue).
- Field
- Mechanics, CAD and finite elements
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 1 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001library read-back: AISI 301 full hard, A basis, L: MIL-HDBK-5J Table 2.7.1.0(b) p. 2-223 prints Ftu 174 ksi, E 26.0e3 ksi, mu 0.27, w 0.286 lb/in3; exact conversionpassed
ultimate_MPa1199.69 ± 1.2e-101199.69lockedunder 0.01 % of the tolerance usedE_GPa179.264 ± 1.8e-11179.264lockedunder 0.01 % of the tolerance useddensity_kg_m37916.45 ± 7.9e-107916.45locked0.11 % of the tolerance usedpoisson0.27 ± 2.7e-160.27lockedunder 0.01 % of the tolerance usedvalues.ultimate.printed= 174misseddiffersvalues.ultimate.printed_unit= ksimisseddiffersvalues.E.where= Table 2.7.1.0(b), p. 2-223 (PDF p. 277)misseddifferssource.statement= Cover: 'DISTRIBUTION STATEMENT A. Approved for public release; distribution is unlimited.' Work of the US Government.misseddiffersr0002library read-back: 6061-T6 drawn tube, MIL-HDBK-5J Table 3.6.2.0(c1) p. 3-267: Fty 35 ksi (S basis), E 9.9e3 ksi, w 0.098 lb/in3, as the arm's material objectpassed
arm_material.yield_Pa{"value": 241316505.26089263, "rel_tol": 1e-13}arm_material.E_Pa{"value": 68258097202.36677, "rel_tol": 1e-13}arm_material.density_kg_m3{"value": 2712.6306615999065, "rel_tol": 1e-13}values.yield.basis= Smisseddiffersvalues.yield.where= Table 3.6.2.0(c1), p. 3-267 (PDF p. 569)misseddiffersr0003library read-back: Ti-6Al-4V annealed sheet and 7075-T6 sheet, MIL-HDBK-5J Tables 5.4.1.0(b) p. 5-53 (E 16.0e3 ksi, Fty A L 126 ksi) and 3.7.6.0(b1) p. 3-371passed
E_GPa110.316 ± 1.1e-11110.316lockedunder 0.01 % of the tolerance usedyield_MPa868.739 ± 8.7e-11868.739locked0.13 % of the tolerance useddensity_kg_m34428.78 ± 4.4e-094428.78lockedunder 0.01 % of the tolerance usedvalues.E.where= Table 5.4.1.0(b), p. 5-53 (PDF p. 945)misseddiffersr0004library read-back: 7075-T6 sheet 0.040-0.125 in, B basis, LT: Ftu 80 ksi, Fty 71 ksi (MIL-HDBK-5J Table 3.7.6.0(b1), p. 3-371)passed
ultimate_MPa551.581 ± 5.5e-11551.581locked0.21 % of the tolerance usedyield_MPa489.528 ± 4.9e-11489.528locked0.12 % of the tolerance usedvalues.yield.printed= 71misseddiffersr00056061-T6 S-N law of MIL-HDBK-5J Fig. 3.6.2.2.8 (p. 3-289): log N = 20.68 - 9.84 log Seq, Seq = Smax (1-R)^0.63; at 1e7 cycles, R = -1: Sa = 10^(13.68/9.84)/2^0.63 ksipassed
fatigue.amplitude_MPa{"value": 109.4243531652711, "rel_tol": 1e-12}fatigue.basquin_k= 9.84misseddiffersr0006NASA TN D-2899 Table IV(d) transcribed: 35 unnotched AISI 301 points, 5 run-outs, every printed MN/m2 within 1.1 of ksi x 6.894757passed
fatigue.count= 35misseddiffersfatigue.runouts= 5misseddiffersfatigue.rows_consistent= truemisseddiffersultimate_MPa1489.27 ± 1.5e-101489.27locked0.15 % of the tolerance usedr0007exact unit conversions on a record (synthetic values): 100 ksi = 689.4757293168361 MPa, 10 Msi = 68.94757293168361 GPa, 0.1 lb/in3 = 2767.9904710203125 kg/m3 (lbf, in, lb exact); low trust flaggedpassed
ultimate_MPa689.476 ± 6.9e-12689.476locked1.6 % of the tolerance usedE_GPa68.9476 ± 6.9e-1368.9476lockedunder 0.01 % of the tolerance useddensity_kg_m32767.99 ± 2.8e-112767.99lockedunder 0.01 % of the tolerance usedlow_trust= truetruelockedexact matchok= falsefalselockedexact matchr0008reliability factor from the normal distribution: z at 99 % = 2.326 (standard normal tables, NIST/SEMATECH e-Handbook 1.3.6.7.1); k_e = 1 - 0.08 z = 0.814 (Shigley 8th ed. Table 6-6, printed in Example 7-1)passed
z_R2.326 ± 0.00052.32635locked70 % of the tolerance usedk_reliability0.814 ± 0.00050.813892locked22 % of the tolerance useddesign.endurance_MPa{"value": 81.4, "abs_tol": 0.05}r0009reliability 99.9 %: z = 3.090 (standard normal tables, NIST/SEMATECH e-Handbook 1.3.6.7.1)passed
z_R3.09 ± 0.00053.09023locked46 % of the tolerance usedr0010published worked example: Budynas and Nisbett, Shigley's Mechanical Engineering Design, 8th ed., Example 7-1 (pp. 358-359): S_ut 105 kpsi machined 1.100 in shaft, 99 %: k_a 0.787, k_b 0.870, k_e 0.814, Se 29.3 kpsi. The book multiplies the factors already rounded to 3 digits (0.787 x 0.870 x 0.814 x 52.5 = 29.26); unrounded the chain gives 29.25, so Se is held to the book's rounding: 3 factors at +-0.0005 (+-0.06 kpsi) plus the final digit (+-0.05)passed
k_surface0.787 ± 0.00050.78659locked82 % of the tolerance usedk_size0.87 ± 0.00050.870208locked42 % of the tolerance usedk_reliability0.814 ± 0.00050.813892locked22 % of the tolerance useddesign.endurance{"value": 29.3, "abs_tol": 0.11}r0011Goodman mean-stress conversion and Basquin life change, closed form: 100 MPa at mean 250, S_ut 1000 -> 133.33 fully reversed; 1e6 -> 1e8 cycles with k = 10: x 100^-0.1passed
k_mean_stress1.33333 ± 1.3e-141.33333lockedunder 0.01 % of the tolerance usedk_life0.630957 ± 6.3e-140.630957locked0.35 % of the tolerance useddesign.endurance_MPa{"value": 84.12764593069244, "rel_tol": 1e-13}r0012assumed factors are flagged: a size factor given as an assumption puts a warning on the run (ok false), value as givenpassed
k_size0.9 ± 9e-160.9lockedunder 0.01 % of the tolerance usedok= falsefalselockedexact matchdesign.endurance_MPa{"value": 90, "rel_tol": 1e-14}r0013SI forms of the surface and size factors agree with the kpsi/inch forms: 710 MPa machined k_a = 4.51 x 710^-0.265 = 0.792, 32 mm rotating k_b = (32/7.62)^-0.107 = 0.858 (Shigley 8th ed. solutions manual, Problem 7-7, quoted in a search result; not read on a page)passed
k_surface0.792 ± 0.00050.791759locked48 % of the tolerance usedk_size0.858 ± 0.00050.857666locked67 % of the tolerance used
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 |
|---|---|---|---|
action | library (default when material is given), list, record, endurance. | ||
material | library: the material id (action list shows them), e.g. aisi301-full-hard, 6061-T6-drawn-tube. | ||
basis | A | library: design basis wanted (A, B; S-basis or typical tables give what they print). | |
direction | L | library: grain direction wanted (L, LT). | |
fatigue_cycles | 1 | 10000000 | library: life at which to read an S-N law. |
stress_ratio | 1 | -1 | library: stress ratio R at which to read an S-N law. |
name | record: the material's name. | ||
condition | record: temper or condition. | ||
properties | record: {property: {value, unit as printed, where?, basis?, direction?}}; properties ultimate, yield, E, Ec, G, poisson, density, elongation. | ||
fatigue | record: a fatigue test value: {amplitude: {value, unit}, mean?: {value, unit}, cycles, survival (0.5 = median), loading: bending|axial|torsion, where?, conditions?}. | ||
source | record: {url or document, where, date_read YYYY-MM-DD, trust: high|medium|low, note}. | ||
test | endurance: the test value: a record's fatigue_test ("@run:fatigue_test") or {amplitude, mean?, cycles, survival, loading, source, trust?} in stress_unit. | ||
estimate_from_ultimate | endurance, steels: S'e = 0.5 S_ut (S_ut up to 1400 MPa) in place of a test value. | ||
ultimate | endurance: the part's tensile strength, in stress_unit (for a test with a mean stress, a machined surface, or the estimate). | ||
stress_unit | MPa | ||
life_cycles | 1 | endurance: the part's life; default the test's. | |
life | endurance, when the life differs from the test's: {method: basquin, k, source} | {method: flat, source} | {method: factor, value, source}; assumption: true marks an unsourced step. | ||
reliability | 1 | endurance: survival probability wanted (0.99); default the test's. | |
cov | 1 | 0.08 | endurance: coefficient of variation of the endurance strength. |
surface | endurance: as_tested | {method: machined} | {method: factor, value, source}. | ||
size | endurance: as_tested | {method: round_rotating, d_mm or d_in} | {method: factor, value, source}. | ||
loading | endurance: as_tested | {method: factor, value, source}. | ||
temperature | endurance: as_tested | {method: factor, value, source}. | ||
other | endurance: as_tested | {method: factor, value, source}. |
Readings
| Name | Unit | Meaning |
|---|---|---|
E_Pa | Pa | |
E_GPa | GPa | |
density_kg_m3 | kg/m^3 | |
poisson | 1 | |
yield_MPa | MPa | |
ultimate_MPa | MPa | |
arm_material | the arm instrument's material object | |
values | each property: value (SI), printed value and unit, basis, direction, source, where | |
fatigue_test | record: the test value, for action endurance | |
design | endurance: endurance_MPa, endurance_Pa, life_cycles, reliability, total_factor | |
factors | endurance: each factor with its formula and source | |
G_Pa | Pa | |
G_GPa | GPa | |
Ec_Pa | Pa | |
Ec_GPa | GPa | |
ultimate_Pa | Pa | |
yield_Pa | Pa | |
elongation_pct | % | |
fatigue | ||
k_e | 1 | |
k_life | 1 | |
k_loading | 1 | |
k_mean_stress | 1 | |
k_other | 1 | |
k_reliability | 1 | |
k_size | 1 | |
k_surface | 1 | |
k_temperature | 1 | |
z_R | 1 |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.