<div>Hi </div>
<div> </div>
<div> </div>
<div>I am a new user of pwscf. At present I want to calculate the work function of a surface slab. What confused me is where I am able to start, but I happen to find that in the source directory where there is an example (WorkFct_example) concerning that issue. I studied on it and modify the input files accordingly. The first step for calculating via pw.x is ok. But performing the second step via pp.x meets some problem. this is my input file for pp.x:</div>

<div> </div>
<div> &inputPP<br>   outdir='/home/blade/jamesli/test/tmp',                       # temp files<br>   plot_num=11                          # the V_bare + V_H potential<br>   filplot = 'IO-O.pot'                 # the quantity selected by plot_num<br>
/</div>
<div> &plot<br>   iflag= 3,                                    # 3D plot<br>   output_format=3                              # format suitable for XCRYSDEN  (1D, 2D, 3D)<br>/<br></div>
<div>I made a little changes in accord to the corresponding file in the pwscf source directory. I tested the example in WorkFct_example, and it worked well. I really don't know why it doesn't work for the present work. My surface direction is along x axis, is that the root of problem? Could you help me more about it?<br clear="all">
<br>-- <br>Sincerely<br><br>Jiaye Li<br><br><br><br>==============================================<br>Li, Jiaye<br><br>M.S. in designing and developing novel materials<br><br>Research experience: <br>*ALD precursor. ie. Metal complexes<br>
*Surface modification. ie. Indium tin oxide, SiO2<br>*Gas storage and adsorption. ie. Ionic Liquids<br><br>Skills:<br>*ab-initial method, DFT simulation and Force Field simulation<br><br>Please contact me at: <br>1. <a href="mailto:jameslipd@gmail.com">jameslipd@gmail.com</a>  or<br>
2. <a href="mailto:jameslibd@gmail.com">jameslibd@gmail.com</a><br><br>==============================================<br></div>