Diffusion.py
This package is used to calculate 2-dimensional diffusion on a regular grid with the initial conditions defined in a png file. The border conditions are handeled by rolling over to the oposite edge and using the value specified there. This module is the final state in a row of examples for solving the same problem. All examples, shifting the very first quick&dirty soultion over a function-based version to this version are published in the GIT-project:
https://github.com/mmaelicke/diffusion.git
This module was programmed in order to illustrate proper programming for scientist using an easy to understand example. It does neither claim to be performant nor comprehensive to solve diffusion problems. The example was taken from the great book: High Performance Python by Micha Gorelick and Ian Ozsvald (O’Reilly). [Copyright 2014 Micha Gorelick and Ian Ozsvald, 978-1-449-36159-4].
Installation
Install this package using:
Usage
There is a command line tool called diffusion.py that takes an image with the initial conditions as a first argument, The diffusion parameter D as a second argument, the time step per increment dt as third argument and the total time steps to be simulated as fourth argument.
python diffusion.py image.png D dt iterations
Metadata
Release files for diff2d 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| diff2d-0.1.8.tar.gz | 4.0 kB | Without provenance | Details for diff2d-0.1.8.tar.gz |
Release files / diff2d-0.1.8.tar.gz
| Download URL | diff2d-0.1.8.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca4c41349f24fd710dd2edc6fecd9d3437a9b8e992e4b52a01833fc63544d227
|
|
BLAKE2b-256 checksum How to use checksums |
fd095ecaf5feebeb378c10726b15bc0eaddda6fca123a126006369607eddb502
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for diff2d 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.