modesolverpy icon indicating copy to clipboard operation
modesolverpy copied to clipboard

Please add an example for multilayer-core waveguides

Open LyubenDavidov opened this issue 1 year ago • 0 comments

I have been trying to simulate a rib waveguide with a core made-up of different layers of InP with different doping (and therefore different refractive indices). I used my_waveguide = sb.Slabs(...) and my_waveguide.add_slab(...) to recreate my layerstack, however, I have no way of passing my_waveguide down to my structure = st.RidgeWaveguide(...), as the RidgeWaveguide function only takes a float for the n_wg parameter. Could you please add an example or give some advice on how to implement this? I figured out that I can use the array from my_waveguide.n to replace the core of structure.n, given that both st.RidgeWaveguide(...) and sb.Slabs(...),my_waveguide.add_slab(...) use the same x_step, y_step parameters, and have the same dimensions for the width and height of the waveguide.

LyubenDavidov avatar Sep 22 '24 09:09 LyubenDavidov