Skip to main content

Python library for describing time-dependent laserfields by Johannes Feist.

Project description

laserfields

laserfields is a library to describe the time-dependent electric fields of a laser pulse. It implements the same pulse shapes and most of the features of the laserfields library written in Fortran. 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.

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

laserfields-0.2.0.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

laserfields-0.2.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file laserfields-0.2.0.tar.gz.

File metadata

  • Download URL: laserfields-0.2.0.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.2

File hashes

Hashes for laserfields-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c39fd05c43877211f7cfdd051c26ebb7d7d0b7b0bd15289e3d63fb59505e994e
MD5 38c3a0b6197b4537fc8f1aa7ddcf2ba7
BLAKE2b-256 cf95deb4a56ecb72716e8ad81348826743688352366bd525ec7809ebb60b6849

See more details on using hashes here.

File details

Details for the file laserfields-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for laserfields-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac683870c4589578ee5ea9fb87c27a58856577b2f74212cc79a5608d1476bc77
MD5 ca01fed1932280151e33ddc2c0d69de3
BLAKE2b-256 58dda4027f36ede995d97dd2be79568c48037c84ded5407420037a62842c31a5

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