Research / Fracture and damage

Phase-field fracture of a notched plate

After Nathan Shauer,“Less than 500 lines self-contained Python finite element implementation of the phase-field method for fracture mechanics”, Advances in Engineering Software (2025), doi:10.1016/j.advengsoft.2025.104013.

Against the author’s code
30 of 30 checks pass· see the checks
Against the paper’s figures
Compared with the author's Python reference outputs at commit 61037c6 and the 1D AT2 bar solution. The plots show our solver's results; the force plot also includes the Python reference. These comparisons do not establish agreement with figures printed in the article.

Research, not a design tool. Nothing here is an engineering result.

A square plate with a notch from its left edge to the centre is pulled apart at the top. The AT2 phase-field model represents the crack as a damage field d between 0 (intact) and 1 (broken), smeared over a length ℓ. The experiment pane runs the Stabileo Rust implementation in Stabileo’s viewer; the orange curve is what the author’s Python code computed.

What the paper shows

The reference repository provides a Python finite-element implementation of AT2 fracture with three examples: a tensile bar, a notched plate and three-point bending. The method and comparisons on this page refer to that code at commit 61037c6.

In the replay the damage grows smoothly ahead of the notch while rises almost linearly at first, then softens toward ; at the next increment , after , and the force drops to almost zero. shows the open crack on the deformed plate.

The model

Displacement u and damage d are both bilinear on quadrilaterals, integrated with 2×2 Gauss points; plane strain, small strain, quasi-static loading.

  • Elasticity at fixed d: div(g(d) C : ε(u)) = 0 with g(d) = (1 − d)², applied to the whole stress.
  • Damage (AT2) at fixed u: (Gc/ℓ + 2H) d − Gc ℓ Δd = 2H.
  • Driving energy: H = ψ+ = ½ Σ σi εi over the positive principal strains, with σi the undamaged principal stresses. This reference-code hybrid split degrades the whole elastic stress. In mixed strain states a positive principal strain can pair with negative stress, giving negative driving energy and potentially negative damage. History mode clamps the driving energy to its nonnegative previous maximum; it does not impose nodal damage bounds.
  • Alternating solution per load step: solve u with the current d, then d with the new u, until the elasticity residual ‖K(d)u − f‖ falls below 10−5.
  • Irreversibility: none in the reference code; damage is recomputed from the current energy and is not bounded by 1. to keep it on unloading (not in the reference).

Units are kN and mm. The 1D uniaxial-stress AT2 estimate σc = √(27 E Gc / 256 ℓ) ≈ 2.82 kN/mm² here, so ℓ behaves as a strength as much as a regularisation length: and the peak load falls. The mesh matters too: the crack band needs elements a few times smaller than ℓ; .

How we reproduced it

  1. The author’s code (commit 61037c6, MIT licence) was run unmodified for its three examples in Python 3.12.15 with numpy 2.1.3 and scipy 1.14.1; every step’s force, iteration count, residual and damage range, and nodal fields at chosen steps, were saved with a manifest of versions and checksums.
  2. The Rust implementation regenerates the same meshes (bit-identical), applies the same boundary conditions, loop and stopping rule, and solves with the Stabileo engine’s sparse Cholesky factorisation.
  3. 30 named checks compare the two, each with a stated tolerance, in continuous integration. The browser bundle and the replay on this page are checked separately against the native build.

Comparison with the reference

30 validation checks run in CI, each with its tolerance
CheckObservedToleranceResult
1 · Mesh fingerprintsequal—
Exact
✓ pass
1 · Load-step countequal—
Exact
✓ pass
1 · Iterations at every stepequal—
Exact
✓ pass
1 · Maximum damage at every step8.3 × 10−121 × 10−9
Relative difference
✓ pass
1 · Centre stress at every step1.1 × 10−121 × 10−9
|Δσ| / σc
✓ pass
1 · Nodal damage · step 504.5 × 10−101 × 10−8
max |Δd|
✓ pass
1 · Nodal damage · step 733.8 × 10−101 × 10−8
max |Δd|
✓ pass
1 · Nodal displacement · step 501.6 × 10−101 × 10−8
max |Δu| / max |u|
✓ pass
1 · Centre stress / 1D AT2 solution, max d < 0.257.3 × 10−51 × 10−3
|Δσ| / σc
✓ pass
2 · Mesh fingerprintsequal—
Exact
✓ pass
2 · Load-step countequal—
Exact
✓ pass
2 · Iterations at every stepequal—
Exact
✓ pass
2 · Peak-force stepequal—
Exact
✓ pass
2 · Peak force1.2 × 10−121 × 10−9
Relative difference
✓ pass
2 · Force through the peak1.6 × 10−121 × 10−9
Relative difference
✓ pass
2 · Maximum damage through the peak4.2 × 10−121 × 10−9
Relative difference
✓ pass
2 · Force including fracture2.2 × 10−71 × 10−5
|ΔF| (kN)
✓ pass
2 · Nodal damage · step 565 × 10−111 × 10−8
max |Δd|
✓ pass
2 · Nodal displacement · step 568.5 × 10−111 × 10−8
max |Δu| / max |u|
✓ pass
2 · Nodal damage, reference or mirror · step 572.9 × 10−51 × 10−4
max |Δd|
✓ pass
2 · Nodal damage, reference or mirror · step 783.1 × 10−101 × 10−8
max |Δd|
✓ pass
3 · Mesh fingerprintsequal—
Exact
✓ pass
3 · Load-step countequal—
Exact
✓ pass
3 · Iterations at every stepequal—
Exact
✓ pass
3 · Peak-force stepequal—
Exact
✓ pass
3 · Force through the peak4 × 10−111 × 10−9
Relative difference
✓ pass
3 · Force including fracture1 × 10−61 × 10−4
|ΔF| (kN)
✓ pass
3 · Nodal damage · step 566.9 × 10−111 × 10−8
max |Δd|
✓ pass
3 · Nodal displacement · step 561.1 × 10−101 × 10−8
max |Δu| / max |u|
✓ pass
3 · Nodal damage, reference or mirror · step 984.1 × 10−101 × 10−8
max |Δd|
✓ pass

