Ansys Learning Forum › Forums › Discuss Simulation › Photonics › Running an optimization through scripting in Lumerical › Reply To: Running an optimization through scripting in Lumerical
May 23, 2023 at 3:56 pm
Guilin Sun
Ansys Employee
The internal "mean" is to average the monitor data; the second mean is to average the 4 monitor data. Polarization average will be done inside the sweep.
The polarization average can be done in side the sweep of optimization.
As replied early, you can do this either in analysis group with 4 monitors, or in "model" which can control all the monitors. You will need scripting very similar to the analysis group to get the average or sum of the monitor data. Please check the photonics crystal exmaple.