Coder Social home page Coder Social logo

Comments (11)

rhennig avatar rhennig commented on August 14, 2024

from vaspsol.

xnmao avatar xnmao commented on August 14, 2024

Dear Prof. @rhennig ,

I have calculated a set of charged (2×2)-Pt(111) slab. The results are as follows:

net_charge potential_energy FERMI_SHIFT
0 -0.20 -93.781 2.041
1 -0.16 -93.494 2.041
2 -0.12 -93.204 2.042
3 -0.08 -92.910 2.042
4 -0.04 -92.612 2.042
5 0.00 -92.312 2.041
6 0.04 -92.007 2.041
7 0.08 -91.700 2.042
8 0.12 -91.389 2.042
9 0.16 -91.075 2.041
10 0.20 -90.757 2.041

Is that grand-canonical free energy F = potential_energy - net_charge*FERMI_SHIFT? It seems a linear relationship between net_charge and F, no quadratic curve.

Here is the POSCAR:

Pt                                      
   1.00000000000000     
     5.6416157960000008    0.0000000000000000    0.0000000000000000
     2.8208078980000004    4.8857825977275668    0.0000000000000000
     0.0000000000000000    0.0000000000000000   21.9095400125127817
   Pt
    16
Selective dynamics
Direct
  0.0000000000000000  0.0000000000000000  0.3427243190829614   T   T   T
  0.5000000000000000  0.0000000000000000  0.3427243190829614   T   T   T
  0.0000000000000000  0.5000000000000000  0.3427243190829614   T   T   T
  0.5000000000000000  0.5000000000000000  0.3427243190829614   T   T   T
  0.1666666666666643  0.1666666666666643  0.4474388781586569   F   F   F
  0.6666666666666643  0.1666666666666643  0.4474388781586569   F   F   F
  0.1666666666666643  0.6666666666666643  0.4474388781586569   F   F   F
  0.6666666666666643  0.6666666666666643  0.4474388781586569   F   F   F
  0.8333333333333357  0.3333333333333357  0.5525611218413431   F   F   F
  0.3333333333333357  0.3333333333333357  0.5525611218413431   F   F   F
  0.8333333333333357  0.8333333333333357  0.5525611218413431   F   F   F
  0.3333333333333357  0.8333333333333357  0.5525611218413431   F   F   F
  0.0000000000000000  0.0000000000000000  0.6572756809170386   T   T   T
  0.5000000000000000  0.0000000000000000  0.6572756809170386   T   T   T
  0.0000000000000000  0.5000000000000000  0.6572756809170386   T   T   T
  0.5000000000000000  0.5000000000000000  0.6572756809170386   T   T   T

and INCAR

INCAR created by Atomic Simulation Environment
 ENCUT = 520.000000
 KSPACING = 0.300000
 NELECT = 160.080000 # net_charge = -0.08
 EB_K = 78.360000
 TAU = 0.000000
 LAMBDA_D_K = 3.040000
 ALGO = Fast
 GGA = PE
 LCHARG = .FALSE.
 LVHAR = .TRUE.
 LSOL = .TRUE.
 LREAL = Auto

Best regards,
Xinnan

from vaspsol.

rhennig avatar rhennig commented on August 14, 2024

from vaspsol.

xnmao avatar xnmao commented on August 14, 2024

Dear Prof. @rhennig,

Sorry I missed them.
But I can't find a quadratic curve. The energy in OUTCAR is increased significantly by adding net charge.
Here is the full output:

A B C D E
net_charge energy (in OUTCAR) E-fermi (in OUTCAR) FERMI_SHIFT (in stdout) vacuum level (from LOCPOT)
0 -0.20 -93.781 -7.110 2.041 -2.031
1 -0.16 -93.494 -7.211 2.041 -2.033
2 -0.12 -93.204 -7.295 2.042 -2.035
3 -0.08 -92.910 -7.393 2.042 -2.037
4 -0.04 -92.612 -7.479 2.042 -2.039
5 0.00 -92.312 -7.562 2.041 -2.041
6 0.04 -92.007 -7.645 2.041 -2.044
7 0.08 -91.700 -7.718 2.042 -2.045
8 0.12 -91.389 -7.812 2.042 -2.047
9 0.16 -91.075 -7.894 2.041 -2.049
10 0.20 -90.757 -7.969 2.041 -2.051

Thank you for your kindness!

Best wishes,
Xinnan

from vaspsol.

rhennig avatar rhennig commented on August 14, 2024

from vaspsol.

xnmao avatar xnmao commented on August 14, 2024

Dear @rhennig,

I may not have made it clear. I mean, if I plot column[B]-column[A]*column[D] against column[A], what I get seems to be a linear relationship between the grand-canonical electronic energy (?) and net charge as follows,
F
While Figure 2 in the VASPsol publication exhibits a typical quadratic behavior.

Best wishes,
Xinnan

from vaspsol.

xnmao avatar xnmao commented on August 14, 2024

I have managed to do this now by applying a correction from the volume averaged electrostatic potential within the simulation cell, as described in equation 14, 15 of https://onlinelibrary.wiley.com/doi/10.1002/anie.200502540.

Many thanks!
Xinnan Mao

from vaspsol.

jiangkaijiangkai avatar jiangkaijiangkai commented on August 14, 2024

Dear all,
I have a similar problem in repeating Figure 2 in the VASPsol publication (DOI:10.1063/1.5132354) A linear relationship between the energy and the electrode potential was obtained. After reading the paper (DOI:10.1002/anie.200502540) @xnmao recommended, I still could not get a quadratic relationship between the energy and the electrode potential after I added another correction. I guess it is about data processing. I've got to process the data as follows:

  1. Electrode potential (U (V)):
    U=(E_vacuum_level(in LOCPOT) - E_Fermi(in OUTCAR) + FERMI_SHIFT(in stdout))/e.
    where e is 1. Similar to the xnamao'data above, the value of E_vacuum_level(in LOCPOT) is almost equal to the negative value of FERMI_SHIFT(in stdout)). So the U is actually equal to the negative value of E_Fermi (in OUTCAR).

  2. The grand-canonical electronic energy (F (eV)):
    F=E_DFT(in OUTCAR) - n*U
    where n is the net charge, i.e., when the charge is added 0.02 to the neutral slab, the n = +0.02; when the charge is removed from the neutral system, the n = -0.02.

  3. In the paper (DOI:10.1002/anie.200502540) @xnmao recommended, there is another correction is about the slab-background interaction: \int_{0}^{q} \left \langle Vtot\left ( Q \right ) \right \rangle dQ.
    where the Vtot(q) refers to the average potential in the unit cell.
    In my understanding, the Vtot(q) is the 'vacuum level' (in LOCPOT). However, I still could not get a quadratic relationship even after adding this correction. I also get confused about this correction, which I think it has been included in E_DFT(in OUTCAR) calculated in VASPsol.

Is there any mistake in my understanding? Could you give me more details?
Thanks!
Kai

from vaspsol.

liam3935 avatar liam3935 commented on August 14, 2024

Dear Prof. @rhennig,

I'm wondering if geometry optimization is needed for each of the calculation set at different potential by NELECT? If so, will the quadratic behavior still hold if structure changes significantly?

Thanks,
Liam

from vaspsol.

jiangkaijiangkai avatar jiangkaijiangkai commented on August 14, 2024

Hi @liam3935 ,
You can get the answer in #issue60 . And according to my limited experience, geometry optimization need to be done, and if structure changes significantly, you can NOT get the expected quadratic curve.
Kai

from vaspsol.

rhennig avatar rhennig commented on August 14, 2024

from vaspsol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.