# Knowledge Base

Adds a power (field and power) monitor to the simulation environment.  The 'field and power' monitor also records the electric and magnetic field in the frequency domain along with the power.

 Supported Product: FDTD, MODE

 Syntax Description addpower; Adds a power monitor to the simulation environment. This function does not return any data.

Example

The following script commands will add a 2D z-normal frequency domain power monitor to the simulation region and set its dimension.

set("name","field_profile");

set("monitor type",7);  # 1 = point, 2 = linear x, 3 = linear y, 4 = linear z, 5 = 2D x-normal, 6 = 2D y-normal, 7 = 2D z-normal, 8 = 3D

set("x",0);

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

set("y",0);

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

set("z",0);