← Learning path Lesson 2 of 3
THE SCIENCE OF SIMULATION / CHAPTER 02

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.

Reference example solved
Undeformed geometry. Axial model; constant thickness.

Fixed-end area: 100 mm². Linear taper. One axial displacement per node.

01 / DEFINE THE PHYSICS

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.

−d(EA du/dx)/dx = 0; u(0) = 0; EA u′(L) = F

Results for the solved example shown above.

Tip displacementPendingnumerical solution
Tip errorPendingagainst exact axial solution
Support reactionPendingmust balance the tensile force
Maximum element stressPendingelementwise, not a 3D stress peak

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.

uₕ(ξ) = (1 − ξ)uᵢ + ξuᵢ₊₁

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.

∫₀ᴸ EA u′ v′ dx = F v(L), with v(0) = 0

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

  1. Approximate: choose a finite basis for displacement.
  2. Integrate: calculate how each element resists deformation.
  3. Assemble: connect elements through shared unknowns.
  4. Constrain: apply supports and prescribed displacements.
  5. Solve: factor the reduced symmetric positive-definite matrix.
  6. 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:

u(x) = FL/[E(A₁ − A₀)] · ln[A(x)/A₀]

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.

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.