<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">emaxpos is the position of the superimposed electrostatic potential jump, in the direction normal to the surface, as specific by edir. It is in the units of the lattice vector in the edir direction, so its value ranges from 0 to 1. emaxpos MUST specify a position in the vacuum separating periodic replicas of the slab, because the potential jump corresponds to an artificial trick used to simulate a constant electric field within periodic boundary conditions. If there where an overlap of the region where the charge density is significantly different from 0 with the position emaxpos, your total energy would receive an unwanted and unphysical  contribution from such a jump in the potential.<div class="">Example: let us suppose that edir = 3, that the c axis is orthogonal to the other two and that the z coordinates of your atoms range from z0 to z1, in units of c. PROVIDED YOU HAVE CHOSEN A REASONABLE (that is, not so small) VALUE OF THE VACUUM SPACE, the nearest (along edir) atom(s) of the atoms at z1 are at z0+1. That means that the vacuum space ranges from z1 to z0+1. You can choose emaxpos = (z0+1+z1)/2, so that the jump is located exactly in the middle of the vacuum.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">eopreg specifies instead the jump width, again in units of the lattice vector along the  edir direction. You can choose the default value (0.1) or oven smaller (e.g. 0.05), because you want that this unphysical jump does not involve a wide range along edir, again because you want to minimise (and , eventually, to get rid of) a possible overlap of the charge density with such a region.</div><div class=""><br class=""></div><div class="">Giovanni</div><div class=""><br class=""></div><div class="">PS I’m forwarding this message also to the forum, because it is usually much more efficient to ask help to many people that to just one person! Please reply to the forum if you have any further request….<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 1 Dec 2017, at 08:29, Mohammed Kader Ghadiyali <<a href="mailto:ghadiyali.mohd@physics.mu.ac.in" class="">ghadiyali.mohd@physics.mu.ac.in</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  

    <meta http-equiv="content-type" content="text/html; charset=utf-8" class="">
  
  <div text="#000000" bgcolor="#FFFFFF" class="">
    <font face="Cantarell" class="">Respected Sir,<br class="">
      <br class="">
      I am currently trying to do compute band structure with saw tooth
      potential applied in the z-direction, but I am not able to
      determine the value of "emaxpos" and "eopreg". The only reference
      I could find is a PW forum thread [1]. I am working on a hexagonal
      system, can you inform me the procedure to determine the values of
      emaxpos and eopreg. I have tried the example given with QE.<br class="">
      <br class="">
      Regards,<br class="">
    </font>
    <div class="moz-signature">-- <br class="">
      Ghadiyali Mohammed Kader<br class="">
      Research Scholar<br class="">
      Department of Physics<br class="">
      University of Mumbai<br class="">
      +91 8898519951</div>
  </div>

</div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">-- <br class=""><br class="">Giovanni Cantele, PhD<br class="">CNR-SPIN<br class="">c/o Dipartimento di Fisica<br class="">Universita' di Napoli "Federico II"<br class="">Complesso Universitario M. S. Angelo - Ed. 6<br class="">Via Cintia, I-80126, Napoli, Italy<br class=""><a href="mailto:giovanni.cantele@spin.cnr.it" class="">e-mail: giovanni.cantele@spin.cnr.it</a><br class="">Phone: +39 081 676910<br class="">Skype contact: giocan74<br class=""><br class="">ResearcherID: http://www.researcherid.com/rid/A-1951-2009<br class="">Web page: http://people.fisica.unina.it/~cantele<br class=""></div>
</div>

<br class=""></div></body></html>