<div dir="ltr"><div> Dear Dr. Hashemifar,</div><div><br></div><div>My answer might be slightly too late, but might be of some help to you. You can take a look at our papers J. Phys.: Condens. Matter 27 (2015) 206003 (7pp) and Journal of Magnetism and Magnetic Materials 563 (2022) 169885. This can be done. <br></div><div><br></div><div>Our implementation is to change the lapw2 codes so that the weightfile read into the code is replaced by your desired weight file. There are three places that Wien code reads in the same weight files. I did not change the latest codes. When you try to fill some conduction bands and remove some electrons from valence bands, give some broadening because the self-consistent iteration at the next step may have a strong charge fluctuation, which affects convergence. We tested both statically and dynamically with a laser pulse, and found Wien2k is very stable. If necessary, reducing the mixing in case.inm file. Sometimes, we also reduce the convergence criterion, which must be checked carefully. <br></div><div><br></div><div>Best wishes,</div><div><br></div><div>Guoping<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 14, 2023 at 2:34 PM Seyed Javad Hashemifar <<a href="mailto:hashemifar@iut.ac.ir">hashemifar@iut.ac.ir</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:10pt;font-family:Tahoma,Arial,Helvetica,sans-serif">
<p>sounds interesting, thank you!</p>
<div id="m_-6190552684653749464signature">---<br>
<div style="margin:0px;padding:0px;font-family:monospace"><hr></div>
<div style="margin:0px;padding:0px;font-family:monospace"><span style="color:rgb(52,73,94)">S. Javad Hashemifar, PhD</span></div>
<div style="margin:0px;padding:0px;font-family:monospace"><span style="color:rgb(126,140,141)">Professor, Department of Physics</span><br><span style="color:rgb(149,165,166)">Isfahan University of Technology, Iran</span><br><span style="color:rgb(206,212,217)">Personal web page: <a style="color:rgb(206,212,217)" href="https://hashemifar.iut.ac.ir/" rel="noopener noreferrer" target="_blank">https://hashemifar.iut.ac.ir</a></span><br><br></div>
</div>
<p><br></p>
<p id="m_-6190552684653749464reply-intro">On 2023-06-14 19:56, Peter Blaha wrote:</p>
<blockquote type="cite" style="padding:0px 0.4em;border-left:2px solid rgb(16,16,255);margin:0px">
<div id="m_-6190552684653749464replybody1">
<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>Am 14.06.2023 um 17:09 schrieb Seyed Javad Hashemifar:</div>
<blockquote type="cite" style="padding:0px 0.4em;border-left:2px solid rgb(16,16,255);margin:0px">
<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="m_-6190552684653749464v1signature">-- <br>
<div style="margin:0px;padding:0px;font-family:monospace"><hr></div>
<div style="margin:0px;padding:0px;font-family:monospace"><span style="color:rgb(52,73,94)">S. Javad Hashemifar, PhD</span></div>
<div style="margin:0px;padding:0px;font-family:monospace"><span style="color:rgb(126,140,141)">Professor, Department of Physics</span><br><span style="color:rgb(149,165,166)">Isfahan University of Technology, Iran</span><br><span style="color:rgb(206,212,217)">Personal web page: <a style="color:rgb(206,212,217)" href="https://hashemifar.iut.ac.ir/" rel="noopener noreferrer" target="_blank">https://hashemifar.iut.ac.ir</a></span><br><br></div>
</div>
<br><fieldset></fieldset>
<pre>_______________________________________________
Wien mailing list
<a href="mailto:Wien@zeus.theochem.tuwien.ac.at" rel="noreferrer" target="_blank">Wien@zeus.theochem.tuwien.ac.at</a>
<a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" rel="noopener noreferrer" target="_blank">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a>
SEARCH the MAILING-LIST at: <a href="http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html" rel="noopener noreferrer" target="_blank">http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html</a>
</pre>
</blockquote>
<pre>--
-----------------------------------------------------------------------
Peter Blaha, Inst. f. Materials Chemistry, TU Vienna, A-1060 Vienna
Phone: +43-158801165300
Email: <a href="mailto:peter.blaha@tuwien.ac.at" rel="noreferrer" target="_blank">peter.blaha@tuwien.ac.at</a>
WWW: <a href="http://www.imc.tuwien.ac.at" rel="noopener noreferrer" target="_blank">http://www.imc.tuwien.ac.at</a> WIEN2k: <a href="http://www.wien2k.at" rel="noopener noreferrer" target="_blank">http://www.wien2k.at</a>
-------------------------------------------------------------------------</pre>
</div>
</div>
<br>
<div style="margin:0px;padding:0px;font-family:monospace">_______________________________________________<br>Wien mailing list<br><a href="mailto:Wien@zeus.theochem.tuwien.ac.at" target="_blank">Wien@zeus.theochem.tuwien.ac.at</a><br><a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" rel="noopener noreferrer" target="_blank">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" rel="noopener noreferrer" target="_blank">http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html</a></div>
</blockquote>
</div>
_______________________________________________<br>
Wien mailing list<br>
<a href="mailto:Wien@zeus.theochem.tuwien.ac.at" target="_blank">Wien@zeus.theochem.tuwien.ac.at</a><br>
<a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" rel="noreferrer" target="_blank">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" rel="noreferrer" target="_blank">http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html</a><br>
</blockquote></div>