Theory contents

Displacement and stress

On this page

How are nodal displacement and element von Mises stress produced and displayed?

The linear solve finds displacement coefficients. Differentiating the displacement field gives strain; a material law gives stress. A contour plot adds averaging, colours and a deformed display shape. Each step changes what a reported value means.

This page covers static, small-strain, isotropic linear-elastic solids. KoFEM details below refer to the ordinary solid solve. Shell surface stress and optimization results require their own interpretation.

From displacement to stress

The finite element approximation reconstructs displacement uh from shape functions Na and solved vector coefficients da. The subscript h marks the discrete field and a indexes its basis functions.

uh(x)=∑aNa(x)da,∇uh(x)=∑ada⊗∇Na(x).

Here x is the original position. In the app’s N–mm convention, uh and da are in mm; Na is dimensionless and ∇Na has units 1/mm. Thus the gradient and strain are dimensionless. See discrete notation and the symmetric gradient.

εij=12(∂ui/∂xj+∂uj/∂xi),σij=λεkkδij+2μεij.

εij and σij are the strain and Cauchy stress components. Repeated k sums the three diagonal strains, and δij is 1 on the diagonal and 0 elsewhere. The Lamé material relations give μ=​E/[2(1+ν)] and λ=​Eν/[(1+ν)(1−2ν)] from Young’s modulus E and Poisson’s ratio ν. Stress and both moduli have units MPa. Tensor shear strain is half engineering shear; stress shear is not doubled.

Stress recovery evaluates these derivatives and the material law after the solve. Continuous displacement across element boundaries does not require continuous derivatives there. Adjacent elements can therefore predict different stresses at a shared location.

What von Mises measures

Remove the mean normal stress to form the deviatoric tensor s; σvm is its non-negative equivalent stress:

sij=σij−σkk3δij,σvm=32sijsij.
σvm2=(σxx−σyy)2+(σyy−σzz)2+(σzz−σxx)22+3(σxy2+σyz2+σxz2).

The double sum counts both symmetric off-diagonal entries. Von Mises has stress units and is independent of coordinate rotation. Uniaxial tension and compression of the same magnitude give the same value; hydrostatic stress alone gives zero. It discards signs and directions.

Comparing it with a uniaxial yield stress is useful for a material that follows a von Mises yield criterion, commonly an isotropic ductile metal. It does not by itself assess brittle fracture, fatigue, buckling or a pressure-sensitive material. KoFEM’s linear-elastic calculation does not simulate yielding or stress redistribution after yield.

Worked example: recover a stress tensor

Use E=​200000 MPa and ν=​0.25, so λ=​μ=​80000 MPa. With coordinates in mm, prescribe the affine displacement field ux=​0.000525x+0.000375y, uy=​0.000150y and uz=​−0.000225z, in mm.

∇u=[0.0005250.000375000.00015000−0.000225]

The diagonal strains are 0.000525, 0.000150 and −0.000225; their trace is 0.000450. Tensor shear εxy=​0.0001875 gives σxy=​2×80000×0.0001875=​30 MPa. The volumetric contribution is λεkk=​36 MPa:

σ=[12030030600000]

The mean normal stress is 60 MPa, so the deviatoric diagonal is (60, 0, −60) MPa. The shear terms contribute twice:

σvm=32(602+02+(−60)2+2×302)=13500≈116.19MPa.

A checkable calculation verifies the tensor, shear factor and invariant, including hydrostatic, pure-shear and reversed-sign checks.

What the solid solver returns

The ordinary solid solve exports three translations per mesh vertex in vertex order, and one von Mises scalar per element in element order, tetrahedra first, then hexahedra. It evaluates the full solved displacement gradient at the reference-element centre of each tetrahedron and hexahedron, the point of a one-point rule, and then applies that element’s material law. This is a point sample, not a volume average or a search for the element’s maximum stress.

On a straight-sided linear tetrahedron the displacement gradient is constant. In a trilinear hexahedron or a quadratic element, stress can vary within the element; the one centre sample cannot reveal that variation. The quadratic solve uses its higher-order displacement field for recovery, but the returned displacement array contains only vertex values. The viewer does not reconstruct the complete quadratic field.

