Examples#
You can use the examples below to get started with PyLumerical and learn its basic functionalities.
For discussion of PyLumerical concepts, see the User guide.
Simulation automation#
These examples demonstrates basic simulation automation using PyLumerical for various Lumerical products.
This example demonstrates how to initialize a local Lumerical session using PyLumerical.
This example demonstrates how to set up a basic FDTD simulation with a Gaussian source and frequency-domain monitor. The example uses PyLumerical with workflows and syntax similar to the Lumerical Scripting Language.
This example demonstrates how to set up a basic FDTD simulation with a Gaussian source and frequency-domain monitor. This example uses PyLumerical with workflows and syntax that is more native to Python.
This example demonstrates how to set up a basic MODE simulation to calculate the supported modes of a waveguide.
This example demonstrates how to set up and run a simple HEAT simulation to calculate the temperature profile for a thermal waveguide tuner.
This example uses built-in Lumerical Structure and Analysis Groups to calculate the resonant frequencies of photonic crystals using FDTD. Lumerical’s built-in sweep tool is used to calculate the full bandstructure.
This example runs RCWA simulations to create a unit cell library and constructs a full metalens in FDTD. The full metalens is simulated using symmetric boundary conditions in FDTD. A top-down monitor collects the fields after the structures and far-field calculations are used to plot the focusing behavior.
This example demonstrates how to set up a basic INTERCONNECT simulation to calculate the transmission spectrum of a ring resonator.
Photonic inverse design#
These examples focuses on the use of the lumopt2 module for photonic inverse design.
This example demonstrates the use of lumopt2 for the inverse design of a Y-branch.
It utilizes a custom function to enforce symmetric parametrization, and exports the final design to a GDSII file.