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

Aperiodic Structure With PML #101

Open
HiHatDoDot opened this issue Feb 16, 2022 · 4 comments
Open

Aperiodic Structure With PML #101

HiHatDoDot opened this issue Feb 16, 2022 · 4 comments

Comments

@HiHatDoDot
Copy link

Hi all,

I am trying to run a simulation with S4 in python for an aperiodic structure ;
This is something quite old in the use of RCWA, the strategy is to define the structure from top to bottom (z-axis) so that it is replicated periodically on the sides (x- and y-axes).
To isolate each replicated structure and field, Perfectly Matched Layers must be added on each side to avoid refraction and reflection.
This is widely documented, to make a long story short, you need several layers with complex eps.

I was able to define a simple 2D waveguide as beginning, I set firstly a large layer of Air then with SetRegionRectangle a block for my waveguide. Also with SetRegionRectangle, I put several blocks on the side of the lattice.
However python crashes as soon as I call the GetPowerFlux...

What I am doing wrong ?
Is this method feasible with S4 ?

Thank you for any response

Romain

@HiHatDoDot
Copy link
Author

Hi there,
I still don't know if this is possible with S4.
However, I have found this software RETICOLO made by the authors that generalise RCWA to aperiodic structures with PML.
I could contact them and they send me the version of RETICOLO that can perform this kind of simulation.

@xpdong22
Copy link

I wonder if you can send me the RETICOLO codes with PML? My email is [email protected] you!

@HiHatDoDot
Copy link
Author

I have no more, you should contact Jean Paul HUGONIN

@mfschubert
Copy link

mfschubert commented Aug 26, 2023

Hi @xpdong22, @HiHatDoDot, you might be interested in fmmax, which implements FMM/RCWA and supports anisotropic magnetic materials and uniaxial PML.

We have one example involving PML, which consists of a dipole located above a metal substrate. Here is a cross section of the electric field amplitude from that calculation; the PML layers are to the left and right sides of the figure.

https://github.com/facebookresearch/fmmax/blob/main/examples/metal_dipole.py

image

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