Sparse Matrices to Speed up Calculations (Part 2): Partial Differential Equations - 1-D Diffusion

3 years ago
40

We continue to dive in using sparse matrices in Numpy and Scipy to speed up calculations. In this video, we will solve a thermal diffusion problem in one dimension, turning the partial differential equation into a system of ordinary differential equations for which we have readily available solvers. We will compare the performance differences between generating our equation system with a for loop and generating it via sparse matrix multiplication.

Github: https://github.com/kpmooney/numerical_methods_youtube/blob/master/pde/1d_diffusion/1-d%20Diffusion.ipynb

Tip Jarhttps://paypal.me/kpmooney

Loading comments...