Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taper sweep length #3

Closed
joamatab opened this issue Dec 20, 2022 · 5 comments
Closed

Taper sweep length #3

joamatab opened this issue Dec 20, 2022 · 5 comments

Comments

@joamatab
Copy link
Contributor

joamatab commented Dec 20, 2022

How can we sweep the length of a taper?

import gdsfactory as gf
import numpy as np
from gdsfactory.simulation.eme import MEOW

layerstack = gf.tech.get_layer_stack_generic()

filtered_layerstack = gf.tech.LayerStack(
    layers={
        k: layerstack.layers[k]
        for k in (
            "slab90",
            "core",
            "box",
            "clad",
        )
    }
)


lengths = np.array([1, 20, 60, 100])
T = np.zeros_like(lengths, dtype=float)

for length in lengths:
    c = gf.components.taper(width2=10, length=length)
    c.plot()

for i, length in enumerate(lengths):
    c = gf.components.taper(width2=10, length=length)
    eme = MEOW(component=c, layerstack=filtered_layerstack, wavelength=1.55)
    sp = eme.compute_sparameters()
    T[i] = np.abs(sp['o1@0,o2@0'])**2

import matplotlib.pyplot as plt

plt.plot(lengths, T, '.')
plt.title('Fundamental mode transmission')
plt.ylabel('Transmission')
plt.xlabel('taper length (um)')

I would expect a short taper would have more loss

image

@flaport
Copy link
Owner

flaport commented Dec 20, 2022

Are you sure the EME cell length remains constant between simulations? If the eme cell length is not constant it's probably not a fair comparison... I've added a very basic example here which does show that a shorter taper seems to have more loss.

@joamatab
Copy link
Contributor Author

joamatab commented Dec 21, 2022

Thank you Floris for the example

@joamatab
Copy link
Contributor Author

the taper for the gdsfactory still has some issues

https://gdsfactory.github.io/gdsfactory/notebooks/plugins/eme/01_meow.html

@simbilod
Copy link

simbilod commented Dec 21, 2022

See gdsfactory/gdsfactory#1038, we need to make sure simulation hyperparameters are fine enough

@joamatab
Copy link
Contributor Author

yes, thank you Simon and Floris, the cell_length was too small :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants