Hi, I would like to perform a calculation which includes some external potential. I don't want to go into the details of why or exactly what the potential is (suffice it to say it is a step-like potential), but my question for the community is how I could implement such a modification?
I am assuming I will have to modify the source code to some extent and compile a custom version, so I was hoping someone might be able to help me get started.
Some specific questions that would be very useful to answer would be, which files in the vasp source code would need to be edited, which lines within those files are important, and if there is any limitations to what kind of function I can add as an external potential. Additionally, if anyone knows of any resources describing a similar kind of modification, that would be extremely helpful.
Thanks!
Adding an external potential to a calculation?
Moderators: Global Moderator, Moderator
Adding an external potential to a calculation?
Last edited by jms on Tue Jun 18, 2013 5:44 pm, edited 1 time in total.
Adding an external potential to a calculation?
So I stumbled on the subroutine EXTERNAL_POT in pot.F. Seems like what I need - but I'm a little unclear about how the data structures CVTOT (declared as an RGRID type within this subroutine) and GRIDC (grid_3d) work and what exactly the subroutine is doing...
Does anyone have any experience editing this subroutine and could maybe explain what they've learned?
Does anyone have any experience editing this subroutine and could maybe explain what they've learned?
Last edited by jms on Wed Jun 19, 2013 10:45 pm, edited 1 time in total.
-
- Jr. Member
- Posts: 81
- Joined: Wed Sep 28, 2011 4:15 pm
- License Nr.: 5-1441
- Location: Germany
Adding an external potential to a calculation?
let me guess - you're trying to model an electrode surface at a given potential (or an electrochemical reaction at a given potential). if yes then you might want to look at the double reference method as devised by taylor and neurock... where they describe a rather step wise method to specify a surface potential by adding excess electrons. if not, i really do not think what you're aiming at can be done by modifying some subroutines or scripts...... because this is a very sought after problem and if it was possible to specify surface potential, a lot of electrochemical studies would become very meaningful. in case you're successful, please do let us know. thanks!!
Last edited by askhetan on Fri Jul 19, 2013 6:44 pm, edited 1 time in total.
In the end, one must accept realism. Saying otherwise would be a denial of incompleteness.