I have been following the FDTD tutorials for GPAW, and have been able to determine how to print the electric field strength (magnitude), but not the components of the electric field. How would I do this?

Thank you, Jason Gray

The tutorials I am following are: this one for the classical case and this one for the hybrid quantum/classical scheme.

  • $\begingroup$ +1. Welcome to the site and thank you so much for contributing your question here! We hope to see much more of you in the future !!!!! We also have a GPAW chat room (which is still new, so there's not a lot of chat going on yet). Please type "hello" to us at least once so that we know you're interested in GPAW! chat.stackexchange.com/rooms/112878/gpaw $\endgroup$ Commented Oct 22, 2020 at 21:17
  • $\begingroup$ This might also be related, and I'm posting it here since the finite-difference-time-domain tag didn't exist before! mattermodeling.stackexchange.com/q/2380/5 $\endgroup$ Commented Oct 22, 2020 at 21:48
  • $\begingroup$ Hi! It would nice if you could add in links to the tutorials you've followed to learn the software in case its useful to other users. $\endgroup$ Commented Oct 22, 2020 at 22:30
  • $\begingroup$ I just added links to the tutorials. Good call! $\endgroup$ Commented Oct 22, 2020 at 22:50
  • 1
    $\begingroup$ @JasonMGray Please answer your own post with that information so it can be preserved, comments should not be considered permanent. $\endgroup$ Commented Oct 23, 2020 at 16:43

1 Answer 1


You can get the induced field components from an induced field object. If you call your induced field object ind, then you can get the Fourier transform of the field components by accessing ind.Fef_wvg. Adding the initial kick strength to this and taking the magnitude you can get the total electric field. Comparing the total electric field magnitude to the field enhancement (ind.Ffe_wg) times the initial field magnitude you should get the same value.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .