Nonlinear Finite Element Analysis / Line search and adaptive stepping
Accepted trials and outer adaptation
Apply Armijo backtracking to a Newton direction. Distinguish local correction scaling, outer cutback and physical load history.
Lesson review: expert verification remains open
The practical explanations, new worked calculations and numerical practice answers have been checked in the recorded reconstruction pass. Browser checks cover the listed desktop, mobile and interactive states. Original derivations are retained; independent specialist verification remains open.
Checks needed for project use
- Mixed-equation merit scaling, non-smooth contact and history-dependent line-search evaluation. Only smooth scalar Armijo backtracking is implemented.
- Actual browser zoom, screen-reader/additional-browser use and native-fullscreen raster quality remain unqualified.
These are educational models and exercises. Check their assumptions before using the results. The full technical content and every diagram have not yet been independently verified.
Concrete and steel calculations retain their stated first-generation Eurocode teaching basis. Use the standards and amendments specified for your project; do not mix generations without an appropriate design basis.
Read the lesson register and outstanding review notesWhat you should already know
- Read merit functions and backtracking first.
Worked example
Backtrack the first 1,000 N correction
Given
- Cubic spring k=10,000 N/m and a=100,000,000 N/m³
- Initial u=0; external P=1,000 N; Newton correction Δu=0.1 m
Find
The first accepted correction scale under Armijo decrease.
Hold the applied force fixed and inspect the first Newton direction. The trial-scale control changes the candidate along that direction. It does not change the target force or the solver's halving rule.
- Full Newton correction
- 100 mm
- Selected trial displacement
- 25 mm
- Selected residual
- 812.5 N
- Selected trial
- Satisfies Armijo decrease
Horizontal: trial scale α (dimensionless). Vertical: log10(merit / initial merit), floor −8.
- Trial merit ratio
- Armijo upper bound
- Selected trial
The dashed bound is almost horizontal because c = 0.0001. Use the numerical values below to judge acceptance near the bound. The curve samples trial scales every 0.005; a minimum between samples may be deeper than drawn. Values below a merit ratio of 10⁻⁸ share the drawing floor.
| Scale α | Merit | Armijo bound | Decision |
|---|---|---|---|
| 1 | 5,000,000,000 | 499,900 | Reject |
| 0.5 | 72,000,000 | 499,950 | Reject |
| 0.25 | 330,078.1 | 499,975 | Accept |
| 0.125 | 230,987.5 | 499,987.5 | Not attempted |
| 0.0625 | 416,863 | 499,993.8 | Not attempted |
Continue from each accepted trial
Both solvers below start from the selected initial displacement. Each accepted Newton update rebuilds the direction. These are numerical iterates, not a physical loading history.
Horizontal: accepted iteration. Vertical: log10(|residual| / 1 N), floor −10.
- Full Newton
- Armijo backtracking
- Full Newton
- Tolerances reached
- Backtracking Newton
- Tolerances reached
- Backtracking updates
- 5
- First accepted scale
- 0.25
| Iteration | Scale | u (mm) | Residual (N) |
|---|---|---|---|
| 1 | 0.25 | 25 | 812.5 |
| 2 | 1 | 20.88608 | 119.9702 |
| 3 | 1 | 20.03443 | 4.48285 |
| 4 | 1 | 20.00005 | 0.007097625 |
| 5 | 1 | 20 | 1.788e-8 |
Rebuild the direction after an accepted trial
After accepting a scale, evaluate the residual and tangent at the new displacement. Compute a fresh Newton direction for the next iteration. Reusing a direction indefinitely would turn this into a different algorithm. Near a smooth root with a consistent tangent, the full step is usually accepted and the local Newton rate can be recovered.
The implementation permits an initial trial and up to twenty halvings. If none satisfies the decrease condition, it returns a line-search failure. It does not accept the final trial merely because it is small. The outer controller can then reduce its increment or report failure according to its policy.
The first chart plots log10(φtrial/φinitial), a dimensionless quantity. Zero on that axis means the trial and initial merits are equal; a value of −2 means the trial merit is one hundredth of the initial value. The Armijo bound lies just below zero. The numerical trial table resolves differences too small to read from that line. At an exact root the ratio is undefined, so this chart is omitted.
The second chart plots log10(|R|/(1 N)) for accepted numerical iterates. A drawing floor of 10⁻¹⁰ N keeps a zero or tiny residual finite on the chart. The actual values remain in the stopping calculation. The curve labels distinguish the ordinary and backtracking histories; the table shows accepted scales explicitly.
Coordinate line search and outer adaptation
A line search can avoid an oversized correction during an otherwise reasonable increment. An outer cutback can make the new equilibrium closer to the previous committed state. They can be used together, but their success must be assessed at their own levels: sufficient merit decrease for a local trial, equilibrium convergence for an increment, and appropriate step accuracy for the loading history.
Repeatedly accepting tiny α values deserves investigation. Possible causes include a poor tangent, badly scaled equations, a non-smooth active-set change or a direction that is unsuitable for the current region. Reducing the step without examining these causes can consume considerable work and hide a formulation defect.
Do not use the magnitude of αΔu alone as a convergence test. Making α extremely small can make that movement tiny even when the residual remains large. The laboratory instead checks both force imbalance and the remaining full Newton correction estimate at the accepted state.
Bound the claims
The cubic law has positive tangent everywhere, a unique equilibrium and no history variables. It is a favourable setting for demonstrating residual-based backtracking. An industrial contact or plasticity problem can have constraints, local constitutive failures and non-differentiable changes that are absent here.
For a path-dependent material, every line-search candidate must evaluate stress from the same committed material history and its own trial deformation. A rejected candidate must not accumulate plastic strain or damage. Otherwise the merit values would compare different physical histories rather than different guesses for one state.
A residual minimum can occur away from a root in a more general problem. A decreasing merit function is therefore progress information, not by itself a guarantee of a solution. Maintain explicit convergence criteria, iteration limits and a failure status. At a load limit point, the continuation method in Module 6 changes the control equations rather than indefinitely shortening corrections towards an impossible force target.
Sources and specialist review
PETSc’s SNES manual was inspected for Newton line-search context. The Armijo derivation, acceptance arithmetic and implementation are original. General mixed-equation scaling, non-smooth contact and history-dependent line searches require further implementation and specialist review. These lessons use original scalar derivations and examples. Automated checks establish the stated numerical comparisons within the exposed parameter ranges. Independent specialist review of applicability, teaching treatment and extension to general finite-element systems remains open. Download the standalone SI teaching routines. They require no commercial solver or proprietary source material.