# Knowledge Base

Adds a Gaussian source to the simulation environment.

 Supported Product: FDTD, MODE

 Syntax Description addgaussian; Adds a Gaussian source to the simulation environment. This function does not return any data.

Example

The following script command will add a Gaussian source in the 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 beam waist radius using scalar approximation.

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",10e-6);

set("use scalar approximation",1);