Shape Function In Finite Element Method

7 min read

What Is a Shape Function in FEM

Imagine you’re trying to predict how a bridge will bend under traffic, but you only have measurements at a few points along the span. You need a way to fill in the gaps between those points, to guess the displacement everywhere else. That said, in the finite element method, that filling‑in job is done by shape functions. They are simple mathematical expressions that take the known values at the element’s nodes and turn them into a smooth field inside the element Worth knowing..

Think of a shape function as a little weight‑assigning rule. Each node gets its own function that equals one at that node and zero at every other node. But when you add up all the weighted nodal values, you get an approximation of the field—displacement, temperature, pressure, whatever you’re modeling—throughout the element. The collection of these functions for a single element is sometimes called the basis for that element’s local solution space.

Role in Approximation

The power of shape functions lies in their ability to turn a continuous problem into a set of algebraic equations. By approximating the unknown field as a linear combination of shape functions, the infinite‑dimensional governing equations collapse into a finite system that a computer can solve. The better the shape functions can represent the true solution, the fewer elements of the exact answer, the more accurate the final result will be Small thing, real impact..

Types of Shape Functions

Most introductory courses start with linear shape functions for triangular or quadrilateral elements. In a linear triangle, each shape function varies linearly across the element, producing a flat‑topped pyramid shape when plotted. Quadrilateral elements often use bilinear functions, which are linear in each coordinate direction but can produce a slight twist across the element.

When higher accuracy is needed, engineers move to quadratic or cubic shape functions. These involve extra nodes—mid‑side points or internal points—and the associated functions become polynomials of higher order. There are also specialized shape functions for shells, beams, or problems with discontinuities, but the underlying idea stays the same: assign a value of one at its own node and zero at all others, then blend them together.

Why Shape Functions Matter

You might wonder why we spend so much time discussing these little polynomials. The answer is that they sit at the heart of three practical concerns: accuracy, convergence, and physical meaning.

Accuracy and Convergence

If you refine the mesh—make the elements smaller—but keep using the same low‑order shape functions, you’ll eventually see the solution stop improving. That’s because the shape functions can’t capture curvature that exists in the true field. Switching to quadratic shape functions often restores the expected rate of convergence, letting you get accurate results with fewer elements. In practice, choosing the right shape function order is a balancing act between computational cost and the precision you need Not complicated — just consistent. That's the whole idea..

Physical Interpretation

Shape functions also give you a direct link between the nodal values you compute and the physical quantity you care about. For a structural problem, the displacement at any point inside an element is just the sum of each node’s displacement multiplied by its shape function value at that point. This makes post‑processing straightforward: you can evaluate stresses, strains, or fluxes anywhere you like by differentiating the shape‑function‑based approximation Easy to understand, harder to ignore..

How Shape Functions Work

Let’s walk through the mechanics of building and using shape functions in a typical finite element analysis.

Deriving Linear Shape Functions

Take a three‑node triangle with coordinates ((x_1,y_1)), ((x_2,y_2)), ((x_3,y_3)). We want functions (N_1,N_2,N_3) that satisfy

[ N_i(x_j,y_j)=\begin{cases} 1 & \text{if } i=j\ 0 & \text{if } i\neq j \end{cases} ]

Because we’re dealing with a linear field, we assume each (N_i) has the form

[ N_i = a_i + b_i x + c_i y ]

Plugging the nodal conditions into these three equations gives a small linear system for the coefficients (a_i,b_i,c_i). Solving it yields the familiar expressions

[ N_1 = \frac{(x_2 y_3 - x_3 y_2) + (y_2 - y_3)x + (x_3 - x_2)y}{2A} ]

and cyclic permutations for (N_2) and (N_3), where (A) is the triangle’s area. Notice that the denominator guarantees the partition of unity property: (N_1+N_2+N_3 = 1) everywhere inside the element

Other Essential Properties

Beyond the Kronecker delta property and partition of unity, shape functions must also ensure continuity across element boundaries. For standard elements, this means that the functions should be continuous within the element and match values at shared nodes between adjacent elements. This continuity is critical for obtaining physically meaningful solutions, especially in stress or strain fields that must not exhibit abrupt jumps unless there is an actual discontinuity in the material or loading.

