Spotscan with a 2D Gaussian Beam Using DOE

optoex20.in : Spotscan with a 2D Gaussian Beam Using DOE

Requires: S-Pisces/Luminous or Victory Device 2D/Victory Device_2D_Luminous
Minimum Versions: Atlas 5.28.1.R or Victory Device 1.14.1.R

This example demonstrates:

  • How to simulate a spotscan with a 2D Gaussian intensity profile beam

This example shows how to use Batch DOE to perform a spotscan with a Gaussian beam. The beam is defined with a set-variable as the location of the mean value of the Gaussian source in the beam coordinate system. DOE requires a target deck in which variables are defined and used, and the results of interest are extracted.

The target deck, optoex20_target.in, is based on optoex10, but with a wider Gaussian, so the definition of the beam is becomes:

beam num=1 x.origin=2.5 y.origin=-5.0 angle=90 wavelength=0.623 rays=101 gaussian x.mean=$xm xsigma=5

where the set-variable is defined earlier in the deck with

set xm=-7.5

Note that the value of {bold} xsigma is 5, so the full width of the beam is twice the width of the detector.

After biasing the detector, a solution is found with the beam on and the result is extracted from the log file with the following syntax:

extract name="photocurrent" max(curve(v."substrate",i."substrate"))

The DOE file, optoex20.in, starts with the go internal command which transfers control from the current simulator (i.e. Atlas) to DBInternal. The DOE file consists of the following sections:

  • The load command specifies which target file should be used for multiple runs.
  • The sweep command specifies how the variable parameter xm in the target file should be changed. In this example the mean location of the Gaussian beam varies from -10 to 10. The number of simulations is set to 21.
  • The save command tells DBInternal to collate the data generated in the extract command into the file "optoex20.dat".

After all simulations are complete, the resulting photocurrent vs x.mean is plotted in TonyPlot.

To load and run this example, select the Load button in Deckbuild -> Examples. This action will copy all associated files to your current working directory. Select the run button in Deckbuild to execute the example.

The input deck provided with this example can be run by either Victory Device or Atlas, just by changing the simulator name in the go command from go victorydevice to go atlas