You are on page 1of 1

APL720 Computational Fluid Dynamics

Problem set – 7 (Due: 18/03/2024)

The one dimensional diffusion equation given below is to be solved using both Jacobi and
Gauss-Seidel Iterative methods.

(a) Let 𝑘 = 1, 𝑓(𝑥) = 1. Integrate the above differential equation using finite volume
method and obtain a system of algebraic equations of the form 𝐴𝑥 = 𝑏. Consider
uniform grid size.

(b) Write MATLAB/Python code to solve the system of equations using Jacobi and
Gauss-Seidel iterative methods. Compare the convergence of both these methods by
plotting the error vs iterations.

(c) Comment on the accuracy of the iterative methods by comparing the iterative methods
to the analytical solution of the given differential equation. What are the ideas you
would like to pursue to improve the convergence of Gauss Seidel method.

You might also like