NanoComp / meep

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

Planewave in 3D model #2588

Closed Din-Y closed 1 year ago

Din-Y commented 1 year ago

Hello everyone, I am still trying to realize a 3D model with planewave at oblique incidence. For oblique incidence I use theta and phi (azimuth) angles and two dft monitors to get Ey and Ez fields. At phi = 45 degree I should get Ey and Ez field with the same amplitudes and the assumption is confirmed by lumerical results. But MEEP performed one component field (which is specified in source) with high amplitude and the other component field with low amplitude. Could you tell me please, how I can solve the problem? Thanks! m

stevengj commented 1 year ago

What source current are you using?

Din-Y commented 1 year ago

What source current are you using?

The images obtained with GaussianSource, additionally I tried ContinuousSource and the results were practically the same.

stevengj commented 1 year ago

The time dependence doesn't matter here since you are using a DFT monitor (though I would recommend a GaussianSource so that you only need a short simulation). The key question is what is the spatial profile and orientation of the current source?

Can you just post the code for your current source?