BYUCamachoLab / emepy

https://emepy.rtfd.io
MIT License
34 stars 8 forks source link

How to implement cylindrical geometries for modes and S parameter calculations #36

Open raksharuia opened 1 year ago

raksharuia commented 1 year ago

I am trying to find the best way to perform computations for S parameter calculation for cylindrical waveguides and structures formed of layers of different cylinders. I could not find it directly in the geometry class. Are an approximation of n sided polygon and/or providing an index ndarray the only way to go?

raksharuia commented 1 year ago

@hammy4815 found circle_to_n() in utils.py to simulate a circular transverse section. This returns a numpy array (2D) of refractive index profile but there are a few bugs in passing this 'n' to the ModeSolver class's MSEMpy.