numerical analysis
Finite Element Method
You should know: numerical methods, partial differential equations, linear transformation
Overview
The finite element method (FEM) is the dominant numerical technique for solving the partial differential equations of continuum mechanics — stress and deflection in structures, heat flow, seepage, and vibration. Its central idea is discretization: a complicated body is subdivided into many small, simply-shaped pieces (the 'finite elements' — bars, triangles, quadrilaterals, tetrahedra) connected at nodes. On each element the unknown field is approximated by simple interpolation (shape) functions, the governing PDE is enforced in an averaged 'weak' sense, and each element contributes a small stiffness matrix. Assembling all of them produces one large linear system K·d = F, whose solution gives the nodal displacements (or temperatures, or heads) of the whole structure. FEM is what powers essentially every modern structural-analysis and CAE package (SAP2000, ETABS, ABAQUS, ANSYS).
Intuition
You cannot write a single formula for the stress in a bridge with a complicated shape and loading — but you can for a single straight bar. FEM exploits exactly that: cut the hard object into many easy pieces, describe each piece with an elementary model (a spring/stiffness relation), and then reconnect them by insisting that shared nodes move together and that forces balance at every node. The 'weak form' is the mathematical trick that makes this rigorous: instead of demanding the PDE hold exactly at every point (which the simple piecewise approximations can't do), you require it to hold on average against a set of test functions. The payoff is that a differential equation over a continuous body becomes a matrix equation K·d = F — algebra a computer can crush.
Formal Definition
The heart of FEM is the element stiffness relation and the assembled global system. For a linear-elastic axial bar element of length L, area A, modulus E, the 2-node stiffness matrix and the global system are:
Notation
| Notation | Meaning |
|---|---|
| Element stiffness matrix — relates one element's nodal forces to its nodal displacements | |
| Global (assembled) stiffness matrix for the whole structure | |
| Vector of unknown nodal displacements (degrees of freedom) | |
| Vector of nodal forces (applied loads and reactions) | |
| Shape / interpolation function — 1 at its own node, 0 at the others |
Derivation
A 2-node axial bar illustrates where kᵉ comes from. The bar behaves as a linear spring of stiffness AE/L; equilibrium of its two nodal forces in terms of the two nodal displacements gives the 2×2 element matrix, which then embeds into the global K by adding contributions at shared degrees of freedom:
A uniform elastic bar acts as a spring with stiffness AE/L (force per unit stretch).
Newton's third law at the two nodes: internal force depends on the relative displacement (the stretch).
Write the two equations in matrix form — this is kᵉ.
Overlap element matrices at common nodes to build the global stiffness matrix; apply supports, then solve K d = F.
Properties
Symmetry of K
Condition: Linear elastic (conservative) system
Example: Reciprocity (Maxwell–Betti): the deflection at A from a load at B equals the deflection at B from the same load at A.
Positive definiteness (after supports)
Condition: Enough restraints to remove rigid-body motion
Example: Guarantees a unique displacement solution; the quadratic form equals twice the stored strain energy.
Convergence with refinement
Condition: Compatible, complete shape functions (patch test passed)
Example: A finer mesh gives a more accurate stress field, approaching the exact PDE solution.
Singularity of the free structure
Condition: Before boundary conditions are applied
Example: An unsupported structure can float (rigid-body modes); you must fix supports before K can be inverted.
Applications
Worked Examples
Compute the axial stiffness AE/L. Use consistent units: A = 500 mm², E = 200 kN/mm² (since 200 GPa = 200 kN/mm²), L = 2000 mm.
Insert AE/L into the standard bar template.
So the element matrix has +50 on the diagonal and −50 off-diagonal.
Answer: kᵉ = [[50, −50], [−50, 50]] kN/mm (AE/L = 50 kN/mm).
Practice Problems
A truss member has E = 70 GPa (aluminium), A = 300 mm², L = 1.5 m. Compute its axial stiffness AE/L in kN/mm.
A 2-D plane truss has 8 joints (nodes). Before applying supports, how many degrees of freedom does the global stiffness matrix have, and what is its size?
Why is the global stiffness matrix K singular (non-invertible) BEFORE boundary conditions are applied?
A linear shape function N₁(x) for a 2-node bar equals 1 at node 1. What is its value at node 2?
State one physical consequence of the stiffness matrix being symmetric (K = Kᵀ) for an elastic structure.
In seismic design, FEM assembles stiffness K and mass M matrices. What mathematical problem yields the natural frequencies, and what do the solutions represent?
Common Mistakes
Trying to invert the global stiffness matrix before applying supports.
The unrestrained K is singular (rigid-body modes). You must impose boundary conditions — delete or penalize the restrained DOFs — before solving K d = F.
Mixing unit systems when computing AE/L or assembling K.
Keep units consistent throughout: e.g. E in kN/mm² (= GPa), A in mm², L in mm gives stiffness in kN/mm. A single unit slip corrupts the whole matrix.
Assuming a finer mesh is always necessary everywhere.
Refine where gradients are steep (near holes, corners, point loads); a uniform ultra-fine mesh wastes computation. Convergence should be checked, not assumed.
Forgetting that FEM gives an approximate solution.
FEM solves the weak form on a finite mesh; stresses in particular converge more slowly than displacements, so results must be checked against equilibrium and mesh-refinement studies.
Quiz
Flashcards
Summary
- FEM solves continuum PDEs by discretizing a body into simple elements connected at nodes.
- On each element the field is approximated with shape functions and the PDE is enforced in a weak (averaged) sense.
- Each element contributes a stiffness matrix; assembling them gives the global system K·d = F.
- The global stiffness matrix is symmetric and, after supports are applied, positive-definite and invertible.
- FEM underpins commercial structural, geotechnical, thermal, and seismic analysis software; refining the mesh converges to the exact solution.
References
- BookHughes, T. J. R. The Finite Element Method: Linear Static and Dynamic Finite Element Analysis. Dover, 2000.
- BookLogan, D. L. A First Course in the Finite Element Method, 6th ed. Cengage, 2016.
- BookBathe, K.-J. Finite Element Procedures, 2nd ed. Prentice Hall, 2014.
- BookCook, R. D. et al. Concepts and Applications of Finite Element Analysis, 4th ed. Wiley, 2001.
Mathematics