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

Problem: a even_symmetric structure with odd_symmetric source #2664

Open
chenshang2 opened this issue Oct 5, 2023 · 2 comments
Open

Problem: a even_symmetric structure with odd_symmetric source #2664

chenshang2 opened this issue Oct 5, 2023 · 2 comments

Comments

@chenshang2
Copy link

chenshang2 commented Oct 5, 2023

Hello everyone.

I have some problems when indicating the symmetries in a simulation. so for a structure with mirror symmetry along y plane, and pumped by an odd source (TE modes), you need a -1 phase factor to calculate the right field. I am simulating this kind of device and I find that when I indicate: mp.Mirror(mp.Y,phase=-1) with a TE0 mode. the simulation will not converge and keep running, the DFT field shows that in the beginning the field seems fine but after around 200 time steps the field just disappears. Do you have any suggestions like where I should be more careful? Thanks!

Update: this bug only appears when there is an inverse-designed region (material grid) there..... the version I am using is v1.20.0

@stevengj
Copy link
Collaborator

stevengj commented Oct 5, 2023

the DFT field shows that in the beginning the field seems fine but after around 200 time steps the field just disappears.

Have never seen that. Is it blowing up or something?

@chenshang2
Copy link
Author

the DFT field shows that in the beginning the field seems fine but after around 200 time steps the field just disappears.

Have never seen that. Is it blowing up or something?

Yeah I tried v1.22.0, and in a low resolution (10pixel/um), the simulation blows up with an error that the simulated field goes to inf..... but right now the simulation is fine after I double the resolution. Just curious why the symmetry could blow up the simulation in my previous case? I used to think that the symmetry only tried to copy the field and with certain phase factors.

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

2 participants