<p>Dear Matthias,</p>
<p>I am sorry for the delay in answering your question.</p>
<p>Indeed, sometimes I observed poor convergence of OT with ROKS, but sometimes the convergence is much better than diagonalization in СPMD. But at the moment I do not have a systematic understanding of the roots of this problem.</p>
<p>I made various comparisons between CPMD and CP2K in terms of calculations with ROKS: comparing forces, trajectories, orbitals and Wannier centers, in general I got a fairly close agreement.</p>
<p>In the near future I plan to collect these results into one report and post it here.</p>
<p>Best</p>
<p>Ilya</p><br /><div class="gmail_quote"><div dir="auto" class="gmail_attr">четверг, 16 ноября 2023 г. в 15:31:03 UTC+3, Krack Matthias: <br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div lang="en-CH" link="blue" vlink="purple" style="word-wrap:break-word">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Hi Ilya<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Thanks for contributing and fixing the print issue.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Indeed, ROKS produces only one set of orbitals, since there is also only one Hamiltonian, i.e. Kohn-Sham matrix, but different orbital occupations are applied for spin-up
(alpha) and spin-down (beta) electrons which results in an alpha and beta electronic density matrix.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">The LOW-SPIN ROKS implementation in CP2K based on OT plus ROTATION is experimental as indicated by a warning printed in the output. That implementation has not been
maintained since a long time. Therefore, I am wondering, if the implementation works properly, e.g. for the new test case O2_mo_cubes.inp. I tried tighter thresholds and a larger cutoff and box size, but the SCF did not converge. What’s your experience and
how do the results compare to ROKS in CPMD?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Best<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Matthias<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><u></u> <u></u></span></p>
<div>
<div></div></div></div></div><div lang="en-CH" link="blue" vlink="purple" style="word-wrap:break-word"><div><div><div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt">
<b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black"><a href data-email-masked rel="nofollow">cp...@googlegroups.com</a> <<a href data-email-masked rel="nofollow">cp...@googlegroups.com</a>> on behalf of Ilya Fedorov <<a href data-email-masked rel="nofollow">ilyafe...@gmail.com</a>><br>
<b>Date: </b>Thursday, 16 November 2023 at 10:59<br>
<b>To: </b>cp2k <<a href data-email-masked rel="nofollow">cp...@googlegroups.com</a>><br>
<b>Subject: </b>[CP2K:19518] Re: Problem with the calculation of the CUBE file and Wannier Centres using the ROKS method?<u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt">I solved the problem and it was accepted into the code.<u></u><u></u></span></p>
</div></div></div></div><div lang="en-CH" link="blue" vlink="purple" style="word-wrap:break-word"><div><div><div><div>
<p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:72.0pt">
<u></u><span style="font-size:11.0pt"><span>1.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:11.0pt">As I understand it, for ROKS the UKS base is used, and different spins of the same orbital have the same density. This allows to rely on the UKS codes, while you can use MO_CUBES only for spin-1.
(regtest: QS/regtest-lsroks/O2_mo_cubes.inp)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:72.0pt">
<u></u><span style="font-size:11.0pt"><span>2.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:11.0pt">I added such an implementation in the code. Only two method supports:<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:108.0pt">
<u></u><span style="font-family:"Courier New""><span>o<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:11.0pt">NONE: No rotation, just print the orbital centers.<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:108.0pt">
<u></u><span style="font-family:"Courier New""><span>o<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:11.0pt">JACOBI: Only doubly occupied orbitals rotate; for singly occupied orbitals, no rotation occurs (like the NONE method). (regtest: QS/regtest-lsroks/O2_loc_wan_jac.inp)<u></u><u></u></span></p></div></div></div></div></div><div lang="en-CH" link="blue" vlink="purple" style="word-wrap:break-word"><div><div><div><div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt">It is possible to use only NONE and JACOBI. Other methods can be added in the future, but ROKS calculates quite slowly, and speeding up the Wannier calculation does not make a big
contribution here.<u></u><u></u></span></p>
</div></div></div></div></div><div lang="en-CH" link="blue" vlink="purple" style="word-wrap:break-word"><div><div><div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt">Commits: <a href="https://github.com/cp2k/cp2k/pull/3108" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=ru&q=https://github.com/cp2k/cp2k/pull/3108&source=gmail&ust=1700411219370000&usg=AOvVaw063kyPRoVdTo_fG1T7XDC-">https://github.com/cp2k/cp2k/pull/3108</a><u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt">четверг, 24 августа 2023 г. в 15:19:45 UTC+3, Ilya Fedorov:
<u></u><u></u></span></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p style="margin-left:36.0pt;line-height:150%"><span lang="EN-GB" style="font-family:"Helvetica Neue"">Dear colleagues,
</span><u></u><u></u></p>
<p style="margin-left:36.0pt;line-height:150%"><span lang="EN-GB" style="font-family:"Helvetica Neue""> </span><span style="font-family:"Helvetica Neue"">Could you please help me to understand the CP2K implementation of ROKS and the Wannier Centers.</span><u></u><u></u></p>
<p style="margin-left:36.0pt;line-height:150%"><span lang="EN-GB" style="font-family:"Helvetica Neue"">I am facing the following two problems. I can't find an answer in the documentation. And, unfortunately, I don't really understand in the code.</span><u></u><u></u></p>
<p style="margin-left:36.0pt;line-height:150%"><span lang="EN-GB" style="font-family:"Helvetica Neue"">1) The ROKS implementation in CP2K uses a spin-restricted calculation with multiple density matrices. As I understand it, this leads to some problems with
printing CUBE files (for example, for each orbital it prints two cube files for spin_1 and spin_2). Which one is correct? Maybe the sum of them gives a correct density? </span><u></u><u></u></p>
<p style="margin-left:36.0pt;line-height:150%"><span lang="EN-US" style="font-family:"Helvetica Neue"">(in log it print “</span><span lang="EN-GB" style="font-family:"Helvetica Neue"">Unclear how we define MOs in the restricted case ... skipping”)</span><u></u><u></u></p>
<p style="margin-left:36.0pt;line-height:150%"><span lang="EN-US" style="font-family:"Helvetica Neue""> </span><u></u><u></u></p>
<p style="margin-left:36.0pt;line-height:150%"><span lang="EN-GB" style="font-family:"Helvetica Neue"">2) I’m trying to use Wannier Centres with ROKS, but it doesn’t work in CP2K. As I understand this is also a multiple density matrix problem. I need Wannier
Centres only (Many-body Position operator, no Jacobi rotation). Right now I use Wannier + ROKS in CPMD, and in CPMD the rotation is just switched off for the last two orbitals (diag(1,1)).</span><span style="font-family:"Helvetica Neue""> </span><u></u><u></u></p>
<p style="margin-left:36.0pt;line-height:150%"><span lang="EN-GB" style="font-family:"Helvetica Neue"">Best regards</span><u></u><u></u></p>
<p style="margin-left:36.0pt;line-height:150%"><span lang="EN-GB" style="font-family:"Helvetica Neue"">Ilya</span><u></u><u></u></p>
</blockquote>
</div>
</div></div></div></div><div lang="en-CH" link="blue" vlink="purple" style="word-wrap:break-word"><div><div><div><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt">--
<br>
You received this message because you are subscribed to the Google Groups "cp2k" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to
<a href data-email-masked rel="nofollow">cp2k+uns...@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/c479ab3a-9ed0-4750-9997-94a532c92a84n%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=ru&q=https://groups.google.com/d/msgid/cp2k/c479ab3a-9ed0-4750-9997-94a532c92a84n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1700411219370000&usg=AOvVaw0BnuC6IU1xrQLWgMWzVBsm">
https://groups.google.com/d/msgid/cp2k/c479ab3a-9ed0-4750-9997-94a532c92a84n%40googlegroups.com</a>.<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</blockquote></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "cp2k" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/f161fe73-f11f-4531-9752-218f56617cb3n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/f161fe73-f11f-4531-9752-218f56617cb3n%40googlegroups.com</a>.<br />