In my project, I need to calculate the near fields at some specific points, so I added dft point monitors to get the fields. However, when the results were compared with that achieved from a planar dft monitor, a significant difference is appeared.
The verification steps are described below:
Add a planar dft monitor (set _monitortype in the follow code as "plane"), run the simulation, get the dft fields E1 and the coordinates of points where fields are recorded.
Add point dft monitors by two for-loop (set _monitortype in the follow code as "point"),, the center of the point monitors are set as the same to coordinates got from step1. Run the simulation, and get the dft fields E2.
Compare E1 and E2.
There are two main problems:
E2 contains A lot of NAN value.
At some point monitors, the difference between E1 and E2 is unaccepable.
The code for a test case (plane wave propogation in free spapce) ard results are shown below.
In my project, I need to calculate the near fields at some specific points, so I added dft point monitors to get the fields. However, when the results were compared with that achieved from a planar dft monitor, a significant difference is appeared.
The verification steps are described below:
There are two main problems:
The code for a test case (plane wave propogation in free spapce) ard results are shown below.