As of Lumerical release 2027 R1 and OptoCompiler 2026.03-SP2, parameter sweeps with otran and ONA are available in PrimeWave with an INTERCONNECT engine. To see the process of running analysis in OptoCompiler with INTERCONNECT, please see Using INTERCONNECT as an engine in OptoCompiler – Ansys Optics.
This article illustrates the parameter sweep analysis option with otran and ONA using the OptoCompiler and INTERCONNECT integration.
Setting up parameter sweeps
Parameters can be set via the OptoCompiler Schematic Editor, by selecting the instance of interest, and assigning an expression as the parameter Value. For example, the Value for the Length parameter of the selected instance below is defined as “l + m”, which means that it is parameterized by two independent variables.
In PrimeWave, these show as Variables, for example, “l” and “m”.
In PrimeWave, select Tools -> Parametric Analyses… to introduce sweep parameters, enable them, and set the type of sweep.
SWEEP TYPE: Either “Single Variable” or “Data Driven”. Use “Single Variable” for one sweep, or a nested parametric analysis. Generally, a first variable is swept with a certain number of iterations. At each iteration, the second, inner variable is swept for its full range of iterations. In this case, both parameters, “l” and “m” must have sweep type “Single Variable”. Refer to Creating nested parameter sweeps – Ansys Optics for more knowledge on nested sweeps. The functionality remains the same as this knowledge base for these sweeps in INTERCONNECT. For a parallel parametric analysis, where two variables are swept in parallel with the same iterations at the same values, the “Data Driven” sweep type must be enabled.
The sweeps, type of analysis, whether they are enabled, and the start and stop for the sweep iterations are shown in PrimeWave under Analysis, Type, En and Value on the right side of PrimeWave.
Running the parameter sweep
The Netlist can be created to show the variables to be swept via Simulation- > Netlist -> Create. Once the variables to sweep are setup as desired, the simulation can be run with progress on the sweep analyses via Simulation -> Netlist and Run. The job status, iterations that are queued, running and completed can be seen in the Netlist that shows automatically while the simulation runs.
Viewing the results
| Note: The process for ONA and otran parameter sweeps is very similar. The process for viewing results is shown for ONA, and the otran output view follows very similar steps. |
WaveView will automatically plot the results once the sweeps are complete. There may be multiple outputs, and the output section can be expanded with the plus symbol, +, at the Outputs in the top left of WaveView, immediately to the left of the plot axes. The results can be visualized in table format with Plot in Tabular, selected after clicking on the Output in the top left. Parameters that were varied are shown under “Variation Parameters” in this table.
If the sweep is performed using ONA, the Evaluate Plot option may be selected by right-clicking on the expression and selecting in PrimeWave to display the output in a plot. This option is used to plot specified values against parameter values.
Note: The syntax follows that of ONA analysis, with the calculator expression ona as explained in the ONA analysis section when using INTERCONNECT as an engine in OptoCompiler.
The syntax of the expressions is as follows:
yvalue(ona(port,attributes), xvalue_attributes),where attributes represents the y-value of the plot, and xvalue_attributes the x-value of the plotted figure. For example, the x values may be one of the swept variables. If the parameter sweep is disabled, this expression will result in a single value for the expression at each x-point. If the parameter sweep is enabled, the data can be plotted against the variable values.
If the parametric analysis is a 2x2 sweep (2 variables instead of only 1), then one variable along with its iteration values, is represented by the x-axis. The second variable is represented by multiple data curves of varying colors. Each color represents a different iteration of this second variable.
The variable that is represented by the x-axis may be changed by bringing out the WaveForm tab, clicking the leftmost arrow in the toolbar, selecting the toplevel of the results, right-click the variable of interest, and “Use as X Variable”, as is shown below for the variable called “coeff”.
The two variables, “l_wg” and “coeff” switch places from the x-axis and the “colored” curves, respectively:
See Also
Lumerical-OptoCompiler integration
Using INTERCONNECT as an engine in OptoCompiler – Ansys Optics