<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <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="moz-cite-prefix">Am 14.06.2023 um 17:09 schrieb Seyed
      Javad Hashemifar:<br>
    </div>
    <blockquote type="cite"
      cite="mid:416ae84a4bba8579f56b67bca975b9c1@iut.ac.ir">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <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="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" moz-do-not-send="true"
              class="moz-txt-link-freetext">https://hashemifar.iut.ac.ir</a></span><br>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Wien mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.at</a>
<a class="moz-txt-link-freetext" href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a>
SEARCH the MAILING-LIST at:  <a class="moz-txt-link-freetext" href="http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html">http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
-----------------------------------------------------------------------
Peter Blaha,  Inst. f. Materials Chemistry, TU Vienna, A-1060 Vienna
Phone: +43-158801165300
Email: <a class="moz-txt-link-abbreviated" href="mailto:peter.blaha@tuwien.ac.at">peter.blaha@tuwien.ac.at</a>          
WWW:   <a class="moz-txt-link-freetext" href="http://www.imc.tuwien.ac.at">http://www.imc.tuwien.ac.at</a>      WIEN2k: <a class="moz-txt-link-freetext" href="http://www.wien2k.at">http://www.wien2k.at</a>
-------------------------------------------------------------------------</pre>
  </body>
</html>