This package solves 2d diffusion heat equation using finite difference method. Available adjustable parameters are respectively dx, dy, and Diffusivity D. And output 4 stages of it in a matplotlib pyplot.

- Ensure python above 3.10.11, that I build with this version of python.
python --version- Install dependencies as specified in requiremnts
python -m pip install -r requirements.txt- Install the package
python -m pip install diffusion2dRunning it directly with default parameters
python diffusion2d/diffusion2d/diffusion2d.pyOr with specific parameters
python
import diffusion2d.diffusion2d as d2d
d2d.solve(dx=0.1, dy=0.1, D=4)The origin of this work is based on Chapter 7 of the book "Learning Scientific Programming with Python"