This notebook shows a simple, scalar implementation of the finite difference [1] for solving the Nonlinear Schrödinger Equation [2].
This nonlinear partial differential equation models how the envelope and phase of light pulse changes when propagating through a single mode optical fiber, when taking power attenuation (
In addition, we introduce a normalized amplitude U as:
We now take into consideration a space scale normalized to the fiber length as:
Where L is the fiber length. Thus, it turns out that
Where
The concept behind this normalization process is to exclude any kind of overflow error that may occur during solving the PDE with finite difference method. The derivation of the dimensionless transformation for the nonlinear Schrödinger equation can be found here [4]. The plotting functions originally came from here [5].
I did some observations when I ran the code with different conditions. The time grid is fine enough, when