Skip to content

Repository of the Python packaging exercise of the SSE course

License

Notifications You must be signed in to change notification settings

HenryCai-st/diffusion2d

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

diffusion2d

Description

This package solves 2d diffusion heat equation using finite difference method. Available adjustable parameters are respectively dx, dy, and Diffusivity D. And output 4 stages of it in a matplotlib pyplot. Output preview

Installing the package

  1. Ensure python above 3.10.11, that I build with this version of python.
python --version
  1. Install dependencies as specified in requiremnts
python -m pip install -r requirements.txt
  1. Install the package
python -m pip install diffusion2d

Running this package

Running it directly with default parameters

python diffusion2d/diffusion2d/diffusion2d.py

Or with specific parameters

python
import diffusion2d.diffusion2d as d2d
d2d.solve(dx=0.1, dy=0.1, D=4)

Citing

The origin of this work is based on Chapter 7 of the book "Learning Scientific Programming with Python"

About

Repository of the Python packaging exercise of the SSE course

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%