Utilities

Classes

Expression(parameter, expresssion)

Numerical parametric expression object.

LayerTable(obj)

Layer specification table viewer.

live_viewer.LiveViewer([port, start])

Live viewer for PhotonForge objects.

Layout Functions

grid_layout(objects[, gap, shape, align_x, ...])

Arrange components or other structures in a grid layout.

pack_layout(objects[, gap, max_size, ...])

Arrange components or other structures in a grid layout.

s_bend_length(offset[, radius, meander])

Compute the ideal S bend length for a given offset and radius.

Grid Functions

grid_ceil(value)

Snap the value to the current grid rounding towards +.

grid_floor(value)

Snap the value to the current grid rounding towards .

snap_to_grid(value)

Snap the value to the current grid.

Plot Functions

plot_s_matrix(s_matrix[, input_ports, ...])

Helper function to plot a component S matrix.

tidy3d_plot(obj[, frequency, technology, ...])

Helper function to plot a component through Tidy3D.