maxwelllink.tools.pulses module

Predefined laser electric-field profiles for MaxwellLink simulations.

These helpers return callables f(t_au) that evaluate the electric field in atomic units at time t_au and can be passed directly to LaserDrivenSimulation’s drive parameter.

maxwelllink.tools.pulses.cosine_drive(amplitude_au=1.0, omega_au=0.1, phase_rad=0.0)[source]

Return a continuous cosine drive.

\[E(t) = A \cos(\omega t + \phi)\]
Parameters:
  • amplitude_au (float, default: 1.0) – Oscillation amplitude in atomic units.

  • omega_au (float, default: 0.1) – Angular frequency in atomic units.

  • phase_rad (float, default: 0.0) – Phase offset in radians.

Returns:

A cosine drive suitable for steady-state excitation.

Return type:

callable

maxwelllink.tools.pulses.gaussian_enveloped_cosine(amplitude_au=1.0, t0_au=0.0, sigma_au=10.0, omega_au=0.1, phase_rad=0.0)[source]

Return a Gaussian-enveloped cosine drive.

\[E(t) = A \exp\left(-\frac{(t - t_0)^2}{2 \sigma^2}\right) \cos\bigl(\omega (t - t_0) + \phi\bigr)\]
Parameters:
  • amplitude_au (float, default: 1.0) – Peak field amplitude in atomic units.

  • t0_au (float, default: 0.0) – Temporal center of the pulse in atomic units.

  • sigma_au (float, default: 10.0) – Temporal sigma in atomic units.

  • omega_au (float, default: 0.1) – Angular frequency of the cosine wave in atomic units.

  • phase_rad (float, default: 0.0) – Phase of the cosine wave (radians).

Returns:

A function f(t_au) for use as a time-dependent electric field.

Return type:

callable

maxwelllink.tools.pulses.gaussian_pulse(amplitude_au=1.0, t0_au=0.0, sigma_au=10.0)[source]

Return a Gaussian pulse drive.

\[E(t) = A \exp\left(-\frac{(t - t_0)^2}{2 \sigma^2}\right)\]
Parameters:
  • amplitude_au (float, default: 1.0) – Peak field amplitude in atomic units.

  • t0_au (float, default: 0.0) – Temporal center of the pulse in atomic units.

  • sigma_au (float, default: 10.0) – Temporal sigma in atomic units.

Returns:

A function f(t_au) that evaluates the Gaussian pulse at t_au.

Return type:

callable