Bent waveguide analysis