semvec/pypi-packages huggingface dataset:
prepic 0.2.5
analytically estimate various laser-plasma parameters for experiments and PIC simulations
License: BSD license
Requires Python: >= 3.6
Keywords: prepic

=======
pre-PIC
=======


.. image:: https://img.shields.io/pypi/v/prepic.svg
   :target: https://pypi.python.org/pypi/prepic


.. image:: https://img.shields.io/travis/berceanu/prepic.svg
   :target: https://travis-ci.org/berceanu/prepic


.. image:: https://readthedocs.org/projects/prepic/badge/?version=latest
   :target: https://prepic.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status


.. image:: https://pyup.io/repos/github/berceanu/prepic/shield.svg
   :target: https://pyup.io/repos/github/berceanu/prepic
   :alt: Updates


.. image:: https://img.shields.io/lgtm/grade/python/g/berceanu/prepic.svg?logo=lgtm&logoWidth=18
   :alt: Language grade: Python
   :target: https://lgtm.com/projects/g/berceanu/prepic/context:python


.. image:: https://codecov.io/gh/berceanu/prepic/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/berceanu/prepic


.. image:: https://img.shields.io/pypi/l/prepic.svg
   :target: https://github.com/berceanu/prepic/blob/master/LICENSE
   :alt: PyPI - License


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


* Free software: BSD license
* Documentation: https://prepic.readthedocs.io


Features
--------

* estimation of accelerated bunch properties (charge, energy, etc.)
* estimation of betatron spectrum
* small codebase, with minimal dependencies
* support for SI units via `unyt <https://github.com/yt-project/unyt>`_


Quick start
-----------

Install the package via:

.. code-block:: console

        $ 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.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.