<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Dear Vineet Kumar,</p>
    <p>if you average the charge over a surface you'll get the charge
      per unit surface. Integrating this will give you the total charge
      per unit surface...</p>
    <p>I think the output of average.x is just this... Thus, you'll need
      to multiply by the xy-area of your unit cell...</p>
    <p>Regards</p>
    <p>Thomas<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 07/04/17 11:08, VineetKumar Pandey
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAPrrfwNKziC4ooAzcV=hDZgBAgRApNuykanPo6uMEs5_B-DcMw@mail.gmail.com"
      type="cite">
      <div dir="ltr">I am trying to calculate charge density(rho)  as a
        function of z axis. what I did by using pp.x and then average.x.
        but when I am integrating rho(z)  with respect to z. I am not
        getting the total charge, that I have in my system. can anybody
        help me to get out of it?  actually, my system is PbI2. and it
        has 18 e- in a unit cell. <br clear="all">
        <div>
          <div>
            <div class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div class="gmail_signature"
                  data-smartmail="gmail_signature">
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">
                        <div>
                          <div>
                            <div>Vineet Kumar Pandey<br>
                            </div>
                          </div>
                          IISER PUNE, INDIA<br>
                        </div>
                        PINCODE-411008<br>
                        <br>
                        Phone: +91 8853094275<br>
                        <br>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Pw_forum mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a>
<a class="moz-txt-link-freetext" href="http://pwscf.org/mailman/listinfo/pw_forum">http://pwscf.org/mailman/listinfo/pw_forum</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dr. rer. nat. Thomas Brumme
Wilhelm-Ostwald-Institute for Physical and Theoretical Chemistry
Leipzig University
Phillipp-Rosenthal-Strasse 31
04103 Leipzig

Tel:  +49 (0)341 97 36456

email: <a class="moz-txt-link-abbreviated" href="mailto:thomas.brumme@uni-leipzig.de">thomas.brumme@uni-leipzig.de</a>
</pre>
  </body>
</html>