<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Al has a cubic lattice, so 100, 010 and 001 surfaces are all equivalent (so it is not a typo). On the other hand, idir DOES NOT refer to the surface orientation but to how it is oriented within the supercell.<div class="">Whatever are the surface orientation and the material you a re planning to study, you can define the surface supercell so that the vectors defining the surface unit cell are a1 and a2, whereas a3 represents the</div><div class="">direction orthogonal to the surface. In this case you can use idir=3 for studying 100,110 or 111 orientations. So, do not mistake the surface orientation you want to study with the supercell lattice vector that identifies,</div><div class="">in the pw.x calculation, that direction.</div><div class=""><br class=""></div><div class="">Giovanni</div><div class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 19 May 2016, at 07:36, Dae Kwang Jun <<a href="mailto:jdaekwang@gmail.com" class="">jdaekwang@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Dear Giovanni Cantele,<div class=""><br class=""></div><div class="">Thank you once again. Also, there seems to be a typo in the example for workfunctions in PP/examples. The example states that the workfunction calculation is for Al100. However, its idir is set to 3. I think it should be Al001 instead. Lastly, I will check the units and put them here later.</div><div class=""><br class=""></div><div class="">Sincerely,</div><div class=""><br class=""></div><div class="">Dae Kwang Jun </div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, May 18, 2016 at 4:54 PM, Dae Kwang Jun <span dir="ltr" class=""><<a href="mailto:jdaekwang@gmail.com" target="_blank" class="">jdaekwang@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Dear all,<div class=""><br class=""></div><div class="">I would like to make sure whether I am using these parameters correctly. I know that idir is the fixed index which defines the planes of the planar average. I also know that awin is the size of the window for macroscopic averages. </div><div class=""><br class=""></div><div class="">However, I do not quite understand what is meant by these two statements. In the tetragonal lattice, it appears that idir=3 takes the average of planes that are perpendicular to the vector that has length = a. And that idir = 1 takes the average of planes that are perpendicular to the vector that has length = c. Is this correct? And does it follow the same logic in other lattices?  Lastly, does awin refer to the area of the plane? Or does it refer to the thickness of the plane?</div><div class=""><br class=""></div><div class="">Thank you in advance,</div><div class=""><br class=""></div><div class="">Dae Kwang Jun</div><div class=""><br class=""></div></div>
</blockquote></div><br class=""></div>
_______________________________________________<br class="">Pw_forum mailing list<br class=""><a href="mailto:Pw_forum@pwscf.org" class="">Pw_forum@pwscf.org</a><br class="">http://pwscf.org/mailman/listinfo/pw_forum</div></blockquote></div><br class=""></div></div></body></html>