Please enable JavaScript to view this site.

Knowledge Base

Adds a 2D rectangle in the simulation space.

 

Supported Product: FDTD, MODE, DEVICE

 

Syntax

Description

add2drect;

Adds a 2D rectangle in simulation space.

This function does not return any data.

 

Example

The following script creates a 2D rectangle on the XY plane, sets its dimension, and assigns a material to it.

add2drect;

set("name","2D_rectangle");

set("surface normal",3);  #  1 = x (normal), 2 = y (normal), 3 = z (normal)

set("x",1e-6);

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

set("y",1e-6);

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

set("z",0);

set("material","Si (Silicon) - Palik");

 

See Also

Adding Objects, set, Structure - 2D rectangle, add2dpoly, Structure - 2D polygon

Copyright Lumerical Inc. | Privacy | Site Map