Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Adding Objects

addemfieldmonitor

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

Adds a frequency domain EM (electro-magnetic) field monitor to the 'DGTD' solver in DEVICE.  Along with the EM field data the monitor also reports the net flux through the surface of the monitor.  A DGTD solver region must be present in the objects tree for this command to work.

 

Supported Product: DEVICE

 

Syntax

Description

addemfieldmonitor;

Adds a frequency domain EM field monitor to the 'DGTD' solver.

 

This function does not return any data.

 

Example 1

The following script commands will add a frequency domain EM field monitor to the 'DGTD' solver already present in the objects tree and print all available properties of the monitor.

 

addemfieldmonitor;

?set;

 

Example 2

The following script commands will add a frequency domain EM field monitor to the 'DGTD' solver, change its name, set its frequency span to be the same as the source, and assign it to a solid named "2D rectangle".

 

addemfieldmonitor; 

set("name","T");

 

# set the frequency range based on the source settings

set("use source limits",1);

set("reference source","plane_wave");  

 

# set the assigned surface

set("surface type","solid");

set("solid","2D rectangle");

 

NOTE: The script above assumes that there is already a solid named "2D rectangle" and a source named "plane_wave" present in the objects tree.

 

See Also

adddgtdsolver, addemabsorptionmonitor, addemfieldtimemonitor

Copyright Lumerical Inc. | Privacy | Site Map