Integration Into Element Matrices

Once the shape functions are defined, they are used to approximate the field variables (such as displacements) over each element. Substituting these approximations into the weak form of the governing equations leads to the element stiffness matrix and load vector. Here's a good example: the strain-displacement matrix B is constructed by differentiating the shape functions, and the stiffness matrix becomes:

[ \mathbf{K}^{(e)} = \int_{V^{(e)}} \mathbf{B}^T \mathbf{D} \mathbf{B} , dV ]

where D is the material property matrix. Numerical integration, typically via Gaussian quadrature, is employed to evaluate these integrals efficiently. The choice of integration scheme and the number of quadrature points can affect both accuracy and stability, particularly in avoiding issues like shear locking in certain elements And that's really what it comes down to..

Higher-Order Elements

Quadratic and cubic shape functions extend the linear approach by incorporating additional nodes (e.g., mid-edge or internal nodes). For a six-node triangular element, quadratic functions include terms like (x^2), (xy), and (y^2), enabling curved edges and a more accurate representation of displacement gradients.

…and consequently reduce the error in energy norms for a given mesh density. When moving to cubic (ten‑node) triangles or higher, the shape‑function space is enriched with monomials up to the third degree, allowing the approximation of curvature in both geometry and field variables. This enrichment is particularly advantageous in problems where stress concentrations or boundary layers demand a richer representation of gradients; the higher‑order basis can capture these features with far fewer elements than a comparable linear mesh.

In practice, the implementation of higher‑order elements often follows an isoparametric framework: the same shape functions that interpolate the displacement field also map the parent (reference) element to the physical element. Even so, this dual use guarantees that curved edges, which arise naturally from quadratic or higher‑order shape functions, are represented exactly (to the polynomial order) and that the Jacobian of the transformation remains well‑behaved provided the element is not overly distorted. This means the strain‑displacement matrix B now contains derivatives of quadratic or cubic polynomials, leading to element matrices that are more sensitive to the integration scheme. Adequate Gaussian quadrature—typically using enough points to integrate the polynomial product exactly—becomes essential; insufficient quadrature can introduce spurious zero‑energy modes (hourglassing) or, conversely, excessive quadrature may increase computational cost without benefit Easy to understand, harder to ignore. Turns out it matters..

Honestly, this part trips people up more than it should Worth keeping that in mind..

Another important aspect is the choice between Lagrange and serendipity node layouts. For quadrilaterals, the serendipite family (e.Consider this: g. Because of that, , the eight‑node quadratic quad) omits internal nodes while retaining the completeness of the quadratic polynomial space, offering a compromise between accuracy and the number of degrees of freedom. Hierarchical shape functions, where higher‑order modes are added incrementally to a lower‑order base, allow p‑refinement strategies and simplify the implementation of adaptive schemes because the lower‑order shape functions remain unchanged when the order is increased Small thing, real impact. That's the whole idea..

Despite their advantages, higher‑order elements are not a panacea. In nearly incompressible elasticity or in thin‑walled structures, they can suffer from locking phenomena unless special techniques—such as reduced integration, mixed formulations, or selective reduced integration—are employed. Also worth noting, the increased bandwidth of the global stiffness matrix and the larger element matrices demand more memory and computational effort per element, which must be weighed against the gain in accuracy Not complicated — just consistent..

The short version: shape functions form the bridge between the discrete finite‑element approximation and the continuous field they seek to represent. Linear functions guarantee conformity and partition of unity, while quadratic and cubic extensions enrich the approximation space, enabling curved geometries and superior convergence for smooth problems. The judicious selection of element order, integration rule, and formulation techniques allows engineers to harness these properties effectively, balancing accuracy, stability, and computational efficiency in a wide range of mechanical, thermal, and multiphysics analyses.

Brand New Today

Just Dropped

Related Corners

More from This Corner

Thank you for reading about Shape Function In Finite Element Method. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home