S–N curve models¶
An S–N curve maps stress range to cycles to failure. In each Basquin segment, \(N=10^b(\Delta\sigma)^{-m}\), where \(b\) is the base-ten intercept and \(m\) is the positive inverse slope. The curve's stress units must match the material coefficients and counted spectrum.
When two adjacent segments have \((b_i,m_i)\) and \((b_{i+1},m_{i+1})\), their intersection satisfies
Given two knee pairs \((\Delta\sigma_i,N_i)\) and \((\Delta\sigma_{i+1},N_{i+1})\), recover the inverse slope as \(m_i=(\log_{10}N_{i+1}-\log_{10}N_i)/ (\log_{10}\Delta\sigma_i-\log_{10}\Delta\sigma_{i+1})\), then compute \(b_i=\log_{10}N_i+m_i\log_{10}\Delta\sigma_i\). A finite endurance \(N_e\) on the final branch corresponds to \(\Delta\sigma_e=10^{(b_\mathrm{last}-\log_{10}N_e)/m_\mathrm{last}}\). See the glossary entry for S–N curves.
DNV-RP-C203¶
Choose the tabulated detail class, environment and applicable edition. Enter the slopes and log intercepts explicitly. The metadata fields label an analysis. Apply any required thickness and environment adjustments specified for the detail.
Multi-slope¶
Pass paired arrays of slopes and intercepts. The adjacent lines intersect at the transition between branches.
Knee points¶
Pass corresponding stress ranges and lives to
SNCurve.from_knee_points. It interpolates each consecutive pair
in log–log space.
Fatigue limit¶
Set endurance to a finite cycle count only where
the model calls for a fatigue limit. Use get_stress(endurance) to
find the corresponding range. The finite-slope branch applies at the
boundary, subject to numerical rounding. get_cycles returns infinity
when the Basquin life exceeds endurance.
Worked example¶
from py_fatigue import SNCurve
# B1 free-corrosion coefficients from the repository's DNV example.
dnv = SNCurve(3, 12.436, norm="DNV-RP-C203", curve="B1", environment="Free corrosion")
multi = SNCurve([3, 5], [11.764, 15.606])
knees = SNCurve.from_knee_points(
knee_stress=[150.0, 86.0, 56.0],
knee_cycles=[207_880, 963_397, 7_525_202],
endurance=7_525_202,
)
fig, ax = dnv.plot()
multi.plot(ax=ax)
knees.plot(ax=ax)
print(knees.get_stress(knees.endurance))
print(knees.get_cycles([50.0, 80.0, 120.0]))
When two adjacent segments have \((b_i,m_i)\) and \((b_{i+1},m_{i+1})\), their intersection satisfies
Given two knee pairs \((\Delta\sigma_i,N_i)\) and \((\Delta\sigma_{i+1},N_{i+1})\), recover the inverse slope as \(m_i=(\log_{10}N_{i+1}-\log_{10}N_i)/ (\log_{10}\Delta\sigma_i-\log_{10}\Delta\sigma_{i+1})\), then compute \(b_i=\log_{10}N_i+m_i\log_{10}\Delta\sigma_i\). A finite endurance \(N_e\) on the final branch corresponds to \(\Delta\sigma_e=10^{(b_\mathrm{last}-\log_{10}N_e)/m_\mathrm{last}}\). See the glossary entry for S–N curves.
DNV-RP-C203¶
The B1 free-corrosion example enters one slope and intercept. Use the tabulated values for the design detail and environment. Detail-class parameters.
Multi-slope¶
The second curve overlays two Basquin segments. Read the knee where the two lines meet. Multi-slope construction.
Knee points¶
The third curve passes through the three supplied stress–life pairs. Between knees it follows a power law. Knee-point construction.
Fatigue limit¶
The final knee specifies an endurance range of 56 MPa. A range of 50 MPa gives infinite life under this curve. Fatigue-limit behavior.
Check the S–N API for inversion, knee coordinates and plotting options. Check the source data before using example coefficients. DNV-RP-C203.