Displacement and stress
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 from shape functions and solved vector coefficients . The subscript marks the discrete field and indexes its basis functions.
Here is the original position. In the app’s N–mm convention, and are in mm; is dimensionless and has units 1/mm. Thus the gradient and strain are dimensionless. See discrete notation and the symmetric gradient.
and are the strain and Cauchy stress components. Repeated sums the three diagonal strains, and is 1 on the diagonal and 0 elsewhere. The Lamé material relations give and from Young’s modulus 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 ; is its non-negative equivalent stress:
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 MPa and , so MPa. With coordinates in mm, prescribe the affine displacement field , and , in mm.
The diagonal strains are 0.000525, 0.000150 and −0.000225; their trace is 0.000450. Tensor shear gives MPa. The volumetric contribution is MPa:
The mean normal stress is 60 MPa, so the deviatoric diagonal is (60, 0, −60) MPa. The shear terms contribute twice:
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, , , 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 :
indexes adjacent elements and 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.

For two tetrahedra of volumes 1 and 3 mm³ with samples 100 and 150 MPa, a shared node receives , 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 . 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.

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.
Drag to rotate · scroll to zoom
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.
- Element-centre recovery and vertex displacements and result arrays after the linear solve.
- Averaging weights, nodal field, extrema and units, legend mapping and boundary colours, automatic deformation scaling, model span, summary and display controls and static result interface.
- Shells use membrane-plus-bending stress at the worse of their two surfaces: shell result and coupled result. Auto-shell additionally maps shell stresses onto original elements. These are different measures from solid centre samples; see the shell chapter.
- Malvern, Introduction to the Mechanics of a Continuous Medium (1969), small strain, isotropic elasticity and stress invariants; Timoshenko and Goodier, Theory of Elasticity, third edition (1970), the circular-hole solution.