Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > EME Solver Analysis

emesweep

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

When in Analysis mode using EME solver, runs either propagation sweep tool which sweeps the length of a cell group span or mode convergence sweep tool which sweeps the number of modes. .

 

Supported Product: MODE Solutions

 

Syntax

Description

emesweep;

emesweep("propagation sweep");

Run propagation sweep.

emesweep("mode convergence sweep");

Run mode convergence sweep.

 

 

Examples

This code will set up, run and collect the user s-matrix result from the propagation sweep tool in Analysis mode. The result from the propagation sweep is packaged in a dataset called "S".

 

# set propagation sweep settings

setemeanalysis("propagation sweep",1);

setemeanalysis("parameter","group span 2");

setemeanalysis("start",10e-6);

setemeanalysis("stop",200e-6);

setemeanalysis("number of points",10);

 

# run propagation sweep tool

emesweep;

 

# get propagation sweep result

S = getemesweep('S');

 

# plot S21 vs group span

s21 = S.s21;

group_span = S.group_span_2;

plot(group_span,abs(s21)^2);

 

 

This code will set up, run and collect the user s-matrix result from the mode convergence sweep tool in Analysis mode. The result from the mode convergence sweep is packaged in a dataset called "S_mode_convergence_sweep".

 

# set mode convergence sweep settings

start_mode = 4; #set smaller number of modes for convergence test

mode_interval = 1; #set mode interval for convergence test

 

setnamed("EME","number of modes for all cell groups",25); #should be the largest number of modes desired for test

 

setemeanalysis("mode convergence sweep", 1);

setemeanalysis("start mode", start_mode);

setemeanalysis("mode interval", mode_interval);

 

# run mode convergence sweep tool

emesweep("mode convergence sweep");

 

# get mode convergence sweep result

S = getemesweep("S_mode_convergence_sweep");

 

# plot S21 vs number of modes

s21 = S.s21;

modes = S.modes;

plot(modes, abs(s21)^2);

 

See Also

EME solver analysis, Spot size converter, setemeanalysis, getemesweep

Copyright Lumerical Inc. | Privacy | Site Map