laserfields
laserfields is a python library to describe the time-dependent electric fields
of a laser pulse, and can be installed with pip install laserfields or conda -c conda-forge install laserfields. It implements the same pulse shapes and
most of the features of the laserfields
library written in Fortran (and as the
Julia variant LaserFields.jl),
please see the documentation of that library for the parameter meanings,
conventions used, etc. In particular, the "main" function
make_laserfield(**kwargs...) accepts the same parameters as the Fortran
library parameter files as keyword arguments, and returns an instance of a
subtype of the base class LaserField depending on the parameters. E.g., to
create a Gaussian pulse with a duration (defined as the FWHM of the intensity)
of 6 fs, a wavelength of 800 nm, a peak intensity of 1e14 W/cm^2, and with the
peak at time t=7fs, one should call
lf = make_laserfield(form="gaussianI", is_vecpot=true, lambda_nm=800,
intensity_Wcm2=1e16, duration_as=6000, peak_time_as=7000)
Given a LaserField instance lf, the functions lf.E(t),
lf.E_fourier(ω), lf.A(t), and lf.A_fourier(ω) can be used to obtain,
respectively, the electric field as a function of time, its Fourier transform
(implemented for most pulse shapes), the vector potential as a function of time,
and its Fourier transform. Calling the instance as a function, lf(t) returns
the electric field, i.e., is equivalent to lf.E(t). The notebooks in the
examples folder show some ways to use the library, including how to define a
set of fields through a YAML configuration file.
In addition to the pulses described by each LaserField instance, the library
also implements a LaserFieldCollection class that can be used to combine
multiple fields into a single effective one (i.e., the sum of the individual
ones). It is also a LaserField instance and supports much of the same
interface. Note that some of the parameters it contains are just "best-effort"
values and may not be fully meaningful for the combined field - e.g., for the
carrier frequency lf.ω0, it returns the highest value in the collection, to
support use cases where this is used to define maximum time step in a numerical
propagation, or the maximum frequency evaluated in a Fourier transform.
The "effective" duration of the pulse for n-photon processes can be obtained as
lf.Teff(n_photon), which is the integral over the pulse intensity envelope to
the n-th power (i.e., electric field envelope to the (2n)th power)
over the pulse, see, e.g., https://doi.org/10.1103/PhysRevA.77.043420 (Eq. 14).
Metadata
Release files for laserfields 0.5.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 |
|---|---|---|---|---|
| laserfields-0.5.0.tar.gz | 3.1 MB | Without provenance | Details for laserfields-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| laserfields-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for laserfields-0.5.0-py3-none-any.whl |
Total release size: 3.1 MB
Release files / laserfields-0.5.0.tar.gz
| Download URL | laserfields-0.5.0.tar.gz |
|---|---|
| Size | 3.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72e7b718d9a3f837de0a624df192f5ef3aac5b8fca56dedcfc871442b526bec7
|
|
BLAKE2b-256 checksum How to use checksums |
fe5a75b33b88a176ac6fd7de9ca5bbef62f74e0338b94a5387cae06930b4f447
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.34.2
|
Release files / laserfields-0.5.0-py3-none-any.whl
| Download URL | laserfields-0.5.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ada93a44eda94dbe56fa4174e2185fc68f25a89c67f88ec885c29fbc09853086
|
|
BLAKE2b-256 checksum How to use checksums |
dce20c0c19ae6d7dcfbd3ea64d57746136b57041371046542747072692bf4d71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.34.2
|
Security for laserfields 0.5.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.