Re: [Meep-discuss] Regarding the near to far field calculation, where is the integration done?

2020-11-09 Thread Mandy Xia
Thank you and I will try increasing the resolution. My research lies in physically-based rendering in Computer Graphics, where I would like to apply wave optics to improve the accuracy of ray-based material models used in computer graphics. We are making the assumption that we are in the

Re: [Meep-discuss] Regarding the near to far field calculation, where is the integration done?

2020-11-09 Thread Steven G. Johnson
If it is just a problem with the precise grid, then it should go away as you increase the resolution. If the problem doesn't disappear with increasing resolution, then you have a bug somewhere else. (However, I'm curious about what you hope to learn from the far field. In a periodic

Re: [Meep-discuss] Regarding the near to far field calculation, where is the integration done?

2020-11-08 Thread Mandy Xia
Thank you Ardavan for the reference. My understanding of the near2far feature in cylindrical coordinate and the example is that we have rotational symmetry of the problem. In my case, I'm interested in a general cylinder that is periodic in the cylinder axis direction but does not necessarily have

Re: [Meep-discuss] Regarding the near to far field calculation, where is the integration done?

2020-11-08 Thread Mandy Xia
Hmm I was trying to efficiently compute contribution from a periodic cylinder structure and avoid the expensive spatial sum used in MEEP. I don’t think this functionality was implemented MEEP currently. On Sun, Nov 8, 2020 at 9:36 PM Ardavan Oskooi wrote: > For reference, note that the near2far

Re: [Meep-discuss] Regarding the near to far field calculation, where is the integration done?

2020-11-08 Thread Ardavan Oskooi
For reference, note that the near2far feature already exists for cylindrical coordinates. It was added in https://github.com/NanoComp/meep/pull/1090. (This implementation is based on integrating over φ using green3d.) For a demonstration, see this tutorial example

Re: [Meep-discuss] Regarding the near to far field calculation, where is the integration done?

2020-11-08 Thread Mandy Xia
Thank you so much for these pointers and they helped me a lot. I was able to implement a 3D Periodic Green's Function (PGF) in MEEP based on equation 3 in Rapidly Convergent Representations for Periodic Green’s Functions of a Linear Array in Layered Media (

Re: [Meep-discuss] Regarding the near to far field calculation, where is the integration done?

2020-11-02 Thread Steven G. Johnson
> On Nov 2, 2020, at 11:49 AM, Mandy Xia wrote: > Thank you so much Steven for this step-by-step explanation! It makes much > more sense to me now. > > Regarding the actual field calculation, I noticed that green3d uses the point > source field computation from a dielectric dipole moment

Re: [Meep-discuss] Regarding the near to far field calculation, where is the integration done?

2020-11-02 Thread Mandy Xia
Thank you so much Steven for this step-by-step explanation! It makes much more sense to me now. Regarding the actual field calculation, I noticed that green3d uses the point source field computation from a dielectric dipole moment (adopted from SCUFF-EM with some modification that changes

Re: [Meep-discuss] Regarding the near to far field calculation, where is the integration done?

2020-11-02 Thread Steven G. Johnson
> On Nov 2, 2020, at 1:35 AM, Mandy Xia wrote: > My high-level understanding of the near to far field calculation is that it > uses dft to compute equivalent current on the near field box and convolve > with the green's function to compute the field in the far field. When I > looked into the