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".
This project simulates the diffusion equation in 2D domain using finite difference methods. The simulation demonstrates how heat diffuses in a square region with an initial high-temperature circle at the center. The resulting temperature distrubution is visualized using Matplotliib.
You can install this package from TestPyPI using the following command:
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple <your_username>_diffusion2D
Once your package is live on PyPI, you can install it using:
pip install <your_username>_diffusion2D
This package requires numpy and matplotlib libraries. These dependencies are automatically installed when you install the package via pip.
After installation, you can use following command to run the simulation:
python3 -m diffusion2d
This will generate a 2D plot showing the diffusion process at different time steps.
This project is based on materials from book Learning Scientific Programming with Python