Pulse#
- class pynlo.light.Pulse(n, v_ref, dv, v0=None, a_v=None, alias=1)[source]#
Bases:
TFGridAn optical pulse.
A set of complementary time and frequency grids are generated to represent the pulse in both the time and frequency domains.
- Parameters:
- nint
The number of grid points.
- v_reffloat
The target central frequency of the grid.
- dvfloat
The frequency step size. This is equal to the reciprocal of the time window.
- v0float, optional
The comoving-frame reference frequency. The default value is the center frequency of the resulting grid.
- a_varray_like of complex, optional
The root-power spectrum. The default value is an empty spectrum.
- aliasfloat, optional
The number of harmonics supported by the real-valued time domain grid without aliasing. The default is 1, which only generates enough points for one alias-free Nyquist zone. A higher number may be useful when simulating nonlinear interactions.
See also
pynlo.utility.TFGridDocumentation of the methods and attributes related to this class’s time and frequency grids.
Notes
The power spectrum and temporal envelope are normalized to the pulse energy e_p:
e_p == np.sum(p_v*dv) == np.sum(p_t*dt) == np.sum(rp_t*rdt)
The amplitude of the analytic root-power spectrum is a factor of
2**0.5larger than the double-sided root-power spectrum of the real-valued time domain. When transforming between the two representations use the following normalization:a_v = 2**0.5 * ra_v[rn_slice] ra_v[rn_slice] = 2**-0.5 * a_v
The comoving-frame reference frequency v0 is only used to adjust the group delay of the time window during pulse propagation simulations, it does not otherwise affect the properties of the pulse.
Methods#
|
Initialize a continuous wave. |
|
Initialize a set of time and frequency grids given the total number of grid points and a target minimum and maximum frequency. |
|
Initialize a pulse using existing spectral data. |
|
Initialize a Gaussian or super-Gaussian pulse. |
|
Initialize a squared Lorentzian pulse. |
|
Initialize a parabolic pulse. |
|
Initialize a squared hyperbolic secant pulse. |
|
|
|
Calculate the intensity autocorrelation and related diagnostic information. |
|
Copy the pulse. |
|
Complementary time and frequency domain grids for the representation of analytic functions with real-valued amplitudes. |
|
Calculate the spectrogram of the pulse through convolution with a Gaussian window. |
|
Calculate the width of the pulse in the time domain. |
|
Calculate the width of the pulse in the frequency domain. |
Attributes#
The root-power complex envelope, with units of |
|
The root-power spectrum, with units of |
|
The time grid step size of the analytic representation, with units of |
|
The frequency grid step size of the analytic representation, with units of |
|
The pulse energy, with units of |
|
The number of grid points of the analytic representation. |
|
The power envelope, with units of |
|
The power spectrum, with units of |
|
The phase of the complex envelope, in |
|
The spectral phase, in |
|
The real-valued instantaneous root-power amplitude, with units of |
|
The time grid step size of the real-valued time domain representation, with units of |
|
The frequency grid step size of the real-valued time domain representation, with units of |
|
The number of grid points of the real-valued time domain representation. |
|
The minimum and maximum indices of the origin-contiguous frequency grid, associated with the real-valued time domain representation, that correspond to the first and last points of the analytic frequency grid. |
|
A slice object that indexes the origin-contiguous frequency grid, associated with the real-valued time domain representation, onto the analytic frequency grid. |
|
The instantaneous power, with units of |
|
The time grid of the real-valued time domain representation, with units of |
|
The grid reference time of the real-valued time domain representation, with units of |
|
The span of the time grid in the real-valued time domain representation, with units of |
|
The origin-contiguous frequency grid of the real-valued time domain representation, with units of |
|
The grid reference frequency of the real-valued time domain representation, with units of |
|
The span of the frequency grid in the real-valued time domain representation, with units of |
|
The time grid of the analytic representation, with units of |
|
The grid reference time of the analytic representation, with units of |
|
The span of the time grid in the analytic representation, with units of |
|
The spectral group delay, with units of |
|
The comoving-frame reference frequency, with units of |
|
The array index of the comoving frame’s reference frequency. |
|
The frequency grid of the analytic representation, with units of |
|
The grid reference frequency of the analytic representation, with units of |
|
The span of the frequency grid in the analytic representation, with units of |
|
The instantaneous frequency of the complex envelope, with units of |