<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Tahoma,Arial,Helvetica,sans-serif'>
<p>sounds interesting, thank you!</p>
<div id="signature">---<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><hr /></div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span style="color: #34495e;">S. Javad Hashemifar, PhD</span></div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span style="color: #7e8c8d;">Professor, Department of Physics</span><br /><span style="color: #95a5a6;">Isfahan University of Technology, Iran</span><br /><span style="color: #ced4d9;">Personal web page: <a style="color: #ced4d9;" href="https://hashemifar.iut.ac.ir/" rel="noopener noreferrer">https://hashemifar.iut.ac.ir</a></span><br /><br /></div>
</div>
<p><br /></p>
<p id="reply-intro">On 2023-06-14 19:56, Peter Blaha wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div>
<p>It depends, but when you are lucky and have a reasonable gap: yes.</p>
<p>modify case.in2  and reduce NE by one.</p>
<p>copy case.in1 to case.in1sc, and the same with case.in2</p>
<p>edit case.in2sc and increase NE by 2 (by one of the original) and put Emin to the previous (scf)  EFermi.</p>
<p>run_lapw ...</p>
<p>In this way you get two densities, one of NE-1 electrons and one with 1 electron.</p>
<p>However, EF may change and you may have to adapt Emin during this scf cycle.</p>
<p>One would need to change the code and read a NBAND_min, ....</p>
<p>PS: I tried this once but failed, because I wanted to occupy the "LUMO" state, which was of p-y character. My hope was, that this would lead to forces and move the atom somewhere else. However, during occupation of this py state it got shifted up in energy and another orbital became the "LUMO", so my relaxation was not due to this additional py electron, but something else ....</p>
<p><br /></p>
<div class="v1moz-cite-prefix">Am 14.06.2023 um 17:09 schrieb Seyed Javad Hashemifar:</div>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<p>Dear Wien2k developers and users</p>
<p>Is  Wien2k able to perform constrained DFT calculations for excited states study?</p>
<p>More specifically, I want to empty the Nth state and occupy the (N+1)th level.</p>
<p>Bests</p>
<p>S. Javad Hashemifar</p>
<p><br /></p>
<div id="v1signature">-- <br />
<div class="v1pre" style="margin: 0; padding: 0; font-family: monospace;"><hr /></div>
<div class="v1pre" style="margin: 0; padding: 0; font-family: monospace;"><span style="color: #34495e;">S. Javad Hashemifar, PhD</span></div>
<div class="v1pre" style="margin: 0; padding: 0; font-family: monospace;"><span style="color: #7e8c8d;">Professor, Department of Physics</span><br /><span style="color: #95a5a6;">Isfahan University of Technology, Iran</span><br /><span style="color: #ced4d9;">Personal web page: <a class="v1moz-txt-link-freetext" style="color: #ced4d9;" href="https://hashemifar.iut.ac.ir/" target="_blank" rel="noopener noreferrer">https://hashemifar.iut.ac.ir</a></span><br /><br /></div>
</div>
<br /><fieldset class="v1moz-mime-attachment-header"></fieldset>
<pre class="v1moz-quote-pre">_______________________________________________
Wien mailing list
<a class="v1moz-txt-link-abbreviated" href="mailto:Wien@zeus.theochem.tuwien.ac.at" rel="noreferrer">Wien@zeus.theochem.tuwien.ac.at</a>
<a class="v1moz-txt-link-freetext" href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" target="_blank" rel="noopener noreferrer">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a>
SEARCH the MAILING-LIST at:  <a class="v1moz-txt-link-freetext" href="http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html" target="_blank" rel="noopener noreferrer">http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html</a>
</pre>
</blockquote>
<pre class="v1moz-signature">-- 
-----------------------------------------------------------------------
Peter Blaha,  Inst. f. Materials Chemistry, TU Vienna, A-1060 Vienna
Phone: +43-158801165300
Email: <a class="v1moz-txt-link-abbreviated" href="mailto:peter.blaha@tuwien.ac.at" rel="noreferrer">peter.blaha@tuwien.ac.at</a>          
WWW:   <a class="v1moz-txt-link-freetext" href="http://www.imc.tuwien.ac.at" target="_blank" rel="noopener noreferrer">http://www.imc.tuwien.ac.at</a>      WIEN2k: <a class="v1moz-txt-link-freetext" href="http://www.wien2k.at" target="_blank" rel="noopener noreferrer">http://www.wien2k.at</a>
-------------------------------------------------------------------------</pre>
</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br />Wien mailing list<br /><a href="mailto:Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.at</a><br /><a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" target="_blank" rel="noopener noreferrer">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br />SEARCH the MAILING-LIST at:  <a href="http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html" target="_blank" rel="noopener noreferrer">http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html</a></div>
</blockquote>
</body></html>