# Knowledge Base

Adds a Total Field Scattered Field (TFSF) source to the simulation environment.

 Supported Product: FDTD, MODE

 Syntax Description addtfsf; Add a total field scattered field source to the simulation environment. This function does not return any data.

Example

The following script command will add a plane wave source in the FDTD simulation environment that will propagate in the negative z direction.  The script will set the dimension (and position) of the source and will define the frequency range.

set("injection axis","z");

set("direction","backward");

set("x",0);

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

set("y",0);

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

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

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

set("wavelength start",0.3e-6);

set("wavelength stop",1.2e-6);