Skip to main content

Module for calculating 2D Diffusion.

Project description

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

diff2d-0.1.5.tar.gz (3.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page