Finite Element Method Introduction

Interactive Lecture

Understanding the Finite Element Method Through 1D Bar Elements

by Dr Arnaldo Delli Carri

Understanding the Finite Element Method

What is the Finite Element Method?

The Finite Element Method (FEM) is a numerical technique for finding approximate solutions to boundary value problems for partial differential equations. It subdivides a large problem into smaller, simpler parts called finite elements, which are connected at points called nodes.

FEM transforms complex continuous problems into discrete algebraic equations that can be solved computationally. The key is to approximate the solution using simple functions (shape functions) over small regions (elements), then assemble these into a global system.

The 1D Bar Element

The simplest finite element is the 1D bar element, which models axial deformation under tension or compression. Consider a uniform bar of length \(L\), cross-sectional area \(A\), and elastic modulus \(E\).

Governing Differential Equation:

\[\frac{d}{dx}\left(EA\frac{du}{dx}\right) + f(x) = 0\]

where \(u(x)\) is the axial displacement and \(f(x)\) is the distributed body force per unit length.

Shape Functions

For a linear bar element with two nodes (1 and 2), we approximate the displacement field using linear shape functions:

\[u(x) = N_1(x)u_1 + N_2(x)u_2\]

where the shape functions are:

\[N_1(x) = 1 - \frac{x}{L}, \quad N_2(x) = \frac{x}{L}\]

Properties of shape functions:

Element Stiffness Matrix

Using the principle of minimum potential energy or Galerkin's method, we derive the element stiffness matrix:

\[[k^e] = \frac{EA}{L}\begin{bmatrix} 1 & -1 \\ -1 & 1 \end{bmatrix}\]

The element equilibrium equation is:

\[[k^e]\{u^e\} = \{f^e\}\]

where \(\{u^e\} = \begin{bmatrix} u_1 \\ u_2 \end{bmatrix}\) and \(\{f^e\} = \begin{bmatrix} f_1 \\ f_2 \end{bmatrix}\)

Assembly Process

For multiple elements, we assemble the global stiffness matrix by adding contributions from elements sharing common nodes. This is called the direct stiffness method.

Assembly Rule: The global stiffness matrix [K] is assembled by adding element stiffness matrices at positions corresponding to their global degrees of freedom. Elements sharing a node contribute to the same entry in [K], ensuring compatibility and equilibrium.

Global System:

\[[K]\{U\} = \{F\}\]

After applying boundary conditions and solving, we obtain nodal displacements \(\{U\}\).

Post-Processing: Element strains and stresses are calculated from:

\[\varepsilon = \frac{du}{dx} = \frac{u_2 - u_1}{L}\]

\[\sigma = E\varepsilon = \frac{E(u_2 - u_1)}{L}\]

Convergence and Accuracy

As we increase the number of elements (mesh refinement), the FEM solution converges to the exact solution. This is guaranteed if:

Stepped Shaft Analysis: Exact vs FEM Solution

This simulation compares the exact analytical solution with the FEM solution for a stepped shaft under axial loading. The shaft has two sections with different diameters.

8
30
15
50

Engineering Applications

The Finite Element Method is one of the most widely used numerical techniques in engineering:

Summary of Key Equations

Concept Equation Description
Governing Equation (1D Bar) \(\frac{d}{dx}\left(EA\frac{du}{dx}\right) + f(x) = 0\) Equilibrium equation for axial bar
Shape Functions (Linear) \(N_1 = 1 - \frac{x}{L}, \quad N_2 = \frac{x}{L}\) Linear interpolation functions
Displacement Approximation \(u(x) = N_1(x)u_1 + N_2(x)u_2\) FEM approximation of displacement
Element Stiffness Matrix \([k^e] = \frac{EA}{L}\begin{bmatrix} 1 & -1 \\ -1 & 1 \end{bmatrix}\) Bar element stiffness
Global System \([K]\{U\} = \{F\}\) Assembled system of equations
Element Strain \(\varepsilon = \frac{u_2 - u_1}{L}\) Constant strain in element
Element Stress \(\sigma = E\varepsilon = \frac{E(u_2 - u_1)}{L}\) Constant stress in element

Practice Problems

Problem 1: Two-Element Bar Analysis

A bar of total length 2 m is divided into two elements. Element 1 has \(E_1 = 200\) GPa, \(A_1 = 100\) mm², and length 1 m. Element 2 has \(E_2 = 100\) GPa, \(A_2 = 50\) mm², and length 1 m. A force of 10 kN is applied at the free end. Calculate the nodal displacements and element stresses.

Show Solution

Problem 2: Convergence Study

For a uniform bar with \(E = 200\) GPa, \(A = 100\) mm², \(L = 1\) m, and \(P = 50\) kN, the exact tip displacement is \(u_{exact} = PL/(EA) = 2.5\) mm. Calculate the FEM solution using 1, 2, and 4 elements and discuss convergence.

Show Solution

Problem 3: Shape Function Properties

Verify that the linear shape functions \(N_1(x) = 1 - x/L\) and \(N_2(x) = x/L\) satisfy the essential properties: (a) Kronecker delta property, (b) partition of unity, and (c) can represent constant strain.

Show Solution

Knowledge Check Quiz

Question 1: What is the primary advantage of the Finite Element Method?

Question 2: For a 1D bar element, the stiffness matrix is:

Question 3: Shape functions must satisfy which property?

Question 4: In the assembly process, what happens at shared nodes?

Question 5: As the number of elements increases, the FEM solution: