SSE Python Exercise
Project description
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 code solves the diffusion equation in 2D over a square domain which is at a certain temperature and a circular disc at the center which is at a higher temperature. This code solves the diffusion equation using the Finite Difference Method. The thermal diffusivity and initial conditions of the system can be changed by the user. The code produces four plots at various timepoints of the simulation. The diffusion process can be clearly observed in these plots.
Installing the package
To install from TestPyPI (at the time this README is written, the latest version on TestPyPI is 0.0.14):
pip3 install -i https://test.pypi.org/simple/ gemaakmd-diffusion2d===0.0.14
or you can install without specifcying the version:
pip3 install -i https://test.pypi.org/simple/ gemaakmd-diffusion2d
Using pip3 to install from PyPI
At the time this README is written, latest version on PyPI is 0.0.14.
pip3 install gemaakmd-diffusion2d===0.0.14
or you can install without specifcying the version:
pip3 install gemaakmd-diffusion2d
Required dependencies
Matplotlib:
pip3 install matplotlib
Numpy:
pip3 install numpy
Running this package
You can include this line to use the solve() method:
from gemaakmd_diffusion2d import diffusion2d
diffusion2d.solve()
Citing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gemaakmd_diffusion2d-0.0.14.tar.gz.
File metadata
- Download URL: gemaakmd_diffusion2d-0.0.14.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f19836b8100a2ac6292e6b5fcdecb3cce1382015fd93626fdc6d7dba3f208bee
|
|
| MD5 |
ccbf9da176e5af24238d31109ac9c220
|
|
| BLAKE2b-256 |
2949bdff455a863d0517ad4e1fae9e14533565acc3e3da9560367fb4256b0cbb
|
File details
Details for the file gemaakmd_diffusion2d-0.0.14-py3-none-any.whl.
File metadata
- Download URL: gemaakmd_diffusion2d-0.0.14-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53c2f401fa4b8f7289e5c0154f74e8cdc562b287bc06969f1aa0d3679be3d98e
|
|
| MD5 |
9c430050eff258a8169ed1d12cd87c79
|
|
| BLAKE2b-256 |
003daba958122dc2f2786c44c6ec82cf3ffcb4a2772a3416cb06a30b1b51a3bb
|