lcodePy
Overview
LCODE is a free software for numerical simulation of particle beam-driven plasma wakefield acceleration. LCODE is based on the quasistatic approximation, capable of simulation in 2D and 3D geometry, and can use GPUs and CPUs.
For now, this under active development. This is a complete overhaul of the old C version in Python.
- Website: https://lcode.info
- Documentation: https://lcode.info/docs
Instalation
We use Anaconda and we recommend installing lcode in a separate environment. Any other python installation should work fine, but has not been tested.
- Create a new environment and install the dependencies:
conda create -n lcode-env -c conda-forge numba numpy scipy matplotlib mpi4py
or
conda env create -f conda-env.yml
where conda-env.yml is avalible in sources.
- Acivate the new environment:
conda activate lcode-env
- Optional: in order to run simulations on GPU, add cupy and other necessary packages to the line of dependencies when creating a new eviroment. Check in advance if you have the drivers for your GPU installed. It is not necessary to install CUDA Toolkit in advance. For any other questions about cupy, please check https://docs.cupy.dev/en/stable/install.html
conda create -n lcode-env -c conda-forge numba numpy scipy matplotlib cupy
- Install lcode:
pip install lcode
or download sources from GitHub and run the forlowing command in downloaded directory:
pip install .
You can also find a more mature 2D version of LCODE at http://lcode.info/.
Fill free to contact team@lcode.info for assistance with it.
Metadata
Release files for lcode 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lcode-0.4.0.tar.gz | 94.5 kB | Without provenance | Details for lcode-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lcode-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for lcode-0.4.0-py3-none-any.whl |
Total release size: 213.4 kB
Release files / lcode-0.4.0.tar.gz
| Download URL | lcode-0.4.0.tar.gz |
|---|---|
| Size | 94.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7f6be4d65f1108e3c060bc4631ef123511fbed19e216c7641dcf7506ee5ee63
|
|
BLAKE2b-256 checksum How to use checksums |
90be0408dc7eb14dcee84371ed89487f573ffb363b70ca50a4cd180ea789b159
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / lcode-0.4.0-py3-none-any.whl
| Download URL | lcode-0.4.0-py3-none-any.whl |
|---|---|
| Size | 118.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35907f5f7ccaaab7506c4182cecfda6fbf7c843f4efbf234ae84425d4be0971a
|
|
BLAKE2b-256 checksum How to use checksums |
27c9a40cc11b533c002880dcd8714888bd25a1617a308076405d419c6c54cd73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for lcode 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.