Mode#
- class pynlo.medium.Mode(v_grid, beta, alpha=None, g2=None, g2_inv=None, g3=None, rv_grid=None, r3=None, z=0.0)[source]#
Bases:
object
An optical mode.
An optical mode is defined in the frequency domain. All properties must be input as effective values, i.e. those found by integrating out the transverse spatial dependence of the medium and mode. If a parameter is z dependent, it can be input as a function who’s first argument is the propagation distance.
- Parameters:
- v_gridarray_like of float
The frequency grid.
- betaarray_like of float or callable
The phase coefficient, the real part of the complex wavenumber.
- alphaarray_like of float or callable, optional
The gain coefficient, twice the imaginary part of the complex wavenumber.
- g2array_like of complex or callable, optional
The effective 2nd-order nonlinearity.
- g2_invarray_like of float, optional
The location of all poled domain inversion boundaries.
- g3array_like of complex or callable, optional
The effective 3rd-order nonlinearity.
- rv_gridarray_like of float, optional
An origin-contiguous frequency grid associated with the 3rd-order nonlinear response function.
- r3array_like of complex or callable, optional
The effective 3rd-order nonlinear response function containing both the Raman and instantaneous nonlinearities.
- zfloat, optional
The initial position within the mode. The default is 0.
Notes
Forward traveling waves of a mode are defined using the following conventions:
\[\begin{split}E, H \sim a \, e^{i(\omega t - \kappa z)} + \text{c.c.} \\ \kappa = \beta + i \frac{\alpha}{2}, \quad \beta = n \frac{\omega}{c}\end{split}\]
Methods#
|
The group velocity mismatch, with units of |
|
The linear operator which advances a pulse over a distance dz. |
|
Copy the mode. |
Attributes#
The position within the mode, with units of |
|
The frequency grid, with units of |
|
The origin-contiguous frequency grid associated with the Raman response. |
|
The z dependence of the mode. |
|
The z dependence of the linear terms. |
|
The z dependence of the nonlinear terms. |
|
The gain coefficient, with units of |
|
The phase coefficient, or angular wavenumber, with units of |
|
The refractive index. |
|
The group walk-off parameter, with units of |
|
The group index. |
|
The group velocity, with units of |
|
The group velocity dispersion (GVD), with units of |
|
The dispersion parameter D, with units of |
|
The magnitude of the effective 2nd-order nonlinear parameter, with units of |
|
The location of all 2nd-order domain inversion boundaries within the mode. |
|
The poling status at the current z position. |
|
The effective 3rd-order nonlinear parameter, with units of |
|
The nonlinear parameter \(\gamma\), with units of |
|
The effective 3rd-order nonlinear response function containing both the Raman and instantaneous nonlinearities. |