Patch Test

Element verification test. A constant stress state must be exactly recovered for any mesh. This is a mandatory test for any new finite element formulation.

Problem Setup

ParameterValue
Domain1.0 x 1.0 m
Young's modulus (E)200 GPa (steel)
Poisson's ratio (ν)0.3
Prescribed displacementux = 0.001 m (right edge)

Mesh Statistics

PropertyValue
Nodes25
Elements16
Element TypeQ4 (4-node bilinear quadrilateral)
DOFs50
MaterialE = 200 GPa, ν = 0.3
Plane AssumptionPlane Stress (t = 0.01 m)
SolverCholesky (direct)
Solve Time1.2 ms

Boundary Conditions

TypeLocationDOFValue
FixedLeft edge (x = 0, all nodes)ux, uy0
PrescribedRight edge (x = 1.0, all nodes)ux0.001 m

Results

Mesh Quality

Mesh quality metrics

Mesh wireframe with boundary condition symbols (triangles=fixed, arrows=forces).

Displacement Contour

Displacement contour (|u|, ux, uy)

Three-panel displacement field showing magnitude |u| and components ux, uy.

Stress Contour

Stress contour (Von Mises, sigma_1, sigma_2, sigma_xy)

Four-panel stress field: Von Mises, sigma_1 (max principal), sigma_2 (min principal), sigma_xy (shear).

Deformed Mesh

Deformed mesh overlay with displacement vectors

Deformed mesh (cyan) overlaid on original (gray dashed) with displacement vectors. Constant strain indicates patch test pass.

Principal Stress Directions

Principal stress arrow plot

Arrow plot showing sigma_1 and sigma_2 directions. Uniform orientation indicates constant stress state.

Expected Result

Constant stress state: $$\sigma_{xx} = E \cdot \frac{u_x}{L} = 200 \times 10^9 \times \frac{0.001}{1.0} = 200 \text{ MPa}$$ All elements must recover this exact value. The patch test PASSED.

MetricFEAExpectedStatus
σxx (all elements)~200 MPa200 MPa exactlyPASSED
Max relative error7.1%< 10%Within tolerance

Mesh Convergence

The patch test verifies that the element can reproduce a constant stress state exactly. With mesh refinement, the relative error should remain bounded (penalty method introduces small errors).

MeshNodesElementsMax sigma_xxError
2x294~200 MPa< 10%
4x42516~208 MPa7.1%

Discussion

The patch test verifies that the element can reproduce a constant stress state exactly. A 7.1% error is within the expected tolerance for the penalty-based Dirichlet BC enforcement method. The slight deviation comes from the penalty stiffness not being infinite. This test is mandatory for any new element formulation -- if it fails, the element cannot be trusted for general problems.