tidy3d.GdsSlab¶
- class tidy3d.GdsSlab(material, gds_cell, gds_layer=None, gds_dtype=None, gds_scale=1.0, z_cent=0, z_size=1, z_min=None, z_max=None, name=None)¶
A structure defined through a GDS cell imported through
gdspy
. All polygons and paths included in the cell are assumed to lie in the xy-plane, with the same center and size in z, and made of the same material. Optionally, the integergds_layer
andgds_dtype
index can be provided. If not, all structures in the cell are imported.- __init__(material, gds_cell, gds_layer=None, gds_dtype=None, gds_scale=1.0, z_cent=0, z_size=1, z_min=None, z_max=None, name=None)¶
Construct.
- Parameters
material (Material) – Material of the structure.
gds_cell (gdspy.Cell) – A GDS Cell containing all polygons and paths to be imported.
gds_layer (int, optional) – Layer index to select by. If
None
, all indexes are taken.gds_dtype (None, optional) – Data type index to select by. If
None
, all indexes are taken.gds_scale (float, optional) – (micron) Length scale in units of micron.
z_cent (float) – (micron) Center of the structure in z.
z_size (float) – (micron) Thickness of the structure in z.
z_min (None, optional) – (micron) Beginning of the structure along z.
z_max (None, optional) – (micron) End of the structure along z.
name (str, optional) – Custom name of the structure.
Note
If
z_min
andz_max
are provided, they overridez_cent
andz_size
.
Methods
__init__
(material, gds_cell[, gds_layer, …])Construct.