Skip to content

lucia-agullo-marti/diffusion2d

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

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

Description

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

Installing the package

You can install the package using pip:

pip install martilo_diffusion2d

Running this package

After installation you can run the solver via Python:

from martilo_diffusion2d import solve
solve()

Citing

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

About

Repository of the Python packaging exercise of the SSE course

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%