<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><font color="#000099">Comments below.</font></p>
    <blockquote type="cite"
cite="mid:SG2PR03MB4672D2ECB2B285937967DC31BF690@SG2PR03MB4672.apcprd03.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:DengXian;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML \9884\8BBE\683C\5F0F \5B57\7B26";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:SimSun;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-indent:21.0pt;
        font-size:10.5pt;
        font-family:DengXian;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:DengXian;
        color:windowtext;}
span.HTML
        {mso-style-name:"HTML \9884\8BBE\683C\5F0F \5B57\7B26";
        mso-style-priority:99;
        mso-style-link:"HTML \9884\8BBE\683C\5F0F";
        font-family:SimSun;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:DengXian;}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:51542836;
        mso-list-type:hybrid;
        mso-list-template-ids:682028406 -479688448 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-text:"\(%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:18.0pt;
        text-indent:-18.0pt;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-text:"%2\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:42.0pt;
        text-indent:-21.0pt;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:63.0pt;
        text-indent:-21.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:84.0pt;
        text-indent:-21.0pt;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-text:"%5\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:105.0pt;
        text-indent:-21.0pt;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:126.0pt;
        text-indent:-21.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:147.0pt;
        text-indent:-21.0pt;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-text:"%8\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:168.0pt;
        text-indent:-21.0pt;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:189.0pt;
        text-indent:-21.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US">Dear Wien experts,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">When I calculated charge
            densities of cubic TiC using lapw5 in WIEN2k 13.1, I found
            the valence charge density is bigger than the total charge
            density.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">During the calculation,
            I constructed the case.in5 file first and then did ‘x
            lapw5’. I used ‘VAL’ in case.in5 for valence charge density
            calculation and ‘TOT’ for total charge density.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Also, I found in both
            cases, the lapw5.def files are the same as follows:<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">5 ,'TiC.in5', 'old',   
            'formatted',0<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">6 ,'TiC.output5',  
            'unknown','formatted',0<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">8 ,'TiC.struct',   
            'old',    'formatted',0<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="background:yellow;mso-highlight:yellow" lang="EN-US">9
            ,'TiC.clmval',    'old',    'formatted',0</span><span
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">10,'TiC.tmp',      
            'unknown','unformatted',0<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="background:yellow;mso-highlight:yellow" lang="EN-US">11,'TiC.clmvaldn', 
            'unknown','formatted',0</span><span lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">12,'TiC.sigma',    
            'unknown','formatted',0<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">20,'TiC.rho_onedim','unknown','formatted',0<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">21,'TiC.rho',      
            'unknown','formatted',0<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">However, when I used the
            following steps to get the total charge density, the result
            seemed to be right:<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="margin-left:18.0pt;text-indent:-18.0pt;mso-list:l0
          level1 lfo1">
          <!--[if !supportLists]--><span lang="EN-US"><span
              style="mso-list:Ignore">(1)<span style="font:7.0pt
                "Times New Roman"">  
              </span></span></span><!--[endif]--><span lang="EN-US">Construct
            case.in5 file with cnorm=’TOT’.<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="margin-left:18.0pt;text-indent:-18.0pt;mso-list:l0
          level1 lfo1">
          <!--[if !supportLists]--><span lang="EN-US"><span
              style="mso-list:Ignore">(2)<span style="font:7.0pt
                "Times New Roman"">  
              </span></span></span><!--[endif]--><span lang="EN-US">Construct
            lapw5.def:<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="margin-left:18.0pt;text-indent:0cm"><span lang="EN-US">$
            x lapw5 -d<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="margin-left:18.0pt;text-indent:-18.0pt;mso-list:l0
          level1 lfo1">
          <!--[if !supportLists]--><span lang="EN-US"><span
              style="mso-list:Ignore">(3)<span style="font:7.0pt
                "Times New Roman"">  
              </span></span></span><!--[endif]--><span lang="EN-US">Change
            the ‘case.clmval’ in lapw5.def to ‘case.clmsum’.<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="margin-left:18.0pt;text-indent:-18.0pt;mso-list:l0
          level1 lfo1">
          <!--[if !supportLists]--><span lang="EN-US"><span
              style="mso-list:Ignore">(4)<span style="font:7.0pt
                "Times New Roman"">  
              </span></span></span><!--[endif]--><span lang="EN-US">Do
            the calculaton:<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="margin-left:18.0pt;text-indent:0cm"><span lang="EN-US">$
            lapw5 lapw5.def<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">So, I wonder if the
            steps above are right</span></p>
      </div>
    </blockquote>
    <p><font color="#000099">For that old WIEN2k version, the above
        steps look right (for a non-spin polarized calculation).</font></p>
    <p><font color="#000099">Note: Should you have a calculation that is
        complex, you need lapw5c instead [
<a class="moz-txt-link-freetext" href="https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg17784.html">https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg17784.html</a>
        ].</font><br>
    </p>
    <blockquote type="cite"
