Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Adding Objects

addplane

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

For FDTD and MODE:

Adds a plane wave source to the simulation environment.

 

Supported Product: FDTD, MODE

 

Syntax

Description

addplane;

Adds a plane wave 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 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.

addplane;

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("wavelength start",0.3e-6);

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

 

See Also

Adding Objects, set, addplane, addgaussian, addtfsf

 

 

For DEVICE DGTD:

Adds a plane wave source to the 'DGTD' solver in DEVICE.  A DGTD solver region must be present in the objects tree for this command to work.

 

Supported Product: DEVICE

 

Syntax

Description

addplane;

Adds a plane wave source to the 'DGTD' solver.

 

This function does not return any data.

 

Example 1

The following script commands will add a plane wave source to the 'DGTD' solver already present in the objects tree and print the name of all of its properties.

 

addplane;

?set;

 

Example 2

The following script commands will add a plane wave source to the 'DGTD' solver, change its name, and set up its properties.  The script then sets the solid named "2D rectangle" as the injection surface.

 

addplane; 

set("name","plane_wave");

 

# set the propagation direction

set("direction definition","axis");

set("direction","backward");

set("angle theta",30);

set("angle phi",60);

 

# set the polarization angle

set("polarization angle",90);

 

# set the injection surface

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

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

 

See Also

adddgtdsolver

Copyright Lumerical Inc. | Privacy | Site Map