Spectral, quasi-3D Particle-In-Cell for CPU and GPU
FBPIC is a Particle-In-Cell (PIC) code for relativistic plasma physics.
It is especially well-suited for physical simulations of laser-wakefield acceleration and plasma-wakefield acceleration, with close-to-cylindrical symmetry.
Language and harware
FBPIC is written entirely in Python, but uses Numba Just-In-Time compiler for high performance. In addition, the code can run on CPU (with multi-threading) and on GPU. For large simulations, running the code on GPU can be much faster than on CPU.
The installation instructions below are for a local computer. For more details, or for instructions specific to a particular HPC cluster, see the documentation.
Install the dependencies of FBPIC. This can be done in two lines:
conda install numba scipy h5py conda install -c conda-forge mpi4py pyfftw
Download and install FBPIC:
pip install fbpic
Optional: in order to run on GPU, install the additional package pyculib:
conda install -c numba pyculib
Once installed, FBPIC is available as a Python module on your system.
Therefore, in order to run a physical simulation, you will need a Python script that imports FBPIC’s functionalities and use them to setup the simulation. You can find examples of such scripts in the documentation or in this repository, in docs/source/example_input/.
Once your script is ready, the simulation is run simply by typing:
We welcome contributions to the code! Please read this page for guidelines on how to contribute.
FBPIC was originally developed by Remi Lehe at Berkeley Lab, and Manuel Kirchen at CFEL, Hamburg University. The code also benefitted from the contributions of Soeren Jalas, Kevin Peters and Irene Dornmair (CFEL).
If you use FBPIC for your research project: that’s great! We are very pleased that the code is useful to you!
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|fbpic-0.5.2-py3-none-any.whl (184.1 kB) Copy SHA256 Checksum SHA256||py3||Wheel||Sep 9, 2017|
|fbpic-0.5.2.tar.gz (145.9 kB) Copy SHA256 Checksum SHA256||–||Source||Sep 9, 2017|