Crack growth analysis¶
Supply the loading history as ordered blocks with minimum and maximum
tensile stress and a cycle count. At accepted states the solver records
the crack dimensions and each tip's intensity. spectrum_exhausted
means the supplied history ended. At a toughness or geometry stop,
the history gives the last accepted point. To estimate additional life,
extend the schedule with a justified future load sequence.
For each ordered load block and active crack-front coordinate \(a_i\), evaluate the case-specific opening intensity at both extremes,
A geometry can use another front dimension in the reference factor.
Use its documented convention for \(Y_i\) rather than applying the square
root twice when calling stress_intensity(). A Paris, Walker, piecewise
Paris or NASGRO curve and the current geometry define \(da_i/dN\).
Conceptually the advance over
a trial increment is \(\Delta a_i\approx (da_i/dN)\Delta N\).
The integrator compares a full step with two half steps and reduces the
step when the crack-size tolerance requires it. A block change can
cause an immediate jump in \(K\) at the same crack size.
Worked example¶
from py_fatigue.crack_growth import LoadBlock, simulate_crack_growth
from py_fatigue.geometry.plate import CenterThroughCrack
from py_fatigue.material.crack_growth_curve import NasgroCurve
crack = CenterThroughCrack(half_width=50, half_length=5)
curve = NasgroCurve(
coefficient=1e-10, exponent=2, p=0.5, q=1, threshold_zero=25,
threshold_fanning=0, toughness=500, constraint=2, peak_to_flow=0.3,
)
loads = [LoadBlock(0, 40, 850), LoadBlock(10, 50, 1000)]
controls = dict(
max_cycle_step=1.0, length_tolerance=1e-6,
cycle_tolerance=1e-4, max_trials=25_000,
)
result = simulate_crack_growth(crack, curve, loads, **controls)
print(result.termination, result.final_cycles, result.history[-1].sizes)
forecast = simulate_crack_growth(
crack, curve, [*loads, LoadBlock(10, 120, 20_000)], **controls
)
print(forecast.termination, forecast.final_cycles - result.final_cycles)
fig, ax = crack.plot(result=forecast)
The initial two blocks supply 1,850 cycles. The illustrative continuation cycles between 10 and 120 MPa. Subtract the observed cycles from the forecast's final accepted cycle estimate, and confirm that the returned termination is toughness before interpreting it as remaining life. The estimate is conditional on that continuation.
More crack growth examples embeds the longer load history and the through- and surface-crack comparisons.