View on GitHub

EMpy

ElectroMagnetic Python — Computational Electromagnetics & Photonics Suite

Optical Ring Resonators & Photonic Filters in Python

EMpy.devices models optical ring resonators, coupled-resonator optical waveguides (CROW), Mach–Zehnder interferometers (MZI), and dispersive Fabry–Pérot etalons using analytical transfer-matrix and chain-matrix formulations (TransferMatrix, ChainMatrix, composeTMlist, composeCMlist).


Supported Ring Resonator & Device Models


Quick Python Example: Critical Coupling & Group Delay in a Silicon Microring

import numpy as np
import EMpy

wls = np.linspace(1.544e-6, 1.556e-6, 1201)
swg = EMpy.devices.SWG(450, 220, 25).solve(wls)  # 450x220 nm SOI waveguide
l_ring = 2.0 * np.pi * 10.0e-6                   # 10 um ring radius

# 18 dB/cm propagation loss -> complex effective index n_eff = n_r - i*kappa
dn_loss = EMpy.utils.loss_dBcm2rix(0.0, 18.0, 1.55e-6)
neff_lossy = swg.neff + dn_loss
a_rt = float(np.abs(np.exp(-1j * (2 * np.pi / 1.55e-6) * dn_loss * l_ring)))

# Single-Ring Add-Drop Resonator (SRR) at Yariv critical coupling
k2 = np.sqrt(0.04)  # 4% drop-bus power coupling
t2 = np.sqrt(1.0 - k2**2)
k1_crit = np.sqrt(1.0 - (t2 * a_rt) ** 2)

srr = EMpy.devices.SRR(
    EMpy.devices.Coupler(wls, k1_crit),
    EMpy.devices.Coupler(wls, k2),
    neff_lossy,
    0.5 * l_ring,
    0.5 * l_ring,
).solve()

# All-Pass Ring Resonator (APRR) group delay & chromatic dispersion
aprr = EMpy.devices.APRR(
    EMpy.devices.Coupler(wls, 1.65 * np.sqrt(1.0 - a_rt**2), 1.0),
    neff_lossy,
    l_ring,
).solve()
phi, tau_ps, disp_ps_nm = EMpy.utils.group_delay_and_dispersion(wls, aprr.THRU)

Optical ring resonators in Python: APRR group delay, SRR critical coupling, and 3-ring NRR CROW filter


Benchmark Scripts & References

See also: Methodology & References · All Examples