Pystella
A Python framework for solving partial differential equations on CPUs and GPUs using OpenCL and MPI.
What it is
Pystella is a Python-based framework designed for the expression and solution of partial differential equations (PDEs). It leverages loopy for code generation and pyopencl for execution, enabling high-performance computations on both CPUs and GPUs. The framework supports MPI parallelization across multiple OpenCL devices via mpi4py, making it suitable for large-scale scientific simulations.
Key features include finite differencing for spatial derivatives, low-storage Runge-Kutta methods for time stepping, and utilities for Fourier space operations like fast Fourier transforms and field power spectra. It also offers tools for generating Gaussian-random fields, vector and tensor projections, and spectral solvers. Pystella simplifies the process of defining PDE systems and automating the generation of efficient OpenCL kernels.
The framework is particularly useful for researchers and engineers working in computational physics, cosmology, and other fields requiring numerical solutions to PDEs. It helps users avoid manual kernel writing by automating code generation, thus reducing development time and potential errors.
Installation steps are provided to get started, including guidance on running on various devices like GPUs and using existing MPI implementations. The documentation includes references for code generation, time stepping, finite differencing, Fourier space operations, and other functionalities, along with a FAQ section addressing common questions and pitfalls.
This description was generated by AI from the site's public content and may contain errors.
What you can do there
- Solve partial differential equations numerically
- Generate OpenCL kernels automatically with loopy
- Run simulations on CPUs and GPUs with pyopencl
- Parallelize computations across devices with MPI
- Access documentation and tutorials for code generation and time stepping
Who it's for
Researchers and engineers in computational physics and cosmology needing PDE solutions.
Frequently asked questions about pystella.readthedocs.io
›What is Pystella used for?
Pystella is a Python framework for solving partial differential equations on high-performance computing hardware like CPUs and GPUs, using OpenCL and MPI for parallelization.
›How does Pystella generate code?
It uses loopy for automated code generation, producing efficient OpenCL kernels from high-level Python descriptions of PDE systems.
›What methods does Pystella support for time integration?
It includes low-storage Runge-Kutta methods like RK54 and classical Runge-Kutta methods for time stepping in PDE simulations.
›Can Pystella handle MPI parallelization?
Yes, it supports MPI parallelization across multiple OpenCL devices via mpi4py, enabling distributed computations.
›What types of differential operators does Pystella implement?
It provides finite differencing for spatial derivatives, including centered differences and stencil expansion, as well as Fourier space operations for spectral methods.
›Is Pystella suitable for cosmological simulations?
Yes, it includes examples like scalar-field preheating after inflation, with options for gravitational waves, demonstrating its use in cosmology.
›How do I install and run Pystella?
Installation involves setting up Python, pyopencl, and MPI dependencies, with documentation guiding users on device selection and configuration.
