<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 17, 2018 at 2:38 PM, Sabry Moustafa <span dir="ltr"><<a href="mailto:sabrygad@buffalo.edu" target="_blank">sabrygad@buffalo.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
(0) PROBLEM:<br>
WIEN2k did not accept lage temperatures (>~4000 K). I always get this <br>
error "FERMI5 - Error" in the job error file. No complain in the <br>
init_lapw step; only after run_lapw finishes. Any help here?<br></blockquote><div><br></div><div>No great surprise! If you are using this to improve convergence -- don't. With the Wien2k mixer I have found little evidence that this helps in most cases and in many cases it degrades convergence. Be careful about transferring "lore" from Vasp to Wien2k.</div><div><br></div><div>If you want to calculate real parameters at 4000K or higher then you need to look at real high-temperature functionals (which may be in LIBXC, or may not).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
(1) Thanks Blaha and Gavin for your help -- I tried it and worked fine. <br>
Gavin, please note that in Fermi-Dirac statistics the energy is <br>
temperature dependent. See for example Marzari's thesis (e.g., Fig 4.2):<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__theossrv1.epfl.ch_Main_Theses-3Faction-3Ddownload-26upname-3DMarzari-5Fthesis-5F1996.pdf&d=DwIGaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=QWFxBxDVokCVrWNwIw0tPvBInPWUpwTiF5I7NxLxYpY&s=cdlLD1tVxFmf0KY08zyP2A64jvG2mBpWzj8mZLsI9Qw&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__<wbr>theossrv1.epfl.ch_Main_Theses-<wbr>3Faction-3Ddownload-26upname-<wbr>3DMarzari-5Fthesis-5F1996.pdf&<wbr>d=DwIGaQ&c=<wbr>yHlS04HhBraes5BQ9ueu5zKhE7rtNX<wbr>t_d012z2PA6ws&r=U_<wbr>T4PL6jwANfAy4rnxTj8IUxm818jnvq<wbr>KFdqWLwmqg0&m=<wbr>QWFxBxDVokCVrWNwIw0tPvBInPWUpw<wbr>TiF5I7NxLxYpY&s=<wbr>cdlLD1tVxFmf0KY08zyP2A64jvG2mB<wbr>pWzj8mZLsI9Qw&e=</a> <br><br></blockquote><div>Of course. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
(2) Actually, the "TOTAL ENERGY IN Ry" in case.scf is the free energy <br>
F(T); i.e., F(T)=E(T) - T*S(T). This is written explicitly in the UG, <br>
when talking about "TEMPS" (Sec. 7.8.3):<br>
"The total energy is corrected by -TS ..."<br>
So, E(T) can be obtained from F(T) and -T*S(T), i.e., E = F + TS.<br>
<br></blockquote><div>The energy output using TEMPS is E = F + TS, no entropy corrections are appropriate for the Mermin functional. (The UG is a little ambiguous.)</div><div><br></div><div>For reference, TEMP is not recommended for PORT, TEMPS should be used. (TEMP can lead to erroneous results as the energy and forces are not completely consistent.) It does not matter with MSR1a since this does not use the energies.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(3) Since I am beginner and familiar more with VASP at this point, I <br>
checked (using hcp-Fe crystal) both F(T) and -T*S(T) from both and found <br>
them to be consistent!<br>
<br></blockquote><div>I am not sure what this means. TEMPS is the Mermin functional with the electronic entropy correctly included. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks;<br>
Sabry<br>
<br>
On 05/15/2018 03:34 AM, Peter Blaha wrote:<br>
><br>
> Thanks for the bug report in init_lapw.<br>
><br>
> Please note: when the temperature (broadening) is set to zero, it will <br>
> use automatically "room temperature" (0.0018 Ry).<br>
><br>
> On 05/15/2018 06:40 AM, Gavin Abo wrote:<br>
>> I think you found a bug in init_lapw.  The fix seems like it should <br>
>> be simple though.  On line 498 in the init_lapw script in the sed <br>
>> command, it looks like $fermit just needs changed to $fermits.<br>
>><br>
>> I made a patch file called init_lapw.patch [ <br>
>> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_gsabo_WIEN2k-2DPatches_tree_master_17.1&d=DwIGaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=QWFxBxDVokCVrWNwIw0tPvBInPWUpwTiF5I7NxLxYpY&s=4eJpf4P5rc-owCyY2z0A6f4LwLXfyV53RoirzxKM0Ng&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=https-3A__github.<wbr>com_gsabo_WIEN2k-2DPatches_<wbr>tree_master_17.1&d=DwIGaQ&c=<wbr>yHlS04HhBraes5BQ9ueu5zKhE7rtNX<wbr>t_d012z2PA6ws&r=U_<wbr>T4PL6jwANfAy4rnxTj8IUxm818jnvq<wbr>KFdqWLwmqg0&m=<wbr>QWFxBxDVokCVrWNwIw0tPvBInPWUpw<wbr>TiF5I7NxLxYpY&s=4eJpf4P5rc-<wbr>owCyY2z0A6f4LwLXfyV53RoirzxKM0<wbr>Ng&e=</a> ], which you <br>
>> should be able to apply and try simply using:<br>
>><br>
>> username@computername:~/<wbr>Desktop$ cd $WIENROOT<br>
>> username@computername:~/<wbr>WIEN2k$ wget <br>
>> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__raw.githubusercontent.com_gsabo_WIEN2k-2DPatches_master_17.1_init-5Flapw.patch&d=DwIGaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=QWFxBxDVokCVrWNwIw0tPvBInPWUpwTiF5I7NxLxYpY&s=JTU0K_FuSjQMbKJ3T_PkRcYRnJeSFWlJ4r-I9glbang&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=https-3A__raw.<wbr>githubusercontent.com_gsabo_<wbr>WIEN2k-2DPatches_master_17.1_<wbr>init-5Flapw.patch&d=DwIGaQ&c=<wbr>yHlS04HhBraes5BQ9ueu5zKhE7rtNX<wbr>t_d012z2PA6ws&r=U_<wbr>T4PL6jwANfAy4rnxTj8IUxm818jnvq<wbr>KFdqWLwmqg0&m=<wbr>QWFxBxDVokCVrWNwIw0tPvBInPWUpw<wbr>TiF5I7NxLxYpY&s=JTU0K_<wbr>FuSjQMbKJ3T_PkRcYRnJeSFWlJ4r-<wbr>I9glbang&e=</a><br>
>> username@computername:~/<wbr>WIEN2k$ patch -b init_lapw init_lapw.patch<br>
>> patching file init_lapw<br>
>><br>
>> Maybe F is the :ENE (TOTAL ENERGY) in case.scf.<br>
>><br>
>> I tried following what a previous user did [ <br>
>> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.mail-2Darchive.com_wien-40zeus.theochem.tuwien.ac.at_msg10319.html&d=DwIGaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=QWFxBxDVokCVrWNwIw0tPvBInPWUpwTiF5I7NxLxYpY&s=RrAVLEV5tqysZLt_rsnLOkoND5UV7q-Ef1ZnXC3d0yk&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=https-3A__www.<wbr>mail-2Darchive.com_wien-<wbr>40zeus.theochem.tuwien.ac.at_<wbr>msg10319.html&d=DwIGaQ&c=<wbr>yHlS04HhBraes5BQ9ueu5zKhE7rtNX<wbr>t_d012z2PA6ws&r=U_<wbr>T4PL6jwANfAy4rnxTj8IUxm818jnvq<wbr>KFdqWLwmqg0&m=<wbr>QWFxBxDVokCVrWNwIw0tPvBInPWUpw<wbr>TiF5I7NxLxYpY&s=<wbr>RrAVLEV5tqysZLt_<wbr>rsnLOkoND5UV7q-Ef1ZnXC3d0yk&e=</a> <br>
>> ] but with a quick TiC calculation using run_lapw in WIEN2k 17.1:<br>
>><br>
>> T = 1000 K = 0.00633 Ry<br>
>> init_lapw -b -fermits 0.00633<br>
>> TiC.scf::ENE  : ********** TOTAL ENERGY IN Ry = -1783.95041939<br>
>> TiC.output2:          Kb * T            =   0.00633000<br>
>> TiC.output2:          -T*Entr           =  -0.00054181<br>
>><br>
>> T = 0 K = 0.0 Ry<br>
>> init_lapw -b -fermits 0.0<br>
>> TiC.scf::ENE  : ********** TOTAL ENERGY IN Ry = -1783.94928338<br>
>> TiC.output2:          Kb * T            =   0.00180000<br>
>> TiC.output2:          -T*Entr           =  -0.00005329<br>
>><br>
>> F_1000K - F_0K = (E - T*S) - (E - 0) = -T*S = -1783.95041939 - <br>
>> (-1783.94928338) = -0.001136 => -T*S = -0.001136<br>
>><br>
>> If -T*S divided by 2:<br>
>><br>
>> -T*S = -0.001136/2 = - 0.000568 <- This seems reasonably close to the <br>
>> above -0.00054181 for T = 1000 K.<br>
>><br>
>> As I recall, the -T*S term was doubled in WIEN2k versions after 2014 <br>
>> [ <br>
>> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.mail-2Darchive.com_wien-40zeus.theochem.tuwien.ac.at_msg10319.html&d=DwIGaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=QWFxBxDVokCVrWNwIw0tPvBInPWUpwTiF5I7NxLxYpY&s=RrAVLEV5tqysZLt_rsnLOkoND5UV7q-Ef1ZnXC3d0yk&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=https-3A__www.<wbr>mail-2Darchive.com_wien-<wbr>40zeus.theochem.tuwien.ac.at_<wbr>msg10319.html&d=DwIGaQ&c=<wbr>yHlS04HhBraes5BQ9ueu5zKhE7rtNX<wbr>t_d012z2PA6ws&r=U_<wbr>T4PL6jwANfAy4rnxTj8IUxm818jnvq<wbr>KFdqWLwmqg0&m=<wbr>QWFxBxDVokCVrWNwIw0tPvBInPWUpw<wbr>TiF5I7NxLxYpY&s=<wbr>RrAVLEV5tqysZLt_<wbr>rsnLOkoND5UV7q-Ef1ZnXC3d0yk&e=</a> <br>
>> ].<br>
>><br>
>> Though, there may be a flaw in my above calculation.<br>
>><br>
>> On 5/14/2018 5:35 PM, Sabry Moustafa wrote:<br>
>>><br>
>>> Hi;<br>
>>><br>
>>> I am interested in the electronic free energy (F=E-TS) using the <br>
>>> finite temperature DFT using Fermi-Dirac statistics (i.e., Mermin's <br>
>>> extension to 0 K DFT) -- i.e., I am not just looking for Fermi-Dirac <br>
>>> as a broadening/smearing technique. So,how this can be done in WIEN2k?<br>
>>><br>
>>> It looks like I have to define "-fermits X" in the init_lapw command <br>
>>> (where X= kT, in Ry). But when I did (T=1000K in my case):<br>
>>><br>
>>> init_lapw -b -fermits 0.00633<br>
>>><br>
>>> I got "fermit: Undefined variable." at the end. This is fixed though <br>
>>> when defined fermit as well:<br>
>>><br>
>>> init_lapw -b -fermit 0.00633 -fermits 0.00633<br>
>>><br>
>>> So, do I have to define both?<br>
>>><br>
>>><br>
>>> Also, where can I find this "free energy F". It does not seem to be <br>
>>> the "TOTAL ENERGY" in case.scf. Seems like I need to add this "TOTAL <br>
>>> ENERGY" (E) to "-T*Entr" (-TS) in case.output2 file to get F?<br>
>>><br>
>>><br>
>>> Thanks ;<br>
>>><br>
>>> Sabry<br>
>>><br>
>>><br>
>>> :-:-:-:-:-:-:-:-:-:-:-:-:-:-:-<wbr>:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-<wbr>:-:-:-:-:-:-:-:-:-: <br>
>>><br>
>>><br>
>>> Sabry G. Moustafa, Ph.D.<br>
>>> Department of Chemical and Biological Engineering,<br>
>>> University at Buffalo, The State University of New York.<br>
>>> 511 Furnas Hall<br>
>>> Buffalo, NY 14260-4200<br>
>>> 716-645-1186 (office)<br>
>>> 716-239-8543 (cell)<br>
>>><br>
>>> E-mail: <a href="mailto:sabrygad@buffalo.edu">sabrygad@buffalo.edu</a> <mailto:<a href="mailto:sabrygad@buffalo.edu">sabrygad@buffalo.edu</a>><br>
>><br>
>><br>
>> ______________________________<wbr>_________________<br>
>> Wien mailing list<br>
>> <a href="mailto:Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.<wbr>at</a><br>
>> <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__zeus.theochem.tuwien.ac.at_mailman_listinfo_wien&d=DwIGaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=QWFxBxDVokCVrWNwIw0tPvBInPWUpwTiF5I7NxLxYpY&s=nPoza6g2nhIrA5N9f572AJoUBzFHBt9HPGdZQEVd_fo&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__zeus.<wbr>theochem.tuwien.ac.at_mailman_<wbr>listinfo_wien&d=DwIGaQ&c=<wbr>yHlS04HhBraes5BQ9ueu5zKhE7rtNX<wbr>t_d012z2PA6ws&r=U_<wbr>T4PL6jwANfAy4rnxTj8IUxm818jnvq<wbr>KFdqWLwmqg0&m=<wbr>QWFxBxDVokCVrWNwIw0tPvBInPWUpw<wbr>TiF5I7NxLxYpY&s=<wbr>nPoza6g2nhIrA5N9f572AJoUBzFHBt<wbr>9HPGdZQEVd_fo&e=</a><br>
>> SEARCH the MAILING-LIST at: <br>
>> <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mail-2Darchive.com_wien-40zeus.theochem.tuwien.ac.at_index.html&d=DwIGaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=QWFxBxDVokCVrWNwIw0tPvBInPWUpwTiF5I7NxLxYpY&s=D6JjuuLKetRow32Cd-Ou2QplGBOodXpebJILQsaYxq8&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__www.<wbr>mail-2Darchive.com_wien-<wbr>40zeus.theochem.tuwien.ac.at_<wbr>index.html&d=DwIGaQ&c=<wbr>yHlS04HhBraes5BQ9ueu5zKhE7rtNX<wbr>t_d012z2PA6ws&r=U_<wbr>T4PL6jwANfAy4rnxTj8IUxm818jnvq<wbr>KFdqWLwmqg0&m=<wbr>QWFxBxDVokCVrWNwIw0tPvBInPWUpw<wbr>TiF5I7NxLxYpY&s=<wbr>D6JjuuLKetRow32Cd-<wbr>Ou2QplGBOodXpebJILQsaYxq8&e=</a><br>
>><br>
><br>
<br>
______________________________<wbr>_________________<br>
Wien mailing list<br>
<a href="mailto:Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.<wbr>at</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__zeus.theochem.tuwien.ac.at_mailman_listinfo_wien&d=DwIGaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=QWFxBxDVokCVrWNwIw0tPvBInPWUpwTiF5I7NxLxYpY&s=nPoza6g2nhIrA5N9f572AJoUBzFHBt9HPGdZQEVd_fo&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__zeus.<wbr>theochem.tuwien.ac.at_mailman_<wbr>listinfo_wien&d=DwIGaQ&c=<wbr>yHlS04HhBraes5BQ9ueu5zKhE7rtNX<wbr>t_d012z2PA6ws&r=U_<wbr>T4PL6jwANfAy4rnxTj8IUxm818jnvq<wbr>KFdqWLwmqg0&m=<wbr>QWFxBxDVokCVrWNwIw0tPvBInPWUpw<wbr>TiF5I7NxLxYpY&s=<wbr>nPoza6g2nhIrA5N9f572AJoUBzFHBt<wbr>9HPGdZQEVd_fo&e=</a><br>
SEARCH the MAILING-LIST at:  <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mail-2Darchive.com_wien-40zeus.theochem.tuwien.ac.at_index.html&d=DwIGaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=QWFxBxDVokCVrWNwIw0tPvBInPWUpwTiF5I7NxLxYpY&s=D6JjuuLKetRow32Cd-Ou2QplGBOodXpebJILQsaYxq8&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__www.<wbr>mail-2Darchive.com_wien-<wbr>40zeus.theochem.tuwien.ac.at_<wbr>index.html&d=DwIGaQ&c=<wbr>yHlS04HhBraes5BQ9ueu5zKhE7rtNX<wbr>t_d012z2PA6ws&r=U_<wbr>T4PL6jwANfAy4rnxTj8IUxm818jnvq<wbr>KFdqWLwmqg0&m=<wbr>QWFxBxDVokCVrWNwIw0tPvBInPWUpw<wbr>TiF5I7NxLxYpY&s=<wbr>D6JjuuLKetRow32Cd-<wbr>Ou2QplGBOodXpebJILQsaYxq8&e=</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:12.8px">Professor Laurence Marks</span><br></div><div dir="ltr"><span style="font-size:12.8px">"Research is to see what everybody else has seen, and to think what nobody else has thought", </span><span style="font-size:12.8px">Albert Szent-Gyorgi</span><br><a href="http://www.numis.northwestern.edu" target="_blank">www.numis.northwestern.edu</a> ; <span style="font-size:12.8px">Corrosion in 4D: </span><a href="http://MURI4D.numis.northwestern.edu" style="font-size:12.8px" target="_blank">MURI4D.numis.northwestern.edu</a><div><span style="font-size:12.8px">Partner of the CFW 100% program for gender equity, </span><a href="http://www.cfw.org/100-percent" style="font-size:12.8px" target="_blank">www.cfw.org/100-percent</a></div><div>Co-Editor, Acta Cryst A</div></div></div></div></div></div></div></div></div></div></div>
</div></div>