Please follow the instructions in pypi_exercise.md.
The code used in this exercise is based on Chapter 7 of the book "Learning Scientific Programming with Python".
diffusion2d is a Python package that provides a solver for the 2D diffusion equation using finite difference methods.
The implementation simulates heat diffusion in a square plate with the following initial conditions:
- cold square domain with T=300K
- hot circular disc at the center with T=700K
You can install the package using pip:
pip install martilo_diffusion2dAfter installation you can run the solver via Python:
from martilo_diffusion2d import solve
solve()If you use diffusion2d in your work, please cite it as follows:
Author: Lucia Agullo Marti
Title: diffusion2d - A 2D diffusion solver in Python
Version: 0.0.1
Repository: https://github.com/lucia-agullo-marti/diffusion2d