The script program needs to define the refractive index distribution value. Through several lines of program code, the refractive index value is read in turn, and the refractive index function n_f (R) graph is drawn by interpolation.
The following are the relevant graphs of fiber mode characteristics after the program runs:
Fig. 1 is a radial function graph, and different color curves correspond to different ι Value. In the figure, the refractive index distribution and the effective refractive index of the mode are also shown.

Figure 2 shows the intensity distribution pattern of the selected mode

Fig. 3 is a graph of the number of modes versus wavelength. At the wavelength of 1.96 um, there is only a single mode.

Fig. 4 shows that the effective refractive index is related to the wavelength. When the refractive index increases to the refractive index of the cladding, the corresponding cutoff wavelength is.

Fig. 5 shows the power corresponding to all modes and wavelengths in the core.
