Hi Mit
Thanks a lot for your past clarifications, they have been most helpful. I think (hope) this should be the last issue I need to clarify with you with regards to the COFFEE code.
In the alignment term dV_0p which is calculated by the corresponding python script dV_0p.py, I see that the sign and magnitude of the charges are taken into account. For example, in the 2D MoS2 example, the PA_0p term calculated with the script PotentialAlignment/dV_0p.py using charge = -1 is 0.04 eV, which is the same as if one calculates using the plot_DV0p.py in the MoS2 example folder, which has the factor "-1" in line 8.
However, I am confused by the following lines in the MoS2/README file, which tells me how the different correction terms are put together:
E_corr = E^{lat} + (-\Delta V_{q/0}) + (-q\Delta V_{0/p})
E_corr = 0.172 + 0.0 + 0.04 eV
E_corr = 0.212 eV
I understand that this relationship is as presented in the COFFEE paper and the q\Delta V_{0/p} term is deducted from the right hand side of eq 2, therefore the negative sign in front of q. In this case, if for q = -1. the q\Delta V_{0/p} obtained using the abovementioned scripts is 0.04 eV; then shouldn't (-q\Delta V_{0/p}) term be (- 0.04) eV instead?
I am not sure if I am missing something here with regards to the signs. Could you enlighten me on the details?
Thanks a lot for the clarification.
Best wishes
Yaze