Nonlinear Finite Element Analysis / Numerical failure and troubleshooting
Residuals, corrections and failed states
Diagnose a failed or misleading solve before changing tolerances or adding artificial stiffness.
Lesson review: expert verification remains open
This lesson has received a full-context editorial review and a check of its technical explanations. Selected arithmetic has been checked separately. This is not independent engineering sign-off.
Checks needed for project use
- General assembled Jacobian diagnosis, residual scaling and production stopping rules. The exaggerated and singular tangents are deliberately introduced scalar faults.
- 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 notesBy the end of this lesson you should be able to
- Distinguish residual, correction and work-based convergence measures
- Recognise false convergence and singular-tangent failures
- Build a reproducible diagnosis from the smallest model that retains the problem
What you should already know
- Newton methods, line search and history rollback
- Force equilibrium and matrix conditioning
Preserve the failed state as evidence
When a nonlinear solve fails, retain the load step, committed state, trial state, residual, correction and stopping reason. Record the active constraints and material status where relevant. Without those quantities, a last converged deformation plot can conceal whether the difficulty came from the model, the derivative, the linear solve or the loading control.
Do not promote an unconverged trial to a committed physical state. Plastic strain, damage and contact slip generated during rejected iterations must be discarded. Otherwise rerunning with a different iteration limit can change the material history even when the physical loading is identical.
A useful diagnostic sequence begins with equilibrium and units. Compare applied loads with summed reactions. Check whether internal forces have the intended sign and scale. Inspect restraints and mechanisms. Only then investigate step size, line search or alternative nonlinear controls.
Three small quantities can mean different things
The residual measures imbalance in the governing equations. The correction measures how far the selected linearised solve proposes to move. Their product is sometimes used as a work-like convergence measure. A small correction can arise from an excessively large tangent while a large force imbalance remains.
The example uses R(u)=ku+au³−P with k=1 MN/m and a=10¹⁰ N/m³. The correct tangent is k+3au². The deliberately faulty comparison multiplies this derivative by one billion. It therefore proposes a very small correction without altering the actual force law.
The laboratory checks |R|≤0.001 N+10⁻⁶|P| and |Δu|≤10⁻⁶ m for acceptance. It also reports whether |RΔu|≤0.01 J would pass on its own. These are explicit teaching thresholds; they are not recommended universal tolerances for a structural model.
What it calculates: Physical residual, proposed correction and the two independent acceptance requirements.
Continue with derivative checks and a failure record.
Sources and specialist review
PETSc convergence and derivative-checking guidance was inspected for residual/correction tests, monitoring and Jacobian comparison. The faulty tangents are deliberate original examples. Production tolerance scaling, mixed equations, mechanisms, solver conditioning and project-specific failure interpretation still require specialist review. The reduced models and worked examples are original. Independent human specialist review remains open. Download the application routines and their mechanics dependency into the same folder to reproduce the calculations. These bounded checks do not qualify a model for design use.