<p dir="ltr" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(34, 34, 34); background-color: transparent; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;">Hi Thomas and everyone,</span></p><p dir="ltr" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;"><br /></p><p dir="ltr" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(34, 34, 34); background-color: transparent; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;">I'm copying what Keith wrote to one person to everyone so if we make progress everyone can learn from it. Since the post, we have migrated to git revision 5976d25a45174d28df9c77845b753e0a0585d6d8 pulled July 1st. You’re correct that a multiplicity of 21 doesn’t make a lot of sense for that geometry. The multiplicity of 21 was chosen as it is the high spin ferromagnetically aligned primitive cell of that R32 structure with the one Dy+3 and three Fe+3 each having atomic-like moments of 5 uB with the goal to relax_multiplicity after converging a high spin state. For the structure in the original post, a multiplicity of 61 makes a bit more sense. In this folder https://</span><a href="http://drive.google.com/file/d/1AhM6gXSYz9xMYKw2YnaOuBnFdwJ7eV97/view?usp=sharing"><span style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(17, 85, 204); background-color: transparent; font-variant: normal; text-decoration: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;">drive.google.com/file/d/1AhM6gXSYz9xMYKw2YnaOuBnFdwJ7eV97/view?usp=sharing</span></a><span style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(34, 34, 34); background-color: transparent; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;">  you will find the complete run restart files. This folder </span><a href="https://drive.google.com/file/d/1ghf1I0cCaviZyXIrUiD88nzipSnrHmpU/view?usp=sharing"><span style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(17, 85, 204); background-color: transparent; font-variant: normal; text-decoration: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;">https://drive.google.com/file/d/1ghf1I0cCaviZyXIrUiD88nzipSnrHmpU/view?usp=sharing</span></a><span style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(34, 34, 34); background-color: transparent; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;"> is a primitive cell version of the run with multiplicity of 21. As you can see from the output provided, the plateau is basically the scf oscillating around ~three points and that behavior occurred regardless of the &mixing parameters, different multiplicities, or cell size we selected.</span></p><p dir="ltr" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;"><br /></p><p dir="ltr" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(34, 34, 34); background-color: transparent; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;">Our end goal for this project is to run Dy L-edge excitation calculations on that system (which is why we need an all-electron basis on the Dy). Since posting that we found that neither the &xas or &xas_tdp modules work with k-points, and that we could converge that high spin solution for the primitive cell with no added_mos and a pseudo for every atom but Dy (see here </span><a href="https://drive.google.com/file/d/1xbgJgz4L1t8qwLQsOCfbulmj37JLzjfm/view?usp=sharing"><span style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(17, 85, 204); background-color: transparent; font-variant: normal; text-decoration: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space: pre-wrap;">https://drive.google.com/file/d/1xbgJgz4L1t8qwLQsOCfbulmj37JLzjfm/view?usp=sharing</span></a><span style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(34, 34, 34); background-color: transparent; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;"> for a complete run folder). However, we still have issues as we need to add those mos in for &xas_tdp calculations and that the ot algorithm isn’t available to converge transition potentials in an &xas calculation. Any help you can provide would be greatly appreciated; also relating to your non-relativistic guesses point, are you aware of any way to spin-orbit split the 2p states ahead of or during an &xas calculation?</span></p><p dir="ltr" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;"><br /></p><p dir="ltr" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(34, 34, 34); background-color: transparent; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;">Best,</span></p><p dir="ltr" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(34, 34, 34); background-color: transparent; font-variant: normal; vertical-align: baseline; white-space: pre-wrap;">Craig</span></p><p dir="ltr" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;"><br /></p><br /><br /><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Tuesday, October 13, 2026 at 3:38:54 PM UTC-5 Thomas Kühne wrote:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Dear Craig,
<br>
<br>I have examined your input and basis files and run several short diagnostic calculations with recent CP2K development builds.
<br> 
<br>Your Dy ALL entry has the correct electron count. The conventional cell contains 780 electrons, and MULTIPLICITY 21 gives 
<br>400 alpha and 380 beta electrons. However, MULTIPLICITY specifies the spin, not the experimentally measured total magnetic 
<br>moment. For Dy, the orbital contribution matters, and the scalar-ZORA setup does not include spin–orbit coupling. The measured 
<br>7 μB per formula unit therefore does not uniquely determine the appropriate multiplicity.
<br>
<br>One concrete source-level observation is that calculate_atomic_orbitals generates a nonrelativistic atomic guess even when the 
<br>crystal calculation uses scaled ZORA. A diagnostic-only change to use a matching scalar-relativistic atomic guess lowered the 
<br>initial energy by approximately 450 Hartree in my tests. Nevertheless, it did not produce SCF convergence, so this is not an 
<br>established explanation or a production-ready fix.
<br>
<br>I also tested finer atom-centred grids, locally spin-polarized ionic starting densities, coupled GAPW mixing with GMIX_P, and 
<br>alternative minimization settings. Unfortunately, none yielded a verified converged solution within the tested runs. I would 
<br>therefore avoid recommending these parameter combinations as a solution at this stage.
<br>
<br>Could you share the .kp restart from near the end of your 2000-step run, together with the complete output and exact Git revision? 
<br>A file-transfer link would be suitable if the restart is large. This would let me investigate the reported plateau directly. It would also 
<br>help to know which magnetic arrangement you intend to describe.
<br>
<br>Best regards,
<br>Thomas
<br>
<br>> Am 28.05.2026 um 00:58 schrieb Craig Schwartz <<a href data-email-masked rel="nofollow">craig.s...@UNLV.EDU</a>>:
<br>> 
<br>> Hello,
<br>>          I am trying, and struggling, to converge an all electron calculation on Dysprosium ferroborate. An example input and basis set are attached.  The system is challenging in that its magnetic and we need all the electrons to do certain x-ray calculations at the heavy element’s low-lying edges (so we can’t just use the MOLOPT and GTH PBE pseudopotentials for instance).  The basis sets are all taken directly from basis set exchange (cp2k format) and the ‘ALL’ potential for Dy is roughly a copy of I from the standard cp2k ‘POTENTIAL’ file. 
<br>> Dy  ALLELECTRON ALL
<br>>    12   24   20   10
<br>>      0.50000000    0
<br>>  
<br>>  I’ve been using a 2026.1 release from the git (pulled April 29, 2026) which includes Gaussian smearing, but I’ve also tried Fermi-Dirac smearing as well as the 2025.2 development version.  The system is a bit too big for hybrid functionals, and things like PBE have not worked.
<br>>        I’ve messed around with Boyden, Pulay, Kerker and direct mixing and nothing has worked.  The best convergence I’ve seen has been with DIRECT_P_MIXING and  a small ALPHA 0.1, although even this does not converge. Broyden, Kerker, and Pulay mixing attempts with different values of ALPHA and BETA terminate with fluctuations on the order of E+02. 
<br>>   1990 P_Mix/Diag. 0.10E+00   80.9    21.05789673    -50737.0152956767  2.02E-01
<br>>   1991 P_Mix/Diag. 0.10E+00   80.9    12.46218230    -50736.8642879388  1.51E-01
<br>>   1992 P_Mix/Diag. 0.10E+00   80.8    11.07681641    -50737.0034034056 -1.39E-01
<br>>   1993 P_Mix/Diag. 0.10E+00   80.8    12.96840862    -50736.7868106099  2.17E-01
<br>>   1994 P_Mix/Diag. 0.10E+00   80.7    11.69891226    -50736.9641743435 -1.77E-01
<br>>   1995 P_Mix/Diag. 0.10E+00   80.8    15.49182193    -50737.0700617575 -1.06E-01
<br>>   1996 P_Mix/Diag. 0.10E+00   80.9    20.70203774    -50737.1124326006 -4.24E-02
<br>>   1997 P_Mix/Diag. 0.10E+00   80.8    14.68011752    -50737.0046223170  1.08E-01
<br>>   1998 P_Mix/Diag. 0.10E+00   80.7    11.80777138    -50737.1114555977 -1.07E-01
<br>>   1999 P_Mix/Diag. 0.10E+00   80.7    14.55452265    -50736.6616467933  4.50E-01
<br>>   2000 P_Mix/Diag. 0.10E+00   80.9    10.58192107    -50736.8174171267 -1.56E-01
<br>>  
<br>>   Leaving inner SCF loop after reaching  2000 steps.
<br>>  
<br>> Experimentally this structure has a net magnetization of 7 bohr magnetor per formula unit when in field, so I’ve been using both an unspecified multiplicity low-spin initial guess and a high spin initial guess that is close to per 7 bohr mangeton/formula unit (i.e. the Dy f electrons align with the field). 
<br>>       Does anyone have any suggestions on how to converge this problem?  It’s annoying because of the combination of all electron, magnetization, and rare-earth f-electrons that aren’t in the pseudopotential.  This is the standard R-centered cell for this structure, but I’ve also tried the primitive cell with a denser k-grid and have had similar issues.
<br>> Thanks for any help,
<br>> Craig
<br>> 
<br>> -- 
<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 visit <a href="https://groups.google.com/d/msgid/cp2k/903bc731-5df3-4bc1-91b8-62b2620f8797n%40googlegroups.com" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://groups.google.com/d/msgid/cp2k/903bc731-5df3-4bc1-91b8-62b2620f8797n%2540googlegroups.com&source=gmail&ust=1792519595667000&usg=AOvVaw2lg2gDc7Xb72uz4xj7XAOm">https://groups.google.com/d/msgid/cp2k/903bc731-5df3-4bc1-91b8-62b2620f8797n%40googlegroups.com</a>.
<br>> <BASIS_CCPVDZ-DK3><BASIS_CCPVDZ><test.inp>
<br>
<br></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 visit <a href="https://groups.google.com/d/msgid/cp2k/04a529f1-27d2-4791-bcd5-b35220b69aecn%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/04a529f1-27d2-4791-bcd5-b35220b69aecn%40googlegroups.com</a>.<br />