The crack may choose either side of the notch plane through round-off. The final damage difference against the mirrored reference is 3.09 × 10−10. The thresholds in the table are comparison tolerances, not mathematical error bounds. Displacement fields are compared at example 1 step 50, example 2 step 56, and example 3 step 56. The damage tolerance at step 57 is 1e-4 because the crack jumps through the plate in one increment; the settled fields use 1e-8. These are comparison thresholds, not error bounds.

Step table (79 steps)
steptop displacement u (mm)Force F (kN)iterationsresidualMaximum damageElastic energy (kN·mm)Fracture energy Gc·Γ (kN·mm)reference F, kN
00.000100.0134528712.8 × 10−80.00010.00000067264070.0000000000050202090.01345287
10.000200.0269047511.7 × 10−70.00040.0000026904420.000000000080319080.02690475
20.000300.0403544314.3 × 10−70.00090.000006053040.00000000040659960.04035443
30.000400.053800717.9 × 10−70.00160.000010759830.0000000012850250.0538007
40.000500.0672423611.3 × 10−60.00240.000016809970.0000000031372370.06724236
50.000600.0806781911.9 × 10−60.00350.000024202360.0000000065054090.08067819
60.000700.0941069812.6 × 10−60.00480.000032935680.000000012052320.09410698
70.000800.107527513.4 × 10−60.00630.000043008350.000000020561450.1075275
80.000900.120938614.4 × 10−60.00790.000054418560.000000032937140.1209386
90.001000.13433915.5 × 10−60.00980.000067164250.000000050204770.134339
100.001100.147727616.7 × 10−60.01190.000081243110.000000073510960.1477276
110.001200.16110318 × 10−60.01420.00009665260.00000010412380.161103
120.001300.174464219.4 × 10−60.01660.00011338990.00000014343340.1744642
130.001400.187788723.5 × 10−70.01940.00013145190.00000019315420.1877887
140.001500.201114324.5 × 10−70.02230.00015083540.00000025460240.2011143
150.001600.214421825.9 × 10−70.02550.0001715370.00000032967980.2144218
160.001700.227709827.6 × 10−70.02890.00019355270.00000042027490.2277098
170.001800.240977129.6 × 10−70.03240.00021687860.00000052840130.2409771
180.001900.254222621.2 × 10−60.03620.00024151040.00000065619950.2542226
190.002000.26744521.5 × 10−60.04030.00026744360.00000080593770.267445
200.002100.280642921.8 × 10−60.04460.00029467340.00000098001270.2806429
210.002200.293815322.2 × 10−60.04910.00032319460.0000011809520.2938153
220.002300.306960822.7 × 10−60.05390.00035300220.0000014114150.3069608
230.002400.320078223.2 × 10−60.05890.00038409040.0000016741960.3200782
240.002500.333166223.8 × 10−60.06410.00041645350.0000019722250.3331662
250.002600.346223524.5 × 10−60.06970.00045008540.000002308570.3462235
260.002700.359248925.3 × 10−60.07550.00048497970.0000026864450.3592489
270.002800.37224126.1 × 10−60.08160.00052112980.0000031092060.372241
280.002900.385198627.1 × 10−60.08800.00055852880.0000035803610.3851986
290.003000.398120328.3 × 10−60.09470.00059716940.0000041035720.3981203
300.003100.411004829.6 × 10−60.10170.00063704430.0000046826620.4110048
310.003200.423841132 × 10−60.10920.00067814360.0000053236620.4238411
320.003300.436645632.4 × 10−60.11680.00072046250.0000060272120.4366456
330.003400.449408632.9 × 10−60.12490.00076399130.0000067992720.4494086
340.003500.462128633.5 × 10−60.13330.00080872090.0000076444220.4621286
350.003600.474804134.3 × 10−60.14210.00085464230.0000085674530.4748041
360.003700.487433735.1 × 10−60.15130.00090174590.0000095733850.4874337
370.003800.500015636.2 × 10−60.16090.00095002170.000010667490.5000156
380.003900.512548337.4 × 10−60.17100.00099945940.000011855330.5125483
390.004000.5250338.9 × 10−60.18160.0010500480.000013142770.52503
400.004100.53745243.3 × 10−60.19290.0011017720.000014539960.537452
410.004200.549824944.1 × 10−60.20460.0011546270.000016046820.5498249
420.004300.56214145.1 × 10−60.21700.0012085960.000017673480.562141
430.004400.57439846.5 × 10−60.22990.0012636670.000019427660.574398
440.004500.586593548.2 × 10−60.24370.0013198240.000021317740.5865935
450.004600.598718754.2 × 10−60.25840.0013770470.000023358340.5987187
460.004700.610781455.5 × 10−60.27390.0014353290.000025550830.6107814
470.004800.622773357.4 × 10−60.29030.0014946460.00002791080.6227733
480.004900.634690459.9 × 10−60.30800.0015549770.000030451710.6346904
490.005000.646520566.8 × 10−60.32720.0016162920.00003319880.6465205
500.005100.6582769.7 × 10−60.34790.0016785740.000036156990.65827
510.005200.669918178 × 10−60.37080.0017417750.00003936860.6699181
520.005300.681459687.6 × 10−60.39620.0018058570.000042861550.6814596
530.005400.692876598.5 × 10−60.42500.0018707540.000046689140.6928765
540.005500.704134118.1 × 10−60.45880.0019363560.000050949410.704134
550.005600.7151725148.7 × 10−60.50060.002002470.000055820350.7151725
560.005700.7257948229.3 × 10−60.56060.0020685010.000061872470.7257948
570.005800.00047543893088.3 × 10−61.00810.0000013800290.0014779040.0004752194
580.005900.000454193924.6 × 10−71.00810.0000013390050.0014779910.0004541974
590.006000.000433467822.5 × 10−71.00830.0000012995180.0014780750.0004334679
600.006100.000413999222.3 × 10−71.00850.0000012618540.0014781540.0004139992
610.006200.000395713222.1 × 10−71.00870.0000012259080.0014782310.0003957132
620.006300.000378519822 × 10−71.00880.0000011915720.0014783040.0003785198
630.006400.000362336521.9 × 10−71.00890.0000011587470.0014783730.0003623365
640.006500.000367766319.6 × 10−61.00910.0000011280490.0014784390.0003677663
650.006600.000352428319.2 × 10−61.00920.0000010979490.0014785030.0003524283
660.006700.000337749318.9 × 10−61.00930.0000010691010.0014785650.0003377493
670.006800.000323894718.5 × 10−61.00940.0000010414410.0014786230.0003238947
680.006900.000310807618.2 × 10−61.00940.0000010148980.001478680.0003108076
690.007000.00029843417.9 × 10−61.00950.00000098941150.0014787340.000298434
700.007100.000286724817.6 × 10−61.00950.00000096492250.0014787860.0002867248
710.007200.000275635117.4 × 10−61.00950.00000094137730.0014788370.0002756351
720.007300.000265123317.1 × 10−61.00960.00000091872570.0014788850.0002651233
730.007400.000255151616.9 × 10−61.00960.00000089692090.0014789310.0002551516
740.007500.000245684916.7 × 10−61.00960.00000087591910.0014789760.0002456849
750.007600.00023669116.4 × 10−61.00960.00000085567950.0014790190.000236691
760.007700.0002281416.2 × 10−61.00960.00000083616410.0014790610.00022814
770.007800.000220004516 × 10−61.00960.0000008173370.0014791010.0002200045
780.007900.00021225915.8 × 10−61.00950.00000079916480.001479140.000212259

Comparison with the paper

Compared with the author's Python reference outputs at commit 61037c6 and the 1D AT2 bar solution. The plots show our solver's results; the force plot also includes the Python reference. These comparisons do not establish agreement with figures printed in the article.

Limitations

  • Agreement with a reference code is not validation against experiments, and none of this is an engineering certification.
  • The reference refines a small box around the notch tip. Outside it the element width exceeds three length scales and the height exceeds two; the horizontal crack band is under-resolved.
  • The unconstrained reference discretization can overshoot intact and broken damage limits. Negative damage gives degradation above intact stiffness. Assembly uses interpolated damage at quadrature points; nodal extremes alone do not measure the assembled stiffness error. The solver retains these values; the replay field and colour scale clamp them for display.
  • The alternating scheme is not accelerated; at unstable crack growth it can take hundreds of iterations in one step.
  • Browser runs are limited in mesh size and parameter range.

Code and references

Cite this

Stabileo Research, “Phase-field fracture of a notched plate”, reproduction of Nathan Shauer (2025), doi:10.1016/j.advengsoft.2025.104013. Implementation: research/fracture/shauer-2025 at commit fb241aa04936. Engine: the Stabileo engine at the same commit.