Guilin Sun
Ansys Employee

You can modify your script for the generation of elliptical Gaussian beam in yz plane.

However since import zbf not in xy plane does not work right now, the simpler way to do this is to write your own script. Of course you can rotate the waveguide cross section to be in xy plane.