Skip to main content

analytically estimate various laser-plasma parameters for experiments and PIC simulations

Project description

pre-PIC Documentation Status Updates Language grade: Python PyPI - License

analytically estimate various laser-plasma parameters for experiments and PIC simulations


  • estimation of accelerated bunch properties (charge, energy, etc.)

  • estimation of betatron spectrum

  • small codebase, with minimal dependencies

  • support for SI units via unyt

Quick start

Install the package via:

$ pip install prepic

Estimate ideal laser-plasma matching parameters based on scaling laws from [LTJT]:

>>> import unyt as u

>>> from prepic import matched_laser_plasma

>>> laser_plasma = matched_laser_plasma(a0=4.4 * u.dimensionless)
>>> print(laser_plasma)
Plasma with nₚ=1.1e+18 cm**(-3) (6.06e-04 × nc), ωₚ=0.058 1/fs, kₚ=0.193 1/µm, λₚ=32.5 µm, Ewb=98.8 MV/mm
Pc=28.0 TW, Ldeph=23.85 mm, Ldepl=23.85 mm, ΔE=2472.0 MeV over Lacc=23.85 mm
N=4.5e+09 electrons, Q=723.5 pC, η=0.114

Lu, Wei, et al. Physical Review Special Topics-Accelerators and Beams 10.6 (2007): 061301.


0.2.5 (2022-09-30)

  • Fix compatibility issues with Python 3.10 and latest version of unyt

0.2.4 (2019-11-07)

  • Release pins on setup deps

0.2.3 (2019-11-06)

  • Update dependency versions

0.2.2 (2019-10-07)

  • Added user warning for undulator case

0.2.1 (2019-10-02)

  • Added new dependencies

  • Pinned dependency versions

0.2.0 (2019-10-02)

  • Added synchrotron spectrum

  • Implemented betatron scaling laws

  • Added unit checking

0.1.0 (2019-06-24)

  • Added documentation

  • Added unit and regression tests

  • Created examples

0.0.1 (2019-06-18)

  • First release on PyPI.

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

prepic-0.2.5.tar.gz (29.3 kB view hashes)

Uploaded source

Built Distribution

prepic-0.2.5-py2.py3-none-any.whl (19.7 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page