addgaussian - Script command
Adds a Gaussian source to the simulation environment.
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.
addgaussian;
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);
set("waist radius w0",0.5e-6);
set("distance from waist",-5e-6);
See Also