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 code simulates the 2D diffusion equation on a square domain, with the entire domain set to an initial temperature and a circular disc at the center maintained at a higher temperature. Using the Finite Difference Method, the code solves the diffusion equation, allowing the user to adjust the thermal diffusivity and initial conditions of the system. The simulation outputs four plots at different time points, vividly illustrating the progression of the diffusion process.
pip install --user --index-url https://test.pypi.org/simple/ tischlre_diffusion2d
pip install numpy matplotlib
from tischlre_diffusion2d.diffusion2d import solve
solve(dx = 0.1, dy = 0.1, D = 4)
This was forked from https://github.com/Simulation-Software-Engineering/diffusion2D.