Computers, Waves, Simulations: A Practical Introduction to Numerical Methods using Python
Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.
Computers, Waves, Simulations: A Practical Introduction to Numerical Methods using Python
Instructor: Heiner Igel
27,389 already enrolled
Ask Coursera
391 reviews
Recommended experience
391 reviews
Recommended experience
What you'll learn
How to solve a partial differential equation using the finite-difference, the pseudospectral, or the linear (spectral) finite-element method.
Understanding the limits of explicit space-time simulations due to the stability criterion and spatial and temporal sampling requirements.
Strategies how to plan and setup sophisticated simulation tasks.
Strategies how to avoid errors in simulation results.
Skills you'll gain
Tools you'll learn
Details to know
See how employees at top companies are mastering in-demand skills
There are 9 modules in this course
Interested in learning how to solve partial differential equations with numerical methods and how to turn them into python codes? This course provides you with a basic introduction how to apply methods like the finite-difference method, the pseudospectral method, the linear and spectral element method to the 1D (or 2D) scalar wave equation. The mathematical derivation of the computational algorithm is accompanied by python codes embedded in Jupyter notebooks. In a unique setup you can see how the mathematical equations are transformed to a computer code and the results visualized. The emphasis is on illustrating the fundamental mathematical ingredients of the various numerical methods (e.g., Taylor series, Fourier series, differentiation, function interpolation, numerical integration) and how they compare. You will be provided with strategies how to ensure your solutions are correct, for example benchmarking with analytical solutions or convergence tests. The mathematical aspects are complemented by a basic introduction to wave physics, discretization, meshes, parallel programming, computing models.
The course targets anyone who aims at developing or using numerical methods applied to partial differential equations and is seeking a practical introduction at a basic level. The methodologies discussed are widely used in natural sciences, engineering, as well as economics and other fields.
The use of numerical methods to solve partial differential equations is motivated giving examples form Earth sciences. Concepts of discretization in space and time are introduced and the necessity to sample fields with sufficient accuracy is motivated (i.e. number of grid points per wavelength). Computational meshes are discussed and their power and restrictions to model complex geometries illustrated. The basics of parallel computers and parallel programming are discussed and their impact on realistic simulations. The specific partial differential equation used in this course to illustrate various numerical methods is presented: the acoustic wave equation. Some physical aspects of this equation are illustrated that are relevant to understand its solutions. Finally Jupyter notebooks are introduced that are used with Python programs to illustrate the implementation of the numerical methods.
What's included
6 videos1 reading1 assignment1 ungraded lab
6 videos•Total 63 minutes
- W1V1 General Introduction•6 minutes
- W1V2 Spatial scales and meshing•12 minutes
- W1V3 Waves in a discrete world•6 minutes
- W1V4 Parallel Simulations•10 minutes
- W1V5 A bit of wave physics•17 minutes
- W1V6 Python and Jupyter notebooks•11 minutes
1 reading•Total 10 minutes
- Jupiter Notebooks and Python•10 minutes
1 assignment•Total 45 minutes
- Discretization, Waves, Computers•45 minutes
1 ungraded lab•Total 60 minutes
- W1P1 Getting into Jupyter Notebook•60 minutes
In Week 2 we introduce the basic definitions of the finite-difference method. We learn how to use Taylor series to estimate the error of the finite-difference approximations to derivatives and how to increase the accuracy of the approximations using longer operators. We also learn how to implement numerical derivatives using Python.
What's included
8 videos1 assignment3 ungraded labs
8 videos•Total 41 minutes
- W2V1 Introduction•4 minutes
- W2V2 Definitions•3 minutes
- W2V3 Taylor Series•5 minutes
- W2V4 Python: First Derivative•11 minutes
- W2V5 Operators•5 minutes
- W2V6 High Order•4 minutes
- W2V7 Python: High Order•7 minutes
- W2V8 Summary•1 minute
1 assignment•Total 20 minutes
- Taylor Series and Finite Differences•20 minutes
3 ungraded labs•Total 180 minutes
- W2_P1 First Derivative•60 minutes
- W2P2 Numerical Second Derivative•60 minutes
- W2P3 High-Order Taylor Operators•60 minutes
We develop the finite-difference algorithm to the acoustic wave equation in 1D, discuss boundary conditions and how to initialize a simulation example. We look at solutions using the Python implementation and observe numerical artifacts. We analytically derive one of the most important results of numerical analysis – the CFL criterion which leads to a conditionally stable algorithm for explicit finite-difference schemes.
What's included
9 videos1 assignment2 ungraded labs
9 videos•Total 50 minutes
- W3V1 Wave Equation•2 minutes
- W3V2 Algorithm•4 minutes
- W3V3 Boundaries, Sources•5 minutes
- W3V4 Initialization•4 minutes
- W3V5 Python: Waves in 1D•6 minutes
- W3V6 Analytical Solutions•4 minutes
- W3V7 Python: Waves in 1D•3 minutes
- W3V8 Von Neumann Analysis•20 minutes
- W3V9 Summary•1 minute
1 assignment
- Acoustic Wave Equation with Finite Differences in 1D - CFL criterion•0 minutes
2 ungraded labs•Total 120 minutes
- W3P1 Acoustic Waves 1D•60 minutes
- W3P2 Acoustic Waves 1D - Comparison with analytical solution•60 minutes
We develop the solution to the 2D acoustic wave equation, compare with analytical solutions and demonstrate the phenomenon of numerical (non-physical) anisotropy. We extend the von Neumann Analysis to 2D and derive numerical anisotropy analytically. We learn how to initialize a realistic physical problem and illustrate that 2D solution are already quite powerful to understand complex wave phenomena. We introduced the 1D elastic wave equation and show the concept of staggered-grid schemes with the coupled first-order velocity-stress formulation.
What's included
10 videos1 assignment5 ungraded labs
10 videos•Total 83 minutes
- W4V1 Acoustic Waves 2D – Analytical Solutions•8 minutes
- W4V2 Acoustic Waves 2D – Finite-Difference Algorithm•7 minutes
- W4V3 Python: Acoustic Waves 2D•8 minutes
- W4V4 Acoustic Waves 2D – von Neumann Analysis•5 minutes
- W4V5 Acoustic Waves 2D – Waves in a Fault Zone•9 minutes
- W4V6 Python: Waves in a Fault Zone•10 minutes
- W4V7 Elastic Wave Equation – Staggered Grids•17 minutes
- W4V8 Python: Staggered Grids•5 minutes
- W4V9 Improving numerical accuracy•12 minutes
- W4V10 Wrap up•3 minutes
1 assignment•Total 45 minutes
- Acoustic Wave Equation in 2D - Numerical Anisotropy - Staggered Grids•45 minutes
5 ungraded labs•Total 300 minutes
- W4P1 Acoustic Wave Equation - Homogeneous Case•60 minutes
- W4P2 Acoustic Wave Equation - Heterogeneous Case•60 minutes
- W4P3 Optimal Operators •60 minutes
- W4P4 Staggered Grid•60 minutes
- W4P5 Advection Equation - 1D•60 minutes
We start with the problem of function interpolation leading to the concept of Fourier series. We move to the discrete Fourier series and highlight their exact interpolation properties on regular spatial grids. We introduce the derivative of functions using discrete Fourier transforms and use it to solve the 1D and 2D acoustic wave equation. The necessity to simulate waves in limited areas leads us to the definition of Chebyshev polynomials and their uses as basis functions for function interpolation. We develop the concept of differentiation matrices and discuss a solution scheme for the elastic wave equation using Chebyshev polynomials.
What's included
9 videos1 assignment4 ungraded labs
9 videos•Total 62 minutes
- W5V1 Function Interpolation – Trigonometric basis functions•6 minutes
- W5V2 Fourier Series - Examples•6 minutes
- W5V3 Discrete Fourier Series•5 minutes
- W5V4 The Fourier Transform - Derivative•7 minutes
- W5V5 Solving the 1D/2D Wave Equation with Python•12 minutes
- W5V6 Convolutional Operators•7 minutes
- W5V7 Chebyshev Polynomials - Derivatives•8 minutes
- W5V8 Chebyshev Method – 1D Elastic Wave Equation•8 minutes
- W5V9 Summary•3 minutes
1 assignment•Total 45 minutes
- Pseudospectral method•45 minutes
4 ungraded labs•Total 240 minutes
- W5P1 Fourier Acoustic Wave Equation - 1D•60 minutes
- W5P2 Fourier Acoustic Wave Equation - 2D•60 minutes
- W5P3 Chebyshev Derivative•60 minutes
- W5P4 Chebyshev Elastic Wave Equation - 1D•60 minutes
We introduce the concept of finite elements and develop the weak form of the wave equation. We discuss the Galerkin principle and derive a finite-element algorithm for the static elasticity problem based upon linear basis functions. We also discuss how to implement boundary conditions. The finite-difference based relaxation method is derived for the same equation and the solution compared to the finite-element algorithm.
What's included
5 videos1 assignment1 ungraded lab
5 videos•Total 42 minutes
- W6V1 Introduction - Static Elasticity•7 minutes
- W6V2 Weak Form - Galerkin Principle•8 minutes
- W6V3 Solution Scheme•9 minutes
- W6V4 Boundary Conditions - System Matrices•9 minutes
- W6V5 Relaxation Method - Python: Static Eleasticity•8 minutes
1 assignment•Total 45 minutes
- Finite-element method - Static problem•45 minutes
1 ungraded lab•Total 60 minutes
- W6P1 Static Elasticity•60 minutes
We extend the finite-element solution to the elastic wave equation and compare the solution scheme to the finite-difference method. To allow direct comparison we formulate the finite-difference solution in matrix-vector form and demonstrate the similarity of the linear finite-element method and the finite-difference approach. We introduce the concept of h-adaptivity, the space-dependence of the element size for heterogeneous media.
What's included
7 videos1 assignment1 ungraded lab
7 videos•Total 56 minutes
- W7V1Introduction - Dynamic Elasticity•6 minutes
- W7V2 Solution Algorithm - 1D Elastic Case•12 minutes
- W7V3 Differentiation Matrices•8 minutes
- W7V4 Python: 1D Elastic Wave Equation•11 minutes
- W7V5 h-adaptivity•6 minutes
- W7V6 Shape Functions•9 minutes
- W7V7 Dynamic Elasticity - Summary•3 minutes
1 assignment•Total 45 minutes
- Dynamic elasticity - Finite elements•45 minutes
1 ungraded lab•Total 60 minutes
- W7P1 Elastic Wave Equation - 1D•60 minutes
We introduce the fundamentals of the spectral-element method developing a solution scheme for the 1D elastic wave equation. Lagrange polynomials are discussed as the basis functions of choice. The concept of Gauss-Lobatto-Legendre numerical integration is introduced and shown that it leads to a diagonal mass matrix making its inversion trivial.
What's included
7 videos1 assignment2 ungraded labs
7 videos•Total 51 minutes
- W8V1 Introduction•5 minutes
- W8V2 Weak Form - Matrix Formulation•9 minutes
- W8V3 Element Level•6 minutes
- W8V4 Lagrange Interpolation•12 minutes
- W8V5 Python:Lagrange Interpolation•7 minutes
- W8V6 Numerical Integration•8 minutes
- W8V7 Python Numerical Integration•5 minutes
1 assignment•Total 45 minutes
- Lagrange Interpolation - Numerical Integration•45 minutes
2 ungraded labs•Total 120 minutes
- W8P1 Lagrange Interpolation•60 minutes
- W8P2 Numerical Intergration•60 minutes
We finalize the derivation of the spectral-element solution to the elastic wave equation. We show how to calculate the required derivatives of the Lagrange polynomials making use of Legendre polynomials. We show how to perform the assembly step leading to the final solution system for the elastic wave equation. We demonstrate the numerical solution for homogenous and heterogeneous media.
What's included
7 videos1 assignment2 ungraded labs
7 videos•Total 50 minutes
- W9V1 Lagrange Derivative - Legendre Polynomials•5 minutes
- W9V2 System of Equations - Element Level•7 minutes
- W9V3 Global Assembly•8 minutes
- W9V4 Python: 1D Homogeneous Case•14 minutes
- W9V5 Python: Heterogeneous Case in 1D•9 minutes
- W9V6 Convergence Test•5 minutes
- W9V7 Wrap Up•3 minutes
1 assignment•Total 45 minutes
- Spectral-element method - Convergence test•45 minutes
2 ungraded labs•Total 120 minutes
- W9P1 Elastic Wave Equation - 1D Homogeneous Case•60 minutes
- W9P2 Elastic Wave Equation - 1D Heterogeneous Case•60 minutes
Instructor
Explore more from Research Methods
- Status: Free TrialT
The Hong Kong University of Science and Technology
Course
- Status: PreviewU
University of Michigan
Course
- Status: PreviewU
University of Colorado Boulder
Course
- Status: PreviewJ
Johns Hopkins University
Course
Why people choose Coursera for their career
Learner reviews
- 5 stars
82.35%
- 4 stars
14.06%
- 3 stars
1.79%
- 2 stars
1.53%
- 1 star
0.25%
Showing 3 of 391
Reviewed on Jul 11, 2020
This is an excellent course as I have found. The instructor has taught us many important concepts including the detailed codes. I would love to join further courses from Prof. Igel.
Reviewed on Oct 15, 2020
Thank you very much! This was an amazing and very clear course. I will use the python codes in my research when possible.
Reviewed on Nov 26, 2019
A fascinating teaching technique, delivering quality content with a well-thought quizzes system! It' hard to find better courses in the domain of Finite Difference and Spectral Element methods
Frequently asked questions
To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.
When you purchase a Certificate you get access to all course materials, including graded assignments. Upon completing the course, your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.
Yes. In select learning programs, you can apply for financial aid or a scholarship if you can’t afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, you’ll find a link to apply on the description page.
More questions
Financial aid available,
