Propagation of optical modes in guides** 

.

The effective index method :

The optical modes may be computed in closed form  if planar guides are considered. Within two successive steps (vertical and horizontal), you can compute the modes in a 3-D guide section.
cover (preliminary step)
"cover" 
guide layer - core
"substrate" 
substrate (preliminary step)

The trick is :

From the effective index, the horizontal profile is computed as a piecewised function : sines with a spatial frequency in the core and decaying exponentials  outside the core.

Watch the modal interference :

First compute (<modes>) the mode 0 in a narrow guide (say 6 um), then click <mode 0 as input beam>, this mode is stored with the corresponding guide width to be later on, injected into a larger guide (change guide width to, say, 66 um). Click <modes> again to compute all the modes of this large guide and how much they are excited by the input..
With the <go/stop> or <one step> buttons, display the propagation of the beam in the larger guide : because of the difference of propagation speeds, the excited modes interfere addtivelely  or not depending on the position.
You can go back, changing the parameters of the second guide (just compute modes again) and/or of the input guide (<modes> + "mode 0 as input").
The phase, magnitude and the location of the input beam is taken into account when modes in the second guide are computed and when inputs are added
The color checkbox toggles between the beam profile show in the current section (at distance z, adjustable) or smart colored top-view : sensitivity is adjusted with the scroll bar.
Menus allows: Feel free to ask, comment, compliment or criticize, I need feedback !