NanoComp / meep

free finite-difference time-domain (FDTD) software for electromagnetic simulations
GNU General Public License v2.0
1.22k stars 621 forks source link

near to far field code #1386

Open b10esun opened 4 years ago

b10esun commented 4 years ago

Had previously been getting strange results in the near-to-far code when focusing on a specific x value in the near field box. E.g.:

image

To debug, we performed some basic, single point emitter simulations to make sure results made sense (top image). Everything seemed to work fine.

When adding two point emitters (bottom image), only a single flux output was found. Why is this happening? Why are we not seeing two distinct point emission peaks in the farfield flux output?

image

stevengj commented 4 years ago

Why are we not seeing two distinct point emission peaks in the farfield flux output?

I don't understand your geometry — is it two point sources at the same frequency in vacuum as seems to be shown in your images at right?

In that case, why would you expect two distinct peaks in the far field? Far away (much farther than the separation between the sources), you can't distinguish between two point sources and one point source with twice the amplitude.

b10esun commented 4 years ago

The geometry is two point sources at the same frequency in air.

Well, I suppose if we can distinguish the point depends on the resolution, correct? The fact that the single emission point has a very sharp (not broad at all) detection in the far field, if we had two distinct points sufficiently far away from each other (which should be the case here), we should have two distinct detection (similar to the top image, but with two peaks instead of one).

It doesn't make sense that there is a very high peak in the center of the bottom image. If it was a resolution thing, it would probably a broader double peak rather than a sharp single peak, right?

Thanks

b10esun commented 4 years ago

Any updates on this yet?