All courses › Finite Element Method

Finite Element Method (FEM): free practice, theory and problems

The finite element method (FEM) solves complicated structural problems by dividing a structure into many small, simple elements for which the relationship between forces and displacements is known exactly. The bar element (1D, axial) is the simplest element and shows the core idea: each element has a stiffness matrix that relates nodal displacements to nodal forces, and these are assembled into a global system of equations for the whole structure.

3 parts49 problems9 concepts explainedPractice examFree
Start practising for free →

Contents

  1. Bar elements and stiffness matrices
  2. Weak form and shape functions
  3. Element types, meshing and error

1. Bar elements and stiffness matrices

What is it about?

The finite element method (FEM) solves complicated structural problems by dividing a structure into many small, simple elements for which the relationship between forces and displacements is known exactly. The bar element (1D, axial) is the simplest element and shows the core idea: each element has a stiffness matrix that relates nodal displacements to nodal forces, and these are assembled into a global system of equations for the whole structure.

Concepts and formulas

How to solve the problems

  1. Set up the stiffness EA/LEA/L (or the given spring stiffness kk) for each element.
  2. Assemble: insert the element contributions into the correct rows/columns of the global matrix according to the node numbers.
  3. Apply the boundary conditions (remove rows/columns for fixed degrees of freedom, or set them to a known value).
  4. Solve Ku⃗=f⃗K\vec u = \vec f for the unknown displacements.
  5. Compute stress/strain and, if needed, reaction forces from the displacements.

Example

Two bar elements in series: element 1 has k1=800k_1 = 800 N/mm, element 2 has k2=400k_2 = 400 N/mm. Node 1 is fixed, and a force of 600 N acts at node 3 (the free end). Find u3u_3.

  1. The degree of freedom at node 1 is removed (u1=0u_1=0).
  2. The force at node 3 is transmitted through both elements in series, so the displacements add: u3=F/k1+F/k2u_3 = F/k_1 + F/k_2.
  3. u3=600/800+600/400=0.75+1.5=2.25u_3 = 600/800 + 600/400 = 0.75 + 1.5 = 2.25 mm.

Common mistakes

The stiffness matrix EA/L(1−1−11)EA/L\begin{pmatrix}1&-1\\-1&1\end{pmatrix} is the building block of FEM: assemble it for each element into a global matrix, apply the boundary conditions, and solve Ku⃗=f⃗K\vec u = \vec f.

Concepts in this part

Practise bar elements and stiffness matrices in the app →

2. Weak form and shape functions

What is it about?

To apply the finite element method to problems governed by differential equations (e.g. axial elasticity or heat conduction), we recast the "strong form" (the differential equation itself, which requires the solution to be smooth enough to differentiate twice) into a "weak form" by multiplying by a test function and integrating by parts. This lowers the smoothness requirement and is exactly what makes it possible to use simple, piecewise-linear shape functions within each element.

Concepts and formulas

How to solve the problems

  1. Identify whether you need to interpolate a value (u=∑Niuiu=\sum N_iu_i), evaluate a shape function at a point, or integrate numerically.
  2. For interpolation: find the correct ξ\xi (normalized position) and substitute into N1,N2N_1, N_2.
  3. For Gauss quadrature: substitute the quadrature points into the integrand, multiply by the weights and sum.
  4. Remember the Jacobian when switching from physical coordinates to reference coordinates in an integral.

Example

Use 2-point Gauss quadrature (ξ=±1/3\xi=\pm1/\sqrt3, weight 1 each) to evaluate ∫−11(2ξ2+3) dξ\int_{-1}^{1}(2\xi^2+3)\,d\xi.

  1. f(1/3)=2⋅(1/3)+3=3.667f(1/\sqrt3) = 2\cdot(1/3)+3 = 3.667, and f(−1/3)f(-1/\sqrt3) is the same since ξ2\xi^2 is unchanged.
  2. The sum: 1⋅3.667+1⋅3.667=7.3331\cdot3.667+1\cdot3.667 = 7.333.
  3. Check: the exact value is ∫−11(2ξ2+3)dξ=4/3+6=7.333\int_{-1}^1(2\xi^2+3)d\xi = 4/3+6 = 7.333 – since the integrand has degree 2 (≤3\le 3), 2-point Gauss is exact.

Common mistakes

The weak form lowers the smoothness requirement via integration by parts; the shape functions interpolate the solution and sum to 1, and Gauss quadrature with nn points is exact up to degree 2n−12n-1.

Concepts in this part

Practise weak form and shape functions in the app →

3. Element types, meshing and error

What is it about?

Choosing the right element type and building a good mesh (network of elements) is crucial for whether an FEM analysis gives an accurate and trustworthy answer. This unit covers what element types exist, how a mesh is refined, what sources of error exist, and how to check that a model is correct.

Concepts and formulas

How to solve the problems

  1. Identify which error source or element property the question concerns: element type, refinement, continuity, or singularity.
  2. For DOF counting: multiply the number of nodes by the degrees of freedom per node for the element type.
  3. For convergence: use O(hp+1)O(h^{p+1}) to compute how much smaller the error becomes when hh changes.
  4. Remember that the mesh should be finest where the stress gradients are largest, not spread evenly everywhere.

Example

A model with 3D beam elements (6 degrees of freedom per node) has 25 nodes. The displacement error scales as O(h2)O(h^2) (linear elements, p=1p=1). How many degrees of freedom does the model have, and by what factor does the error shrink if hh is divided by 2?

  1. Degrees of freedom: 25⋅6=15025\cdot 6 = 150.
  2. Error factor: 21+1=42^{1+1} = 4 times smaller error.

Common mistakes

A finer mesh and a higher element order give convergence (O(hp+1)O(h^{p+1})), except at singularities. Always check the result with a convergence study and a check of the reaction forces.

Concepts in this part

Practise element types, meshing and error in the app →

Example problems with solutions

Here are some of the problems in finite Element Method. In the app, calculation problems get new numbers every time, so you can practise until it sticks – and take a graded practice exam before the real one.

Bar elements and stiffness matrices: What is the stiffness matrix of a linear bar element (1D)?

Answer: EAL(1−1−11)\dfrac{EA}{L}\begin{pmatrix}1&-1\\-1&1\end{pmatrix}

It is symmetric, and singular for a single element on its own.

Weak form and shape functions: What do you gain by rewriting to the weak form?

Answer: Lower differentiability requirements: one derivative is moved onto the test function

You integrate by parts.

Element types, meshing and error: What characterizes a CST element (linear triangle)?

Answer: Constant strain and stress in the whole element

It needs a fine mesh where stress gradients are large.

Bar elements and stiffness matrices: Why is the global stiffness matrix singular before the boundary conditions are applied?

Answer: The structure can move as a rigid body

Enough degrees of freedom must be locked to prevent rigid-body motion.

Practise all the problems →

Matches these university courses

The content covers the syllabus found in engineering degrees, for example: