<!DOCTYPE html>
<html data-lt-installed="true">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body style="padding-bottom: 1px;">
    <blockquote type="cite"
cite="mid:CAE7kQ+whXrjfibe+Z0SkK4JP=d7HrQkttCQHy2GwVZx91xgVhg@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div><b><u>What I did:</u></b></div>
          <div>1) scf with pw.x</div>
          <div>2) <a href="http://pp.in" moz-do-not-send="true">pp.in</a>
            with pp.x</div>
          <div>3) using a code to find the planar average electrostatic
            potential in the z (vacuum) direction. As I could not figure
            out how to use the average.x tool.</div>
        </div>
      </div>
    </blockquote>
    Which code, and what is wrong with average.x in your case?<br>
    <blockquote type="cite"
cite="mid:CAE7kQ+whXrjfibe+Z0SkK4JP=d7HrQkttCQHy2GwVZx91xgVhg@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div>4) identify the vacuum potential, which in my case is not
            zero (should be zero as written in literature <a
              href="https://doi.org/10.1016/j.ijhydene.2022.09.249"
              moz-do-not-send="true" class="moz-txt-link-freetext">https://doi.org/10.1016/j.ijhydene.2022.09.249</a>).</div>
        </div>
      </div>
    </blockquote>
    <p>It is not zero, it is taken to be zero, that's the entire point
      of this calculation: to find the zero.<br>
    </p>
    <p>More specifically, when you do a calculation in periodic boundary
      conditions, you set the zero so that the average of the local
      potentials is zero, which is not the same as setting the vacuum
      (i.e. infinite distance) potential to zero.<br>
    </p>
    <blockquote type="cite"
cite="mid:CAE7kQ+whXrjfibe+Z0SkK4JP=d7HrQkttCQHy2GwVZx91xgVhg@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div><br>
          </div>
          <div>all the files are attached. </div>
          <div><br>
          </div>
          <div><b><u>My question is that:</u></b></div>
          <div>1) is my method correct ?</div>
          <div>2) if yes then why is the vacuum potential non zero? What
            can I do to make it zero ?</div>
          <div>3) I am trying to find the vacuum potential so that I can
            calculate work function and vbm cbm values with respect to
            vacuum potential for photocatalytic application.</div>
        </div>
      </div>
    </blockquote>
    <p>You found it, that is your zero</p>
    <p>hth<br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:CAE7kQ+whXrjfibe+Z0SkK4JP=d7HrQkttCQHy2GwVZx91xgVhg@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div><br>
          </div>
          <div>Kindly help me. I have been stuck at this for a long
            time.</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><a
href="https://drive.google.com/drive/folders/1knK2PNlKFH26ri84sLJGKM2LVRN789BC?usp=sharing"
              moz-do-not-send="true">google drive link</a> . I have
            attached all the files in the google drive link. If you
            can't read it I'll send in whichever manner needed.<br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>Ashley Cooper</div>
          <div>Phd</div>
          <div>Assam University Silchar</div>
          <div>Assam, India</div>
          <div><br>
          </div>
          <div><br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre wrap="" class="moz-quote-pre">_______________________________________________________________________________
The Quantum ESPRESSO Foundation stands in solidarity with all civilians worldwide who are victims of terrorism, military aggression, and indiscriminate warfare.
--------------------------------------------------------------------------------
Quantum ESPRESSO is supported by MaX (<a class="moz-txt-link-abbreviated" href="http://www.max-centre.eu">www.max-centre.eu</a>)
users mailing list <a class="moz-txt-link-abbreviated" href="mailto:users@lists.quantum-espresso.org">users@lists.quantum-espresso.org</a>
<a class="moz-txt-link-freetext" href="https://lists.quantum-espresso.org/mailman/listinfo/users">https://lists.quantum-espresso.org/mailman/listinfo/users</a></pre>
    </blockquote>
    <div class="moz-signature">-- <br>
      <small>Dr. Lorenzo Paulatto<br>
        IR IMPMC - CNRS UMR 7590 / Sorbonne Université / MNHN <br>
        phone: +33 (0)1 442 79822 / telegram: lpaulatto<br>
        <a href="http://www.impmc.upmc.fr/~paulatto/"
          class="moz-txt-link-freetext">http://www.impmc.upmc.fr/~paulatto/</a>
        - <a href="https://anharmonic.github.io/"
          class="moz-txt-link-freetext">https://anharmonic.github.io/</a><br>
        23-24/423 B115, 4 place Jussieu 75252 Paris CX 05<small></small></small></div>
  </body>
  <lt-container></lt-container>
</html>