The static result selector provides displacement magnitude, Ux, Uy, Uz and von Mises stress. Strain and tensor stress are intermediate calculations here, not shipped static contour fields. Individual stress components, principal stresses and reaction-force fields are not returned by this solid result interface.

From element samples to a contour

The web viewer first averages the scalar von Mises samples of elements touching each node a:

σvm,aavg=∑e∋aweσvm,e∑e∋awe.

e indexes adjacent elements and we is their averaging weight. Tetrahedra use absolute volume; triangular facets use area. Other element types, including hexahedra, currently use unit weights. Consequently “volume-weighted” does not describe every mesh.

Left: four elements around a node with constant element stresses of 100, 150, 150 and 150 MPa. Right: the nodal average of 137.5 MPa at the shared node and the smooth contour interpolated from the averaged nodal values.
Four elements share a node: one at 100 MPa and three at 150 MPa. Equal weights give the same 137.5 MPa as the volume-weighted example below. The contour interpolates the averaged nodal values and hides the jump between elements.

For two tetrahedra of volumes 1 and 3 mm³ with samples 100 and 150 MPa, a shared node receives (1×100+3×150)/4, or 137.5 MPa. This is an average of equivalent stresses, not von Mises computed from an averaged tensor. Equal-volume uniaxial tensors of +100 and −100 MPa would average to zero stress, but their scalar von Mises values average to 100 MPa.

The averaging traverses shared node IDs without a material/body filter; it can smooth a real jump across a material interface when those nodes are shared. Coincident but distinct nodes do not average together. Smoothing can hide element jumps and reduce a local peak. It provides no error estimate.

The result summary and automatic legend range use extrema of this nodal field over all model nodes, including interior nodes. The viewport draws boundary faces, splits quads into triangles and assigns each vertex a colour from its nodal value. The renderer interpolates vertex colours over each triangle. A smooth-looking surface is a display of recovered values, not additional stress samples or proof of accuracy.

Fields, units and deformation scale

Displacement components keep their global-axis signs; magnitude is |u|=​ux2+uy2+uz2. The app labels them in mm and von Mises in MPa (N/mm²). The solver does no dimensional conversion: geometry, material inputs and loads must already be coherent. See consistent units and modulus/stress conversion.

The shape uses original position plus scaled displacement. The UI’s “1×” multiplies an automatic scale, not physical displacement at true scale. For non-negligible displacement, KoFEM sets the largest absolute displacement component to 20% of the model’s largest bounding-box span, then multiplies by the slider value. At 0× the shape is undeformed. Scaling changes positions on screen; it does not change solved displacement, strain, stress or the small-strain assumptions.

Automatic legend limits rescale for each result. Identical red regions in two plots can represent different stresses. Manual limits affect colours and saturate values outside the chosen range; the numerical result summary still uses the computed field extrema.

A public stress verification case

The plate-with-hole verification case compares the largest nodal von Mises stress on the hole face, divided by nominal tension, with the concentration factor of its strip, 3.14 (Kirsch’s infinite plate gives 3). At the free edge’s peak the remaining tangential stress is uniaxial, so its magnitude equals von Mises.

Left: a plate with a circular hole of radius a under remote tension sigma infinity. Right: the stress along the line above the hole falls from three times the remote stress at the hole edge towards the remote value further away.
Kirsch’s solution for a circular hole in an infinite plate under remote tension. The stress along the line above the hole is three times the remote stress at the hole edge and falls quickly with distance.

Averaging centre samples to the nodes reads the boundary peak slightly low. The public case explains this and its discretization error; its tolerance applies to that benchmark. Its measured peak is the app’s nodal average, the value the Results panel’s hand check shows, so you compare like with like when you open the case in the app.

Plate with a hole: von mises stress on the solved model, coloured from blue (low) to red (high).
Von Mises stress of the plate-with-hole case, averaged at the nodes as the app displays it. The peak sits at the hole edge, on the line across the plate perpendicular to the load. Undeformed shape. Plate with a hole example · Open in KoFEM

Continue with interpretation and convergence before using a peak for a design decision.

Implementation and references

KoFEM’s solid solve runs in its Rust finite-element module.