Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Adding Objects

addindex

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

Adds an index monitor to the simulation environment.  In MODE Solutions an active varFDTD region needs to be present for this command to work.

 

Supported Product: FDTD, MODE

 

Syntax

Description

addindex;

Adds an index monitor to the simulation environment.

This function does not return any data.

 

Example

The following script command will add a 2D y-normal index monitor to the simulation region and set its dimension.

addindex;

set("name","index_monitor");

set("monitor type",2);  # 1 = 2D x-normal,  2 = 3D y-normal,  3 = 2D z-normal

set("x",0);

set("x span",5e-6);

set("y",0);

set("z",10e-6);

set("z span",5e-6);

 

If an FDTD Solutions the index monitor holds results automatically without running simulations if a solver region is present.  The following script command will add a solver region following the script above and will visualize the index preview.

addfdtd;

n = getresult("index_monitor","index preview");

visualize(n);

 

See Also

Adding Objects, set, addfdtd, addvarfdtd, getresult, visualize

Copyright Lumerical Inc. | Privacy | Site Map