Photonics

Photonics

Scripting for Gaussian Source – Thin Lens Beam Option

    • tgartner
      Subscriber
      Hello, nI 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 (https://support.lumerical.com/hc/en-us/articles/360034404434-addgaussian) 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.)nI wrote a script to sweep the location of my scalar gaussian source and would like to use it with thin lens option as well.nAny help would be great!nThanks!n
    • Taylor Robertson
      Ansys Employee
      Hello tgartner,nnThis should possible, you simply have to enable the thin lens and then the arguments such as NA, distance from focus etc will be used.nIn the example that you shared they have used the scaler implementation.nset(use scalar approximation,1);nnTo use thin lens the syntax would look like this.nset(use thin lens,1);nOther important options can be seen in the GUI.n
      Add Tags