<br><br><div class="gmail_quote">2009/10/28 Eduardo Ariel Menendez Proupin <span dir="ltr"><<a href="mailto:eariel99@gmail.com">eariel99@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<div>I need to calculate plane averaged local potentials, and charges, for a heterostructure. I.e., </div><div>V(z)=1/(Lx*Ly) \int\int V(x,y,z) dx dy  <br clear="all"><br></div><div>I think I  can do it using PP to get V(x,y,z) in the 3D FFT grid and a write a program that makes the average. Then I want to obtain the macroscopic average, as defined in a triestine paper by Baldereschi, Baroni and Resta PRL 61 ,734 (1988).</div>

<div><br></div><div>Before spending one or two days  writing the program and become sure that is works fine, I would like to confirm that this is not already implemented in PP or in other utility of Quantum-ESPRESSO. </div>

<br></blockquote><div>Hi Eduardo,<br><br>The executable average.x can do the job........for the input file  you can see the example on Work function calculation......<br>However, if you want to calculate the planar average of charge density, you need to multiply it with the area of the xy plane, assuming you want to plot along the z-direction.<br>
<br>Also I think (I'm not sure) it works only if the z- is perpendicular to the xy-plane.<br><br>With regards,<br>Prasenjit.<br></div></div><br><br clear="all"><br>-- <br>PRASENJIT GHOSH,<br>POST-DOC,<br>ROOM NO: 265, MAIN BUILDING,<br>
CM SECTION, ICTP,<br>STRADA COSTERIA 11,<br>TRIESTE, 34104,<br>ITALY<br>PHONE: +39 040 2240 369 (O)<br>              +39 3807528672 (M)<br>