This BeamLab demo calculates the field distributions and effective refractive indices of the eigenmodes of a step-index fiber with a circular core.
BeamLab demo script: fiber_modes.m
The following figures show the three field components of the first 4 low-order modes as field contour lines. The black lines indicate the core-cladding boundary.
BeamLab is an award-winning set of simulation tools for beam propagation through optical devices and waveguides in your familiar MATLAB® environment. It offers a high flexibility in waveguide design and post-processing of any output data.