Linear and Nonlinear FEM

One square with a hole, one material law, two kinds of kinematics (strain measures and F are covered in the Deformation Gradient Explorer). Every number on this page is computed live in your browser by a small finite element code (about 600 unknowns, linear triangles, plane strain, E = 1, ν = 0.3).

1The test: a square with a hole, pulled at the top

A unit square with a hole of radius 0.2. The bottom edge is fixed in x and y; the top edge is pulled up by a prescribed displacement δ (free to slide sideways). Both models use the same material law (St. Venant–Kirchhoff: Hooke's law with the same λ, μ). Only the kinematics differ:

linear      σ = λ tr(ε) I + 2μ ε,   ε = sym(∇u)
nonlinear   S = λ tr(E) I + 2μ E,   E = ½(FᵀF − I)

At small δ the two answers coincide. Increase δ: the force of the linear model stays a straight line, while the nonlinear one bends away. Past δ ≈ 1.3 the linear solution turns elements inside out near the hole (det F < 0), which no real material can do.

reference linear FEM nonlinear FEM
reaction force F, linear
reaction force F, nonlinear
F nonlinear / F linear
smallest area ratio det F, linear / nonlinear

2Linear FEM: one linear system

Write equilibrium in weak form (virtual work), insert the discretisation u = Σ Nₐ uₐ, and everything is linear in the nodal values:

∫ σ(u) : ε(v) dX = 0                     for all test functions v
ε = B u,   σ = D ε = D B u              B: geometry only, D: material constants
(∫ Bᵀ D B dX) u = 0      →     K u = 0  with u_top = δ
split into free (f) and prescribed (p) dofs:
K_ff u_f = −K_fp u_p                    the known δ moves to the right-hand side

K depends only on the mesh and the material, never on u. Assemble it once, factorise it once, solve once. Twice the displacement gives exactly twice the force (the straight line in step 1).

The stiffness matrix K of this beam

unknowns n
non-zeros in K
solves per load
1
assemble + solve here

Each dark pixel is a non-zero entry Kij: dof i and dof j share an element. The band comes from the node numbering.

3Nonlinear FEM: residual and Newton iteration

Same weak form, but now the stress depends nonlinearly on u (through F and E), so u cannot be pulled out as K u. We write it as a residual that must vanish:

∫ P(F(u)) : ∇v dX = 0                    P = F S
R(u) = f_int(u) = 0   (free dofs; no external loads here)

Newton: linearise around the current guess u_k
K_T(u_k) Δu = −R(u_k),     u_k+1 = u_k + Δu
(first iteration of an increment: Δu_top = the new δ step)

Each iteration is one linear solve with a new tangent matrix KT. Near the answer the residual drops quadratically. For a large δ, split it into increments: each increment starts from the previous answer.

reference current iterate u_k converged answer at δ
incr.iter.δ‖R‖ after update

δ comes from the slider in step 1. Try δ = 2 with the neo-Hookean material and 1 or 2 increments.

4Change the material, keep the method

The Newton loop never looks inside the material. It only asks for the stress S and its derivative (the material tangent) at the current strain. Swap St. Venant–Kirchhoff for a rubber-like neo-Hookean law and the same loop runs unchanged.

svk:  S = λ tr(E) I + 2μ E                 tangent = constant D
nh:   S = μ(I − C⁻¹) + λ ln J C⁻¹          tangent depends on C

What changes is how hard Newton has to work: the neo-Hookean law has ln J, which is undefined when an element turns inside out, so a too-large first step fails and you need more load increments.

Material for the nonlinear model (steps 1 and 3)

Newton iterations needed at the current δ

incrementsSt. Venant–Kirchhoffneo-Hookean

Entries: total Newton iterations (= linear solves) to reach δ, or "fails". The linear model needs 1 solve at any δ.