Discover the finite element method used to model and solve complex engineering problems through discretization.
The finite element method (FEM) numerically solves differential equations, especially partial differential equations, by dividing the domain into many small pieces, the elements, and approximating the solution with simple functions on each. It is the standard for structures, heat, and fields in complex domains [1].
The problem is rewritten in weak form: the equation is multiplied by a test function $v$ and integrated by parts. Then the solution is sought in a finite-dimensional space generated by piecewise polynomial functions, called basis functions. The result is a linear system $K\mathbf{u} = \mathbf{f}$ with stiffness matrix $K$ [1][2].
For $-u'' = 2$ on $[0, 1]$ with $u(0) = u(1) = 0$ (given values), $4$ linear elements of length $h = 0.25$ are used. The stiffness matrix of the internal nodes is $\dfrac{1}{h}\begin{pmatrix}2 & -1 & 0\\ -1 & 2 & -1\\ 0 & -1 & 2\end{pmatrix}$ and the load vector equals $h \cdot 2 = 0.5$ for each node. The solution is $(0.1875;\ 0.25;\ 0.1875)$, which coincides with $x(1 - x)$ at the nodes (computation). In one dimension this occurs for the Poisson equation; in general the error is proportional to a power of $h$.
1. The domain is discretized with a mesh of triangles or tetrahedra.
2. The basis functions are chosen, usually linear or quadratic.
3. The matrix $K$ is assembled by summing the contributions of each element.
4. Boundary conditions are imposed.
5. The system, usually sparse, is solved and errors and stresses are evaluated.
Finite elements adapt to irregular geometries and allow mesh refinement where the solution varies greatly. Finite differences are simpler on regular grids (see the dedicated row) [1].
Structural analysis of buildings and bridges, heat transfer, electromagnetics, fluid dynamics, and biomechanics (general observation).
Quality depends on the mesh and boundary conditions; large models require much memory and time. Results must be verified with a convergence test, reducing the element size.
[1] Wikipedia (it): Metodo degli elementi finiti
[2] Wikipedia (en): Finite element method
Generating summary…