Skip to content

Vaish-W/diffusion2D

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

diffusion2D

Instructions for students

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".

Project description

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.

Installing the package

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

Using pip3 to install from PyPI

Once your package is live on PyPI, you can install it using:

pip install <your_username>_diffusion2D

Required dependencies

This package requires numpy and matplotlib libraries. These dependencies are automatically installed when you install the package via pip.

Running this package

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.

Citing

This project is based on materials from book Learning Scientific Programming with Python

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%