victorliu / S4

Stanford Stratified Structure Solver - Electromagnetic simulator for layered periodic structures
http://www.stanford.edu/group/fan/S4/
GNU General Public License v2.0
131 stars 149 forks source link

Time averaged field calculations #72

Open bhogan1984 opened 6 years ago

bhogan1984 commented 6 years ago

Hi all, In order to calculate a time averaged value for the electric field I am varying the phase of the applied wave and averaging the field. This works fine using the S:GetEField({x,y,z}) command however when using the S:GetLayerZIntegral(layer, {x, y}) command the computed field does not change with phase of incoming wave.

Has anyone come across this before?

https://web.stanford.edu/group/fan/S4/lua_api.html says that this command does not return a time averaged value.