tidy3d_structures_from_layout

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

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

Parameters:
  • 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:

Tidy3D structures.

Return type:

list[tidy3d.Structure]

Example

The structures can be used to create Tidy3D simulations:

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