Skip to main content

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

Project description

pre-PIC

https://img.shields.io/pypi/v/prepic.svg https://img.shields.io/travis/berceanu/prepic.svg Documentation Status Updates Language grade: Python https://codecov.io/gh/berceanu/prepic/branch/master/graph/badge.svg PyPI - License

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

Features

  • 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
[LTJT]Lu, Wei, et al. Physical Review Special Topics-Accelerators and Beams 10.6 (2007): 061301.

History

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.

Files for prepic, version 0.2.4
Filename, size File type Python version Upload date Hashes
Filename, size prepic-0.2.4-py2.py3-none-any.whl (19.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size prepic-0.2.4.tar.gz (28.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page