cite="mid:SG2PR03MB4672D2ECB2B285937967DC31BF690@SG2PR03MB4672.apcprd03.prod.outlook.com">
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US"> and how does the lapw5
            works ?</span></p>
      </div>
    </blockquote>
    <p><font color="#000099">For information on lapw5, I suggest seeing
        the WIEN2k 13.1 userguide [$WIENROOT/SRC/usersguide.pdf].<br>
      </font></p>
    <p><font color="#000099">Or for example, "8.14 LAPW5 (electron
        density plots)" in the WIEN2k 19.1 userguide [
        <a class="moz-txt-link-freetext" href="http://susi.theochem.tuwien.ac.at/reg_user/textbooks/usersguide.pdf">http://susi.theochem.tuwien.ac.at/reg_user/textbooks/usersguide.pdf</a>
        ].</font><br>
    </p>
    <blockquote type="cite"
cite="mid:SG2PR03MB4672D2ECB2B285937967DC31BF690@SG2PR03MB4672.apcprd03.prod.outlook.com">
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US"> Why the command ‘x
            lapw5 -d’ always generate a lapw5.def with ‘’ 9,
            ‘case.clmval’ ‘’ no matter cnorm=’VAL’ or ‘TOT’ in case.in5
            ?</span></p>
      </div>
    </blockquote>
    <p><font color="#000099">Yes, in WIEN2k 13.1, the </font><font
        color="#000099"><span lang="EN-US">‘x lapw5 -d’ had to be used
          to generate</span> the same lapw5.def template (always having
        case.clmval) which you then had to edit manually (to have </font><font
        color="#000099"><font color="#000099"><font color="#000099">case.clmsum</font></font>)
        because the automatic setting of lapw5.def was not implemented
        yet.  The improved WIEN2k 19.1 code can auto generate </font><font
        color="#000099"><font color="#000099">lapw5.def with case.clmsum</font>
        (x lapw5 -tot). [
<a class="moz-txt-link-freetext" href="https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg19064.html">https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg19064.html</a>
        ]</font></p>
    <p><font color="#000099">I haven't used lapw5 in a long time, but if
        I recall correctly, I think I found the output of "wien2venus.py
        -h" helpful in the past.  For </font><br>
      <font color="#000099"><font color="#000099">wien2venus.py, see:<br>
        </font></font></p>
    <p><font color="#000099"><a class="moz-txt-link-freetext" href="https://www.nims.go.jp/cmsc/staff/arai/wien/venus.html">https://www.nims.go.jp/cmsc/staff/arai/wien/venus.html</a></font><br>
    </p>
    <blockquote type="cite"
cite="mid:SG2PR03MB4672D2ECB2B285937967DC31BF690@SG2PR03MB4672.apcprd03.prod.outlook.com">
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US"><o:p></o:p></span></p>
        <pre><span style="font-size:10.5pt;font-family:DengXian;color:black" lang="EN-US">I really appreciate if any suggestions.<o:p></o:p></span></pre>
        <p class="MsoNormal" style="text-align:left" align="left"><span
            style="color:black" lang="EN-US">Best regards<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Haozhi Sha</span></p>
      </div>
    </blockquote>
    <blockquote type="cite"
cite="mid:SG2PR03MB4672D2ECB2B285937967DC31BF690@SG2PR03MB4672.apcprd03.prod.outlook.com"></blockquote>
  </body>
</html>