Scripting for Gaussian Source - Thin Lens Beam Option

tgartnertgartner Member Posts: 5


I would like to know how it is possible to script the thin lens beam option for gaussian source in Lumerical. I have found the scripting language for the scalar gaussian source in the Lumerical support section here ( but this does not detail how to (or if its possible) to script the thin lens option (for inputs of NA, distance from focus, fill lens, lens diameter, etc.)

I wrote a script to sweep the location of my scalar gaussian source and would like to use it with thin lens option as well.

Any help would be great!



  • trobertstroberts Posts: 71Ansys Employee

    Hello tgartner,

    This should possible, you simply have to enable the thin lens and then the arguments such as NA, distance from focus etc will be used.

    In the example that you shared they have used the scaler implementation.

    set("use scalar approximation",1);

    To use thin lens the syntax would look like this.

    set("use thin lens",1);

    Other important options can be seen in the GUI.


Sign In or Register to comment.