Skip to main content

The Finite Element Method

  • Chapter
  • First Online:
Modelling Organs, Tissues, Cells and Devices

Part of the book series: Lecture Notes in Bioengineering ((LNBE))

  • 6253 Accesses

Abstract

This chapter provides an overview of the finite element method (FEM) for the numerical solution of PDEs. It begins with FEM implementation for 1D systems, deriving the weak-form equivalent form of a time-dependent diffusion-type PDE example, then outlines the Galerkin method for its solution. System matrices are derived for 1D linear basis functions, comparing these with those obtained by the COMSOL FEM solver. The chapter then proceeds to describe higher-order 1D Lagrangian basis functions as well as cubic Hermite elements. Following these 1D methods, FEM is then described for 2D/3D PDEs, including higher-dimensional elements, as well as isoparametric elements for representing curved boundaries. The chapter concludes with FEM numerical implementation issues, as well as set of problems with fully-worked answers provided in the solution section.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 249.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    From Fick’s Law of diffusion (see Exercise 4.6).

  2. 2.

    The set \(H^1\) is an example of a Sobolev space [1].

  3. 3.

    Pronounced ‘Gal-err-kin’. Named after Boris Grigoryevich Galerkin (1871–1945), a Soviet mathematician and engineer .

  4. 4.

    Pronounced Her-meet.

  5. 5.

    In the case of non-linear PDEs , these system matrices will need to be iteratively updated in order to converge to a solution.

  6. 6.

    Needless to say, Eq. 5.17 also holds for 1D systems, in which case \(\Omega \) will be a line interval and \(\partial \Omega \) will consist of its two bounding points.

  7. 7.

    The subsequent analysis also holds for 2D, where \(\mathbf {x} = (x\,y)^\mathrm {T}\).

  8. 8.

    Also referred to as Green’s first identity.

References

  1. Braess D (2001) Finite elements: theory, fast solvers, and applications in solid mechanics, 2nd edn. Cambridge University Press, Cambridge

    MATH  Google Scholar 

  2. Chen Z (2011) The finite element method: its fundamentals and applications in engineering. World Scientific, Singapore

    Book  MATH  Google Scholar 

  3. Cook RD, Malkus DS, Plesha ME, Witt RJ (2002) Concepts and applications of finite element analysis, 4th edn. Wiley, New York

    Google Scholar 

  4. Courant R (1943) Variational methods for the solution of problems of equilibrium and vibration. Bull Am Math Soc 49:1–23

    Article  MathSciNet  MATH  Google Scholar 

  5. Ferrari R, Silvester PP (2007) The finite-element method, part 2: an innovator in electromagnetic numerical modeling. IEEE Ant Prop Mag 49(3):216–234

    Article  Google Scholar 

  6. Hughes TJR (2000) The finite element method: linear static and dynamic finite element analysis, Dover edn. Dover, Mineola

    MATH  Google Scholar 

  7. Johnson C (2009) Numerical solution of partial differential equations by the finite element method. Dover, Mineola

    MATH  Google Scholar 

  8. Kojić M, Filipović N, Stojanović B, Kojić N (2008) Computer modelling in bioengineering. Wiley, Chichester

    Book  MATH  Google Scholar 

  9. Larsson S, Thomée V (2003) Partial differential equations with numerical methods. Springer, Berlin

    MATH  Google Scholar 

  10. Pelosi G, Courant RL (2007) The finite-element method, part 1. IEEE Ant Prop Mag 49(2):180–182

    Article  Google Scholar 

  11. Saad Y (2003) Iterative methods for sparse linear systems, 2nd edn. SIAM, Philadelphia

    Book  MATH  Google Scholar 

  12. Zienkiewicz OC, Cheung YK (1967) The finite element method in structural and continuum mechanics. McGraw-Hill, London

    MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Socrates Dokos .

Problems

Problems

5.1

Solve the following PDE numerically by-hand using FEM, utilising four equi-sized linear Lagrange elements over the interval \(x \in [0,1]\), and compare the solution obtained with the exact solution.

$$\begin{aligned} \nabla \cdot \left( -\nabla u\right)= & {} 2 \nonumber \\ u(0)= & {} 1 \nonumber \\ u(1)= & {} -1 \nonumber \end{aligned}$$

You may use Matlab to solve the resulting \(7\times 7\) system of equations.

5.2

Solve the following PDE numerically by-hand using FEM, utilising four equi-sized linear Lagrange elements over the interval \(x \in [0,1]\), and compare the solution obtained with the exact solution.

$$\begin{aligned} \nabla \cdot \left( -\nabla u\right)= & {} x \nonumber \\ u(0)= & {} 1 \nonumber \\ \frac{\partial u}{\partial x}(1)= & {} -1 \nonumber \end{aligned}$$

You may use Matlab to solve the resulting \(6\times 6\) system of equations.

5.3

For the family of cubic 1D Lagrange functions, we can define four cubic polynomial element shape functions \(\varphi _i(\xi )\), \(i=1\ldots 4\), such that

$$\begin{aligned} \varphi _i(\xi _j) = \left\{ \begin{array}{l@{\quad }l} 1 \quad &{} i=j \\ 0 &{} i \ne j \end{array} \right. \nonumber \end{aligned}$$

where \(\xi _j\) is the local element coordinate of node j, and \(i,j=1\ldots 4\). Assuming these nodes are equi-spaced along the element, determine the four cubic Lagrange functions and plot their shape.

5.4

Using 1D quadratic basis functions on a uniformly-spaced grid consisting of 4 elements, determine the finite element \(\mathbf {D}\), \(\mathbf {K}\) and \(\mathbf {f}\) matrices for the 1D time-dependent diffusion equation

$$\begin{aligned} \frac{\partial c}{\partial t} = \frac{\partial ^2 c}{\partial x^2} \nonumber \end{aligned}$$

for \(x \in [0,1]\) subject to zero-flux boundary conditions at \(x=0\) and \(x=1\), with initial value of c(x, t) at \(t=0\) given by the square-wave distribution:

$$\begin{aligned} c(x,0) = \left\{ \begin{array}{ll} 1 \qquad &{} 0.4 \le x \le 0.6 \\ 0 &{} \mathrm {otherwise} \end{array} \right. \nonumber \end{aligned}$$

Using the same basis functions and number of elements, solve this PDE in COMSOL, plotting the solution at \(t=0.1\), and confirm that the COMSOL-generated \(\mathbf {D}\) and \(\mathbf {K}\) matrices are equal to those you obtained analytically.

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Dokos, S. (2017). The Finite Element Method. In: Modelling Organs, Tissues, Cells and Devices. Lecture Notes in Bioengineering. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-54801-7_5

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-54801-7_5

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-54800-0

  • Online ISBN: 978-3-642-54801-7

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics