Skip to content

tidy3d_structures_from_layout

tidy3d_structures_from_layout(
filename, technology=None, cell_name=None, classification='optical'
)

Convert a layout cell to Tidy3D structures according to a technology specification.

Args

  • filename (str): GDSII/OASIS file name to load.
  • technology (Technology | None): Technology used to create the layout. If not specified, the current default technology will be used.
  • cell_name (str | None): Desired cell from the layout. If not specified, the loader will try to determine the top-level cell to be loaded.
  • classification (Literal[“optical”, “electrical”]): Frequency classification indicating which type of medium to use.

Returns

list[tidy3d.Structure]: Tidy3D structures.

Example

The structures can be used to create Tidy3D simulations:

>>> structures = pf.tidy3d_structures_from_layout(
... filename, technology, main_cell_name
... )
>>> simulation = td.Simulation(
... ...
... structures=structures,
... ...
... )