Open avpanov opened 2 years ago
This is certainly possible in Meep.
Have you looked at our Mie-scattering example? https://meep.readthedocs.io/en/latest/Python_Tutorials/Basics/#mie-scattering-of-a-lossless-dielectric-sphere
This example describes obtaining the scattered flux. This is a classical problem that can be solved with MEEP. Here, I need to obtain the distribution of the electric field component Fourier transforms inside a volume containing a scatterer.
I tries to generate with MEEP the electric field distributions inside the volume containing scatterer (a high-index nondispersive sphere) in order to use it with the program of Multipole Expansion for NanoPhotonics (MENP) https://github.com/Hinamoooon/MENP . Originally it utilizes the data from Lumerical generated with total-field scattered-field (TFSF) source. I used the approach for obtaining scattered flux, that is I subtracted the electric fields of normalization run from the run with scatterer illuminated by a Gaussian pulse. But results for the visible range spectrum are different from the theory and tests of MENP. I tried to normalize the electric field component Fourier transforms by dividing with current spectrum or by dividing with sqrt(input flux). The electric field Fourier transforms are obtained with fields::add_dft_fields(). Have you any ideas how to implement this simulation with MEEP?