Skip to main content

LCODE is a free software for simulationplasma wakefield acceleration based on QSA.

Project description

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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lcode-0.3.1.tar.gz (84.3 kB view details)

Uploaded Source

Built Distribution

lcode-0.3.1-py3-none-any.whl (105.4 kB view details)

Uploaded Python 3

File details

Details for the file lcode-0.3.1.tar.gz.

File metadata

  • Download URL: lcode-0.3.1.tar.gz
  • Upload date:
  • Size: 84.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for lcode-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c068d44b54c562147ada55c539e2ec6a1b26a8d4224615f733b4279ca78d5b28
MD5 063ee1a79946bcc90fde38f16c2affcf
BLAKE2b-256 bb4166a5189b43a552f36036ca099a2ba77fd9c56beb669d53faf1b503a39170

See more details on using hashes here.

File details

Details for the file lcode-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: lcode-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 105.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for lcode-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f9edaba77d272a2aa621c9dcbb891733fc1158bd083b10d55f1d072dea8617e6
MD5 92f5c61c3f2e6802d95c122d7c1169f3
BLAKE2b-256 e6667f982b078948298dcf7380bab3362be0e446dd4cd4fe17da1c5123c08d93

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page