NanoComp / meep

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

`DftNear2Far` class contains no member function to compute Poynting flux of its near/monitor fields #2665

Open oskooi opened 9 months ago

oskooi commented 9 months ago

The DftNear2Far class which is instantiated using add_near2far contains a member function flux(self, direction, where, resolution) used to compute the Poynting of a "far" region specified by where. DftNear2Far contains no member function to compute the flux of its near/monitor fields.

(This is why the tutorial in #2629 involved two separate but overlapping DFT fields regions created using add_near2far and add_flux. The DftFlux class created using add_flux was used to compute the flux of the "near" fields.)