This lecture teaches how to model waveguide circuits using 2D FDTD. It includes the formulation and implementation of a finite-difference frequency-domain function to calculate the modes in a slab waveguide. This is used to excite waveguides in FDTD as well as calculate how much power resides in each mode at the circuit output.
Be sure to visit the EMPossible Course website for updated lecture notes and course materials, as well as links to develop MATLAB codes. The Course page can be found here: https://empossible.net/academics/emp5304/
Check out all of the EMPossible course materials and workshops: https://empossible.net/