Hi, Thank you for your reply. Now I just consider the single frequency incident wave, which is the simplest case. So I think I do not need to do the the fourier transform. If you like, you can use a tm wave to test my code. Now I think the probable problem of the code is some parameters are not matched with meep. I am not sure. I hope you can check the code to help me find the errors. Thank you. Lei
Hi, I am sure you have considered this, but I remember from your previous posts on this subject that you sampled the electromagnetic field at a single time only (300 units, I think in your case). As far as I understand it though, the near-to-far field transform needs to be done in the frequency domain so you need to take the accumulated Fourier transform across at least one period of the fields and then use this value to get the far field. Apologies if you are already doing this, just thought I would make sure. I am working on a similar ntf code so would be interested to know if your approach is the one I should be taking. Regards, Ian --------------------------- Research PhD Student Photonics Group Dept. of Electrical & Electrical Engineering University of Bristol Rm 2.11, Queen's Building University Walk Bristol BS8 1TR email: [EMAIL PROTECTED] _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss <http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss>
_______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

