gamma_to_g3#
- pynlo.utility.chi3.gamma_to_g3(v_grid, gamma, t_shock=None)[source]#
Convert from the gamma to the g3 nonlinear parameter.
The t_shock parameter is used to determine the strength of the self-steepening effect when gamma is only given at a single point. If an array is given for gamma, it is assumed to already contain the self-steepening effect.
- Parameters:
- v_gridarray_like of float
The frequency grid.
- gammaarray_like
The effective nonlinear parameter.
- t_shockfloat, optional
The characteristic time scale of optical shock formation. This time scale is typically equal to
1/(2*pi*v0)
, where v0 is the frequency at which gamma is defined, but it may also contain corrections to gamma due to the frequency dependence of the optical mode. This parameter is only valid if gamma is given at a single point.
- Returns:
- g3