A mesh is only
the beginning.
Pull a tapered connector. Build the equations, solve for displacement, then check the mesh error.
Your first experiment
Compare 4 and 16 elements. Keep the load and material fixed, assemble each model, and watch the tip error. Follow the six stages to see where the answer comes from.
BUILD YOUR FIRST FINITE ELEMENT MODEL
Build your finite element model.
A load alone does not define a problem.
The left end cannot move; the right end carries a tensile force. The material is elastic and the area changes linearly. Together these assumptions define the boundary-value problem.
Results for the solved example shown above.
Look inside the solver · shape functions, matrix and error
Inspect the numerical objects.
Two values become a field.
Within one element, local position ξ runs from 0 to 1. The weights N₁ = 1 − ξ and N₂ = ξ add to one. Move the probe to see how the two nodal values blend into a displacement.
A shared node adds contributions.
Each element contributes four entries to the global stiffness matrix. Adjacent elements share a node, so their diagonal entries add. Select an element or a matrix entry to inspect the connection.
Why fix a node? Without u₀ = 0, the whole connector could translate without stretching. K would have a rigid-body mode. This solver removes the prescribed degree of freedom, solves the reduced system, then recovers the reaction.
Select an entry. Values are in kN/mm.
Understand the method · weak form and numerical steps
A solid has a displacement at every position. A computer needs a finite collection of unknowns. FEM chooses values at nodes, joins them using shape functions, and finds values that satisfy a balance of work.
Here the cross-section tapers, so strain changes along the connector. A coarse, straight-line approximation cannot reproduce the curved displacement field exactly. That gives us something useful to investigate: numerical error.
Balance work, then solve for the unknowns.
The strong equation demands force balance at every point. Multiply it by a test displacement v, integrate, and use integration by parts. This shifts one derivative away from the trial displacement.
This weak form accepts continuous, piecewise-linear displacement fields. Substitute the same local basis for u and v, collect the coefficients, and the integral becomes a matrix system.
The numerical chain
- Approximate: choose a finite basis for displacement.
- Integrate: calculate how each element resists deformation.
- Assemble: connect elements through shared unknowns.
- Constrain: apply supports and prescribed displacements.
- Solve: factor the reduced symmetric positive-definite matrix.
- Recover: differentiate displacement to obtain strain and stress.
Reference solution, assumptions and sources
The reference is obtained by integrating u′ = F/[EA(x)]. For a linear taper A(x) = A₀ + (A₁ − A₀)x/L:
For A₁ = A₀, the uniform-bar limit is u(x) = Fx/(EA₀). Each linear element uses the mean area. Because A varies linearly and the strain-displacement matrix is constant, this integrates the element stiffness exactly. The remaining error comes from the limited displacement basis, not this integration rule.
This is static, small-strain, one-dimensional axial elasticity. It excludes local clamp stresses, bending, Poisson contraction, plasticity and three-dimensional stress concentrations. Element stress is constant within each linear element. The exact axial stress F/A(x) is a smooth reference; it is not a product safety limit.
- University of Alberta: One-dimensional linear elements: shape functions, weak formulation and elementwise stress.
- MIT OpenCourseWare: Finite element formulation of solids and structures: virtual work and finite element equations.
- ETH Zürich: Introduction to Finite Element Analysis: local-to-global assembly and structural elements.
The tapered-bar calculation and interactive implementation are independently derived for this site. No employer geometries or measurements are used.
Take this into CFD: discretization creates a finite system of unknowns. The next chapter shows how cell fluxes preserve conservation as that system advances in time.