yuanyue-liu-group / CP-VASP

17 stars 8 forks source link

need CP-VASP #2

Open pangchq opened 3 weeks ago

pangchq commented 3 weeks ago

Dear Dr. Liu,

I hope this message finds you well. I recently read your articles on constant potential simulations and those by other researchers. I am currently planning to conduct a first-principles simulation with a constant potential and have submitted an application a few days ago at https://sites.utexas.edu/yuanyue-liu/codes/cp-vasp/. When convenient, could you please review my application? Thank you very much for your assistance!

Best regards, Gechuanqi Pan

ZLevell commented 1 week ago

Dear Gechuanqi Pan,

We recently released version 2 of CP-VASP and sent out access links. Were you included in this list? If not, I will email it to you.

pangchq commented 1 week ago

Dear Zachary Levell,

I have received version 2 of CP-VASP. But I encounter a problem about convergence. I'm running the AIMD at constant potential 0.6V vs SHE. The vasp 6.3.2 was compiled with vaspsol++ from Craig Plaisance and CP-VASP version-2 from you. I've test the examples supported by you and got the correct results. Now, I am currently suffering from the torture of slow convergence.I have already done my best to pinpoint which step is causing the slow convergence issue as follow,

  1. ran a case without implict solvation and constane potential, the convergence is fast;
  2. ran a case with vaspsol (ISOL = 1), the convergence is fast;
  3. ran a case with vaspsol++ (ISOL = 2), the convergence is fast;
  4. ran a case with vaspsol++ (ISOL = 2) and constane potential, the convergence is too slow to bear; For all of the four case, the only different is the setup in INCAR, the other files (KPOINTS, POTCAR, POSCAR) are the same. Based on the tests above, I believe the issue lies in the constant potential step. All the test files are attached (https://drive.google.com/drive/folders/1g3RoxGcPp44keClrjmieKUMtAbwq7RFh). I don't know if there is an issue with my INCAR file setup or there is another problem. Could you please give me some suggestions?

Best regards, Gechuanqi Pan

ZLevell commented 1 week ago

Dear Gechuanqi Pan,

Thank you for your testing, I'm glad the examples ran properly. The SCF steps in CP-VASP can be slower due to changes in the electron number, but in our experience the speed is not greatly reduced. I've requested access to your google drive folder.

pangchq commented 1 week ago

Dear Zachary Levell, I've opened up access to you, thanks.

ZLevell commented 1 week ago

Dear Gechuanqi Pan,

It looks like CP-VASP is slow because the SCF cycles take many steps to converge, whereas the other simulations have much shorter SCF cycles. There are a couple primary reasons that CP-VASP can have this issue:

  1. When NEADJUST > 1, CP-VASP turns the implicit solvation model on to calculate the potential reference and then turns it back off to calculate the forces and ideally saves time. However, this change in the simulation conditions causes the initial guess for the charge density to be far from the final distribution and thus requires additional steps.

  2. If the change in electron number is large, then the initial guess for the charge density (which is the previous charge density linearly scaled with the electron number change) may be far from the goal. For our exact potential schemes (1 <= NESCHEME <= 3) this can be a problem at first (as the initial potential may be far from the target) but will likely be minimal once the target potential is reached.

    Based on your results, I suspect the problem is mainly the first issue. There are a few options that may help: