<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Dear Paolo,<div><br></div><div>Thank you so much for your response, which has been very helpful. I am almost done with what I wanted to do, with only one thing that I am not quite sure: the FUNCTION exx_divergence found in PW/src/exx.f90 (Yes, I know I can set exxdiv_treatment='none' to forget about it and then I'm done, but I want to take into account the divergence part if possible). Besides Gygi & Baldereschi PRB 34, 4405 (1986), could you please provide some other more detailed references about how this term is treated? From PW/examples/EXX_example/README, I know that basically the function adds and subtracts a term with the same divergence, but it would be good if there are some more detailed reference documenting what is exactly done in that function. Thank you very much for your help!</div><div><br></div><div>Best regards,</div><div><br></div><div>Zhenfei Liu</div><div><br></div><div>Lawrence Berkeley National Lab, USA<br><br><div><hr id="stopSpelling">From: p.giannozzi@gmail.com<br>Date: Thu, 20 Aug 2015 14:50:07 +0200<br>To: pw_forum@pwscf.org<br>Subject: Re: [Pw_forum] Range separated hybrid functional in Quantum ESPRESSO<br><br><div dir="ltr"><div>You may have a look at the "Gaussian-PBE" hybrid, singularity-free XC functional. In order to add a new functional, iIf you do not plan to use libxc, you have to modify Modules/funct.f90 and flib/*functionals.f90. Note however that this is sufficient for the "DFT" part only; the exact (or whatever it is) exchange part, found in PW/src/exx.f90, is a different animal.<br><br></div>Paolo<br></div><div class="ecxgmail_extra"><br><div class="ecxgmail_quote">On Wed, Aug 19, 2015 at 12:15 AM, Zhenfei Liu <span dir="ltr"><<a href="mailto:bruin.liu@outlook.com" target="_blank">bruin.liu@outlook.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr">Dear developers and users,<div><br></div><div>I would like to explore the use of range separated hybrid functional in quantum espresso for some systems. I know the HSE is implemented, but it only has short-range exact exchange. I am wondering if there are already, or if there are plans to implement some functionals with long-range exact exchange, such as the optimally-tuned range-separated hybrid functionals. </div><div><br></div><div>If not, I would like to make such an attempt myself, as I naively thought the necessary ingredients (range separation and exchange integrals) are already there within the code and one needs to pick the right ones and carefully combine them to make a functional. I mainly looked Modules/funct.f90, Modules/libxc.f90, and Modules/libxc_funct.f90. Are these three files the ONLY places that one needs to modify if one wants to create a user-defined functional? I searched the mailing list, and it looks to me there is one post from Paolo that briefly discussed this, but no extensive documents are present. Could someone please provide some suggestions?</div><div><br></div><div>Thank you very much!</div><span class="ecxHOEnZb"><font color="#888888"><div><br></div><div><br></div><div>Zhenfei Liu</div><div>Lawrence Berkeley National Lab, USA</div>                                        </font></span></div></div>
<br>_______________________________________________<br>
Pw_forum mailing list<br>
<a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
<a href="http://pwscf.org/mailman/listinfo/pw_forum" rel="noreferrer" target="_blank">http://pwscf.org/mailman/listinfo/pw_forum</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="ecxgmail_signature"><div dir="ltr"><div><div dir="ltr"><span><span><font color="#888888">Paolo Giannozzi, Dept. Chemistry&Physics&Environment,<br>
Univ. Udine, via delle Scienze 208, 33100 Udine, Italy<br>
Phone <a target="_blank">+39-0432-558216</a>, fax <a target="_blank">+39-0432-558222</a></font></span></span></div></div></div></div>
</div>
<br>_______________________________________________
Pw_forum mailing list
Pw_forum@pwscf.org
http://pwscf.org/mailman/listinfo/pw_forum</div></div>                                        </div></body>
</html>