Electron dynamics with custom external fields #1175
-
Hello you all, for my research i want to do an electron-dynamics simulation using the dftb+ code. I found the option "fromFile" in this part of the source-code ([https://github.com/dftbplus/dftbplus/blob/release/src/dftbp/timedep/timeprop.F90]), but was unable to figure out how to apply it. Kind regards and thanks to everybody who contributed to this great software. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
The option is not really documented, I am sorry for that. According to the code which is relevant here, you would need
and a
where the field component are specified in eV/ang. The time is actually irrelevant as I can judge based on dftbplus/src/dftbp/timedep/timeprop.F90 Line 1348 in 2bc8d32 @fbonafe @charlymedrano7 can you confirm on this? Also, is it safe to use this non-documented option? |
Beta Was this translation helpful? Give feedback.
-
OK, that's indeed a bug. The good news is, I have a big PR (#1151), which changes the file handling everywhere in the code. As a side effect, I fixed the |
Beta Was this translation helpful? Give feedback.
-
Thank you, that's amazing! |
Beta Was this translation helpful? Give feedback.
-
FYI: #1151 had been merged, so it should work with the code on main. |
Beta Was this translation helpful? Give feedback.
OK, that's indeed a bug. The good news is, I have a big PR (#1151), which changes the file handling everywhere in the code. As a side effect, I fixed the
laser.dat
problem. So, you should be able to uselaser.dat
when specifyingFromFile {}
asEnvelope
. If you use alaser.dat
created by DFTB+, you would have to remove the first line (the comment), though. Once the PR had been merged, the feature should be available on main (and become part of the next release).