I solved the problem and it was accepted into the code.<div><ol><li>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)<br /><br /></li><li>I added such an implementation in the code. Only two method supports:<ul><li>NONE: No rotation, just print the orbital centers.</li><li>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)</li></ul></li></ol>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.<br /></div><div><br /></div><div>Commits: https://github.com/cp2k/cp2k/pull/3108</div><div class="gmail_quote"><div dir="auto" class="gmail_attr">четверг, 24 августа 2023 г. в 15:19:45 UTC+3, Ilya Fedorov: <br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><p style="line-height:150%"><span lang="EN-GB" style="font-family:"Helvetica Neue"">Dear colleagues, </span></p>
<p style="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></p>
<p style="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></p>
<p style="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></p><p style="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></p>
<p style="line-height:150%"><span lang="EN-US" style="font-family:"Helvetica Neue""> </span></p>
<p style="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></p>
<p style="line-height:150%"><span lang="EN-GB" style="font-family:"Helvetica Neue"">Best
regards</span></p>
<p style="line-height:150%"><span lang="EN-GB" style="font-family:"Helvetica Neue"">Ilya</span></p></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/c479ab3a-9ed0-4750-9997-94a532c92a84n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/c479ab3a-9ed0-4750-9997-94a532c92a84n%40googlegroups.com</a>.<br />