Examples#
You can use the examples below to get started with PyLumerical and learn its basic functionalities.
For in-depth discussion of PyLumerical concepts, see the User guide.
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 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.