py-pde
py-pde is a Python package for solving partial differential equations (PDEs).
The package provides classes for scalar and tensor fields discretized on grids
as well as associated differential operators.
This allows defining, inspecting, and solving typical PDEs that appear for
instance in the study of dynamical systems in physics.
The focus of the package lies on easy usage to explore the behavior of PDEs.
However, core computations can be compiled transparently using numba for speed.
Installation
py-pde is available on pypi, so you should be able to install it through
pip:
pip install py-pde
In order to have all features of the package available, you might also want to install the following optional packages:
pip install h5py pandas tqdm
Moreover, ffmpeg needs to be installed and for creating movies.
Usage
A simple example showing the evolution of the diffusion equation in 2d:
from pde.common import *
grid = UnitGrid([64, 64]) # generate grid
state = ScalarField.random_uniform(grid) # generate initial condition
eq = DiffusionPDE(diffusivity=0.1) # define the pde
result = eq.solve(state, t_range=10) # solve the pde
result.plot() # plot the resulting field
More examples illustrating the capabilities of the package can be found in the
examples folder.
A detailed documentation is available on readthedocs
and as a single PDF file.
Metadata
Release files for py-pde 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py-pde-0.2.tar.gz | 192.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_pde-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 415.7 kB
Release files / py-pde-0.2.tar.gz
| Download URL | py-pde-0.2.tar.gz |
|---|---|
| Size | 192.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
374380dcdb5452622014a8efe7f045a4845bc825ad22de40fcc4c449cffc7bfc
|
|
BLAKE2b-256 checksum How to use checksums |
89e0f514135d630d895988a350b7417de185d5abefb571b25d16ed7767d41387
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|
Release files / py_pde-0.2-py3-none-any.whl
| Download URL | py_pde-0.2-py3-none-any.whl |
|---|---|
| Size | 223.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6798b6c55d9b83916653a8a1c9d3369d30222c0a6aed743a6e17d88712a8e70
|
|
BLAKE2b-256 checksum How to use checksums |
80f43c524e544aa616617d9ef6e2558111cb4f499d6dada8874c34b6e1ade591
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|