Re: [Meep-discuss] Near-to-far-field problems

2019-03-03 Thread Shaun Lung
Hi Erik, That explains a lot, thank you. I don't suppose there's a way to perform an analogous copy and paste without expanding the unit cell? The actual problem I intend to work with in Meep may be a very large cell, and one without any exploitable symmetries. That said, I'll look into mode decom

Re: [Meep-discuss] Near-to-far-field problems

2019-03-01 Thread Erik Shipton
Hi Shaun, I'm happy that my comment helped you figure out the near2far problem you were having. I think I've ran into the problem you're having now too. The near2far transformation you're using for this is only using a single period of your periodic structure. Now you've got a single period wor

Re: [Meep-discuss] Near-to-far-field problems

2019-02-28 Thread Shaun Lung
Hi all! First of all, Erik Shipton, thank you for the help. That helped me to figure out the discrepancy between the farfield simulation and the full simulation, but I've encountered some new problems. Now, I'm simulating a simple pillar on glass, with the structure as follows: Working in 3D dimens

Re: [Meep-discuss] Near-to-far-field problems

2019-02-17 Thread Shaun Lung
Hi all, Thank you for pointing that out. I had thought that the near-to-far feature should work well even in the near range, but testing it, it seems that working in the actual far-field range, it works perfectly. Thank you! ___ meep-discuss mailing list

Re: [Meep-discuss] Near-to-far-field problems

2019-02-13 Thread Erik Shipton
If your results picture is the entire simulation then you're not simulating the waves into the far field. From a simple estimate the distance to the farfield zone is d_ff = 2*D^2 / lamda where D is the distance between the furthest edge of your slits gives about 33 waves (maybe off by factor of 2.

Re: [Meep-discuss] Near-to-far-field problems

2019-02-13 Thread Erik Shipton
Are you in the far field? The near-to-far field transform requires you to be in the farfield https://en.wikipedia.org/wiki/Near_and_far_field. On Wed, Feb 13, 2019 at 5:30 PM Shaun Lung wrote: > Hi all, > I'm returning to this topic, still somewhat confused. Any help would be > appreciated. > >

Re: [Meep-discuss] Near-to-far-field problems

2019-02-13 Thread Shaun Lung
Hi all, I'm returning to this topic, still somewhat confused. Any help would be appreciated. I'm still working with a double slit experiment as a toy model, and trying to understand the near-to-far functions. I simulate a double slit experiment with a continuous excitation, using complex fields an

Re: [Meep-discuss] Near-to-far-field problems

2019-01-20 Thread Shaun Lung
First of all, I apologise if this isn't added to the correct thread, I haven't used a mailing list before. Ardavan, Thank you for the suggestions. I've tried your suggestions - namely, I've checked the convergence by doubling the runtime and the resolution for the full simulation, and verified tha

Re: [Meep-discuss] Near-to-far-field problems

2019-01-17 Thread Ardavan Oskooi
It's possible that your results are not converged in both runs (see: https://meep.readthedocs.io/en/latest/FAQ/#checking-convergence). In your "full" simulation, you are using a continuous source and running for an arbitrarily run time until the fields have eventually reached steady state. Howe

[Meep-discuss] Near-to-far-field problems

2019-01-15 Thread Shaun Lung
Hi all! I'm trying to use the near to far field projection of meep. I'm working with a toy model of a simple double slit experiment. Using a full simulation (code here ) I generated a 2D double slit. This looks reasonable: https://