<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jan 4, 2012, at 6:08 PM, Jun Liu wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Dear Dr. Baroni and other forum members,<br><br>Thanks for your kind and patient response on my question. I am glad to know that there is a way to cheat QE to do a free electron gas calculation by giving a null pseudo-potential. I guess this "null" means replacing every number in the pp file with zero. If the case, then I might ask a bit further on my question.<br></blockquote><div><br></div>well, you have to understand what the various "zeroes" mean, and be sure that what you do makes sense. for this, I am afraid, you will need to dig a bit into the UPF format. not sure the effort would be worth the result. I would rather suggest to try first what Lorenzo Paulatto suggested, and then, if anything else fails, it may be simpler to modify the code than to fudge the .upf files ...</div><div><br><blockquote type="cite">With a free electron gas system, plane wave expansion would be enough. 
But what if I want to replace the plane wave basis with the plane wave +
 some local orbital basis and do the calculation. </blockquote><div><br></div>not sure I understand why with the zillions of interesting physics problems to solve that exist out there you want to solve a trivial problem with a very complicated method ... in any case, mixed basis sets are not implemented in any of the QE codes ...</div><div><br><blockquote type="cite">Although a weird request, this should be able to be done in principle. But the issue is how to introduce the local orbits into the problem. Can I do something like this? </blockquote><div><br></div>yes, but not with QE</div><div><br><blockquote type="cite">Choose some pp giving the local orbitals to be included in the calculation, and set in the input pp file the local/nonlocal potential and the pseudo/AE core charge to vanish, to mimic the fact that there is no ion existing in the system. Then what is left in the pp file might render QE to do some type of plane wave+local orbital calculation. Please let me know whether this idea works and whether these modifications are sufficient for the purpose. <br></blockquote><div><br></div>I do not understand what the idea is. I am afraid you are confusing the localized nature of *some* basis sets (including, e.g., gaussians, or atomic orbitals) with the atomic wavefunctions that come with the .upf file and that are *NOT* used as basis functions. be sure you understand what US PP, PAW, and the like work ...</div><div><br><blockquote type="cite">I might here ask a very fundamental question. The reason we choose the sophisticated PAW treatment by introducing projector/pseudo/AE wavefunction directly relies on the non-smoothness nature of the valence orbital itself, but not on a specific ion to be treated. That is to say, we don't need to know what is behind the scene when deciding whether PAW treatment is needed given a specific valence orbital in the pp file.  Am I right?<br></blockquote><div><br></div>you always need to know "what is behind the scene": that's exactly the purpose of Science ...</div><div><br></div><div>Stefano B</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px; ">---</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Stefano Baroni - SISSA</span></font><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px; ">  </span></font><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px; ">&</span></font><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px; ">  </span></font><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px; ">DEMOCRITOS National Simulation Center - Trieste</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px; "><a href="http://stefano.baroni.me/">http://stefano.baroni.me</a> [+39] 040 3787 406 (tel) -528 (fax) / stefanobaroni (skype)</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; font-size: 12px; "><br style="font-size: 12px; "></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; font-size: 12px; "><span class="Apple-style-span" style="font-size: 14px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px; ">La morale est une logique de l'action comme la logique est une morale de la pensée - Jean Piaget</span></font></div></span></div></div></div></span></span>
</div>
<br></body></html>