Shenfun -- Automated Spectral-Galerkin framework
Project description
Description
Shenfun is a high performance computing platform for solving partial differential equations (PDEs) by the spectral Galerkin method. The user interface to shenfun is very similar to FEniCS, but applications are limited to multidimensional tensor product grids. The code is parallelized with MPI through the mpi4py-fft package.
Shenfun enables fast development of efficient and accurate PDE solvers (spectral order and accuracy), in the comfortable high-level Python language. The spectral accuracy is ensured by using high-order global orthogonal basis functions (Fourier, Legendre, Chebyshev, Laguerre and Hermite), as opposed to finite element codes that are using low-order local basis functions. Efficiency is ensured through vectorization (Numpy), parallelization (mpi4py) and by moving critical routines to Cython or Numba. Shenfun has been used to run turbulence simulations (Direct Numerical Simulations) on thousands of processors on high-performance supercomputers, see the spectralDNS repository.
The demo folder contains several examples for the Poisson, Helmholtz and Biharmonic equations. For extended documentation and installation instructions see ReadTheDocs or this paper. Note that, since the publication of that paper, shenfun has been further developed with the possibility to use two non-periodic directions (see biharmonic demo). Furthermore, equations may be solved coupled and implicit (see MixedPoisson.py).
Installation
Shenfun can be installed using either pip or conda, see installation chapter on readthedocs.
Dependencies
Contact
For comments, issues, bug-reports and requests, please use the issue tracker of the current repository, or see How to contribute? at readthedocs. Otherwise the principal author can be reached at:
Mikael Mortensen mikaem at math.uio.no http://folk.uio.no/mikaem/ Department of Mathematics University of Oslo Norway
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
File details
Details for the file shenfun-2.0.4.tar.gz
.
File metadata
- Download URL: shenfun-2.0.4.tar.gz
- Upload date:
- Size: 110.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b9bd642e9d632b9c7e5c01f8ac6efcc0d35951a9906d1ccaecd6e13ad45b2f3 |
|
MD5 | 6bf4ab7f3db4abbb545a66664142cd97 |
|
BLAKE2b-256 | 1bbcc1360edde9c6f4b3adb903966526a1e739710eac5dda64f8c41fb5ad51ab |