Adding an external potential to a calculation?

Queries about input and output files, running specific calculations, etc.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
jms

Adding an external potential to a calculation?

#1 Post by jms » Tue Jun 18, 2013 5:44 pm

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!
Last edited by jms on Tue Jun 18, 2013 5:44 pm, edited 1 time in total.

jms

Adding an external potential to a calculation?

#2 Post by jms » Wed Jun 19, 2013 10:45 pm

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?
Last edited by jms on Wed Jun 19, 2013 10:45 pm, edited 1 time in total.

askhetan
Jr. Member
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?

#3 Post by askhetan » Fri Jul 19, 2013 6:44 pm

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.

Post Reply