Initial Setup
Computed TMnm/TEnm -modes
This is set of two numbers associated with indexing of modes in a rectangular waveguide. As we know the rectangular waveguide modes are characterized in terms of TEnm (Hnm) and TMnm (Enm). As the computational approach used here assumes X-axis symmetry and optional Y-axis symmetry of waveguide structure, we haven= 2*kx+1 and m= (1+isym)*ky ,
where kx and ky can be any natural numbers but isym can be only 0 (no y-symmetry) or 1 (y-symmetry). In terms of such representation of mode indexing we enter the maximum numbers for kx and ky for TE and TM modes taken into account in junctions but less than 10.