EME: Taper
The simplest EMode example of an EME simulation.
This code example is licensed under the BSD 3-Clause License.
import emodeconnection as emc
## Set simulation parameters
wavelength = 1550 # [nm] wavelength
dx, dy = 20, 20 # [nm] resolution
h_core = 220 # [nm] waveguide core height
h_clad = 1000 # [nm] waveguide top and bottom clad
window_width = 4000
window_height = h_core + h_clad*2
num_modes = 10 # [-] number of modes
BC = 'TE'
## Connect and initialize EMode
em = emc.EMode(verbose = True)
## Settings
em.settings(
wavelength = wavelength, x_resolution = dx, y_resolution = dy,
window_width = window_width, window_height = window_height,
num_modes = num_modes, boundary_condition = BC,
background_material = 'SiO2')
## Draw shapes
em.shape(name = 'BOX', material = 'SiO2',
height = h_clad)
em.shape(name = 'core', material = 'Si',
height = h_core, etch_depth = h_core)
## Launch FDM solver and label profiles
em.shape(name = 'core', mask = 1000)
em.FDM(profile = 'a')
em.report()
em.plot()
em.shape(name = 'core', mask = 2000)
em.FDM(profile = 'b')
em.report()
em.plot()
## Draw EME sections
em.straight_section(
profile = 'a',
length = 2000)
em.taper_section(
profile = 'a', profile_end = 'b',
length = 8000)
em.straight_section(
profile = 'b',
length = 2000)
## Run EME and plot results
em.EME()
em.plot()
em.plot_S_matrix()
## Close EMode
em.close()
Console output:
EMode3D 1.0.5 - email
Meshing completed in 0.2 sec
Solving modes completed in 0.7 sec
Wavelength: 1550.0 nm Solver: FDM
Mode # n_eff TE % Loss (dB/m)
-------- -------- ------ -------------
TE-0 2.744942 99.8 % 0.000
TE-1 1.819107 92.4 % 0.000
TM-2 1.665463 11.8 % 0.000
TE-3 1.381565 99.9 % 0.000
TM-4 1.368264 1.9 % 0.000
TM-5 1.349166 0.8 % 0.000
TE-6 1.279775 98.0 % 0.000
TE-7 1.243507 99.4 % 0.000
TE-8 1.219186 96.4 % 0.000
TM-9 1.207915 0.5 % 0.000
Meshing completed in 0.3 sec
Solving modes completed in 0.7 sec
Wavelength: 1550.0 nm Solver: FDM
Mode # n_eff TE % Loss (dB/m)
-------- -------- ------- -------------
TE-0 2.821143 100.0 % 0.000
TE-1 2.606186 99.7 % 0.000
TE-2 2.123806 98.2 % 0.000
TM-3 1.939105 4.9 % 0.000
TM-4 1.565876 16.8 % 0.000
TE-5 1.430615 75.4 % 0.000
TM-6 1.361727 27.9 % 0.000
TM-7 1.334510 7.9 % 0.000
TE-8 1.305090 95.2 % 0.000
TE-9 1.285377 75.9 % 0.000
Solving S-matrices...
Solving section: 1... completed in 0.0 sec
Solving section: 2...
Solving slice at 4000.0 nm... completed in 1.0 sec
Solving slice at 6000.0 nm... completed in 1.1 sec
Solving slice at 2000.0 nm... completed in 0.9 sec
Solving slice at 7000.0 nm... completed in 0.9 sec
Solving slice at 5000.0 nm... completed in 1.1 sec
Solving slice at 3000.0 nm... completed in 1.1 sec
Solving slice at 1000.0 nm... completed in 0.9 sec
Solving slice at 7500.0 nm... completed in 0.9 sec
Solving slice at 6500.0 nm... completed in 1.1 sec
Solving slice at 5500.0 nm... completed in 1.1 sec
Solving slice at 4500.0 nm... completed in 0.9 sec
Solving slice at 3500.0 nm... completed in 1.0 sec
Solving slice at 2500.0 nm... completed in 1.0 sec
Solving slice at 1500.0 nm... completed in 0.9 sec
Solving slice at 500.0 nm... completed in 1.1 sec
Solving slice at 6250.0 nm... completed in 1.1 sec
Solving slice at 5750.0 nm... completed in 1.0 sec
Solving slice at 5250.0 nm... completed in 1.1 sec
Solving slice at 4750.0 nm... completed in 1.0 sec
Solving slice at 4250.0 nm... completed in 1.1 sec
Solving slice at 3750.0 nm... completed in 1.1 sec
Solving slice at 3250.0 nm... completed in 1.0 sec
Solving slice at 2750.0 nm... completed in 1.1 sec
Solving slice at 1750.0 nm... completed in 0.9 sec
Solving slice at 6125.0 nm... completed in 1.1 sec
Solving slice at 5875.0 nm... completed in 1.1 sec
Solving slice at 3625.0 nm... completed in 1.1 sec
Solving slice at 3375.0 nm... completed in 1.2 sec
Solving slice at 3125.0 nm... completed in 1.2 sec
Solving slice at 1875.0 nm... completed in 1.0 sec
Solving slice at 1625.0 nm... completed in 1.0 sec
Solving slice at 6062.5 nm... completed in 1.1 sec
Solving slice at 5937.5 nm... completed in 1.2 sec
Solving slice at 3312.5 nm... completed in 1.1 sec
Solving slice at 3187.5 nm... completed in 1.2 sec
Solving slice at 1937.5 nm... completed in 1.0 sec
Solving slice at 1812.5 nm... completed in 1.1 sec
Solving slice at 1687.5 nm... completed in 1.0 sec
Solving slice at 6093.8 nm... completed in 1.2 sec
Solving slice at 1968.8 nm... completed in 1.0 sec
Solving slice at 1906.2 nm... completed in 1.0 sec
Solving slice at 1921.9 nm... completed in 1.0 sec
Solving slice at 1929.7 nm... completed in 1.0 sec
Solving slice at 1925.8 nm... completed in 1.0 sec
completed in 56.1 sec
Solving section: 3... completed in 0.0 sec
completed in 56.1 sec
Exited EMode
Figures: