Finite Element Method Explained: Meshing, Solving & Results
Every modern aircraft, car crash simulation, and structural engineering design depends on FEM. It converts partial differential equations describing continuous physical domains into systems of algebraic equations solvable by computers — by dividing the domain into small elements and approximating the unknown field within each one.
1. From PDE to Algebraic System
Most engineering problems are governed by PDEs. For linear elasticity:
2. Mesh Generation & Quality
The domain is divided into non-overlapping elements. Element types in 2D: tria3/tria6 (triangles with 3 or 6 nodes), quad4/quad8 (quadrilaterals). In 3D: tet4/tet10 (tetrahedra), hex8/hex20 (bricks), wedge6/wedge15 (prisms).
Key quality metrics:
- Aspect ratio: Ratio of longest to shortest edge. High aspect ratio (very elongated elements) degrades accuracy. Target < 5 for most elements, < 10 only in boundary layers.
- Jacobian ratio: Ratio of maximum to minimum Jacobian det within element. Must be > 0 everywhere (no inverted elements). Collapsed below 0.6 causes poor accuracy.
- Angular quality: For triangles/tets, very small or very large angles reduce accuracy. Ideal triangle: equilateral. Delaunay triangulation maximises the minimum angle.
- Element size transition: Gradual size transitions (growth factor < 1.5) between fine regions (e.g., stress concentrations) and coarse regions.
3. Shape Functions
Within each element, the unknown field u is approximated as a weighted sum of shape functions N_i(x), where the weights are the nodal values u_i:
4. Element Stiffness & Assembly
For each element, the element stiffness matrix K_e is computed by substituting shape functions into the weak form:
5. Boundary Conditions & Solving
Boundary conditions specify known quantities at the domain boundary. For structural analysis:
- Dirichlet BC (essential): Prescribed displacements (e.g., fixed support: u = 0). Applied by modifying the stiffness matrix rows/columns.
- Neumann BC (natural): Prescribed forces/tractions. Appear naturally in the force vector F.
- Contact conditions: Inequality constraints (surfaces cannot interpenetrate). Require iterative solution methods (penalty, Lagrange multiplier, or mortar contact).
For linear problems, K·u = F is solved once using direct (LU decomposition, Cholesky) or iterative (conjugate gradient, GMRES) methods. For nonlinear problems (large deformation, plasticity, contact), Newton-Raphson iteration solves repeatedly until residual < tolerance.
6. Convergence & Error Estimation
FEM produces approximate solutions. Accuracy improves with:
- h-refinement: Reducing element size h. For linear elements, displacement error ∝ h², stress error ∝ h.
- p-refinement: Increasing polynomial order p. Exponential convergence for smooth problems.
- hp-refinement: Combining both. Most efficient for problems with localised singularities (crack tips, reentrant corners).
7. Multiphysics Applications
- Crash simulation (nonlinear transient FEM): A car crash lasts ~100 ms. Explicit time integration with time steps of ~1 μs. 10–50 million elements. Accounts for large deformation, plasticity, fracture, contact, and airbag inflation. Tools: Abaqus/Explicit, LS-DYNA, PAM-CRASH.
- Structural fatigue: FEM provides stress fields for S-N curve and fracture mechanics analysis. Rainflow cycle counting + Miner's rule estimates component life under variable amplitude loading.
- Thermal-structural coupling: FEM solves heat transfer (conduction, convection) to get temperature field, then uses thermal strains in structural analysis. Critical for turbine blade design (Δ T = 800°C → thermal stress dominates mechanical load).
- Electromagnetic FEM: Solves Maxwell's equations in frequency domain. Used for antenna design, motor performance, transformer core loss, and MRI coil design. Tools: COMSOL, Ansys HFSS/Maxwell.
- Biomedical: Patient-specific bone fracture risk from CT scans, stent mechanical design, knee implant contact stresses, cochlear implant fluid-structure interaction.
- Geomechanics: Reservoir compaction, fault stability under pore pressure changes, tunnel lining design, dam safety. Coupled hydro-mechanical FEM simulates fluid flow in porous deformable media.