Dear Nick<div><br></div><div>Being possibly a spin polarised, charged, and small gap system it is not that surprising that the SCF has troubles. </div><div>Does the total energy fluctuates significantly among the optimisation steps? </div><div>Have you tried to bias the magnetisation of the atoms close to the defect to help the SCF find solutions for the real space distribution?  </div><div>It happens that the SCF gets trapped into a wrong minimum and then convergence becomes unstable. Have you checked whether the charge distribution you get at any of those SCF steps is what you would expect?</div><div>Best</div><div>Marcella</div><div><br></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Wednesday, November 17, 2021 at 7:25:06 PM UTC+1 nwi...@berkeley.edu 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;"><br>It is a large band gap (TiO2), but with a has a shallow defect state, making the overall band gap small (~0.13eV).<div><br></div><div>I know OT works better the wider the gap, but I had hooped that after the first SCF, it would still speed up quite a bit for the subsequent relaxation steps. </div><div><br></div><div>I was trying to use FULL_KINETIC because IRAC+Rotations+occupation_preeconditioner together require that. This has the advantage of making defect states more robust by allowing for fractional occupations, but of course it can severely compromise convergence speed. </div><div><br></div><div>When I switch to FULL_SINGLE_INVERSE preconditioner. I can grep and get:</div><div><br></div><div><p><b>  outer SCF loop converged in</b>   3 iterations or  104 steps</p>
<p>  <b>outer SCF loop converged in</b>   2 iterations or   72 steps</p>
<p>  <b>outer SCF loop converged in</b>   3 iterations or  116 steps</p>
<p>  <b>outer SCF loop converged in</b>   2 iterations or   72 steps</p>
<p>  <b>outer SCF loop converged in</b>   2 iterations or   93 steps</p>
<p>  <b>outer SCF loop converged in</b>   2 iterations or   72 steps</p>
<p>  <b>outer SCF loop converged in</b>   2 iterations or   63 steps</p>
<p>  <b>outer SCF loop converged in</b>   2 iterations or   60 steps</p><p><br></p><p>It doesn't look like its speeding up very much. I suppose 60 i better than 100, but its not what I expected.</p></div><div>If this is just the way it is, then I'll live with it.</div><div><br></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Wednesday, November 17, 2021 at 10:08:02 AM UTC-8 <a href data-email-masked rel="nofollow">mattwa...@gmail.com</a> 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"><div>'so for wide gap insulators you should for sure only need a few SCF cycles to converge'</div><div>I meant to write when fairly relaxed / close to the minimum ...<br></div><br><br><br><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Wednesday, 17 November 2021 at 18:06:33 UTC Matt Watkins 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"><div>Well, CP2K was setup to do Born-Oppenheimer MD for bio systems   - so for wide gap insulators you should for sure only need a few SCF cycles to converge.</div><div><br></div><div>Is your  system insulating (band gap, let's say > 0.2 eV)? If not different approach needed.<br></div><div><br></div><div>If so, improve the OT setup  - especially the preconditioner<br></div><div><br></div><div>remove<br></div><div>PRECONDITIONER FULL_KINETIC<br>ENERGY_GAP 0.01<br><br>try <br></div><div><br></div><div>PRECONDITIONER FULL_SINGLE_INVERSE</div><div><br></div><div>or (can be expensive for larger systems)<br></div><div><br></div><div>PRECONDITIONER FULL_ALL</div><div><br></div><div>and leave out the energy_gap (if you are using an up-to-date cp2k)</div><div><br></div><div>Also check that you XC setup is correct ...</div><div><br></div><div>Matt<br></div><div><br></div><div><br></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Tuesday, 16 November 2021 at 17:58:59 UTC <a rel="nofollow">nwi...@berkeley.edu</a> 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">Hello all, <div><br></div><div>When I run a relaxation for a complex system, e.g. in my case a defective transition metal oxide with hybrid dft on a modest ~200 atom supercell, each SCF still takes quite a long time to converge. </div><div><br></div><div>I originally came from vasp before switching to cp2k, and it in that code, my experience was that once the first scf loop converged, the next relaxation step would take much less time, and so on until the last few steps converged in just a few iterations. This isn't my experience with CP2K though. Running CG on my most recent relaxation I still find that after more than 20 relaxation steps, 40-50 scf steps are required to achieve convergence.</div><div><br></div><div>Is this something that I could improve by changing certain settings? Below is the relevant info for my input file. Please note that I understand FULL_KINETIC and CG might lead to slower convergence than FULL_ALL + DIIS, but my question lies in why convergence is not appreciably speeding up rather than its absolute speed.</div><div><br></div><div>-Nick</div><div><br></div><div><p>&DFT</p>
<p>                BASIS_SET_FILE_NAME BASIS_MOLOPT</p>
<p>                BASIS_SET_FILE_NAME BASIS_MOLOPT_UCL</p>
<p>                BASIS_SET_FILE_NAME BASIS_ADMM</p>
<p>                BASIS_SET_FILE_NAME BASIS_ADMM_MOLOPT</p>
<p>                POTENTIAL_FILE_NAME GTH_POTENTIALS</p>
<p>                UKS T</p>
<p>                MULTIPLICITY 0</p>
<p>                CHARGE 4</p>
<p>                &SCF</p>
<p>                        MAX_ITER_LUMO 400</p>
<p>                        MAX_SCF 50</p>
<p>                        EPS_SCF 1e-06</p>
<p>                        SCF_GUESS RESTART</p>
<p>                        &OT</p>
<p>                                ALGORITHM STRICT</p>
<p>                                MINIMIZER CG</p>
<p>                                LINESEARCH 2PNT</p>
<p>                                PRECONDITIONER FULL_KINETIC</p>
<p>                                ENERGY_GAP 0.01</p>
<p>                                ROTATION F</p>
<p>                                OCCUPATION_PRECONDITIONER F</p>
<p>                        &END OT</p>
<p>                        &OUTER_SCF</p>
<p>                                EPS_SCF 1e-06</p>
<p>                                MAX_SCF 20</p>
<p>                        &END OUTER_SCF</p>
<p>                &END SCF</p>
<p>                &AUXILIARY_DENSITY_MATRIX_METHOD</p>
<p>                        ADMM_PURIFICATION_METHOD None</p>
<p>                        METHOD BASIS_PROJECTION</p>
<p>                &END AUXILIARY_DENSITY_MATRIX_METHOD</p>
<p>                &QS</p>
<p>                        EPS_DEFAULT 1e-12</p>
<p>                        EPS_PGF_ORB 1e-16</p>
<p>                        EXTRAPOLATION PS</p>
<p>                        METHOD GPW</p>
<p>                &END QS</p>
<p>                &MGRID</p>
<p>                        NGRIDS 5</p>
<p>                        CUTOFF 550.0</p>
<p>                        REL_CUTOFF 50.0<br></p>
<p>                &END MGRID</p><p> &XC</p><p>                        &XC_FUNCTIONAL NO_SHORTCUT</p><p>                                &PBE</p><p>                                        SCALE_X 0.0<br></p><p>                                        SCALE_C 1.0</p><p>                                &END PBE</p><p>                                &XWPBE</p><p>                                        SCALE_X 0.063</p><p>                                        SCALE_X0 0.877</p><p>                                        OMEGA 0.07</p><p>                                &END XWPBE</p><p>                                &PBE_HOLE_T_C_LR</p><p>                                        SCALE_X 0.123</p><p>                                        CUTOFF_RADIUS 5.930000000000001</p><p>                                &END PBE_HOLE_T_C_LR</p><p>                        &END XC_FUNCTIONAL</p><p>                        &HF</p><p>                                FRACTION 1.0</p><p>                                &SCREENING</p><p>                                        EPS_SCHWARZ 1e-07</p><p>                                        EPS_SCHWARZ_FORCES 1e-06</p><p>                                        SCREEN_P_FORCES T</p><p>                                        SCREEN_ON_INITIAL_P T</p><p>                                &END SCREENING</p><p>                                &INTERACTION_POTENTIAL</p><p>                                        POTENTIAL_TYPE MIX_CL_TRUNC</p><p>                                        OMEGA 0.07</p><p>                                        SCALE_COULOMB 0.06</p><p>                                        SCALE_LONGRANGE 0.063</p><p>                                        CUTOFF_RADIUS 5.930000000000001</p><p>                                        T_C_G_DATA t_c_g.dat</p><p>                                &END INTERACTION_POTENTIAL</p><p>                                &LOAD_BALANCE</p><p>                                        RANDOMIZE T</p><p>                                &END LOAD_BALANCE</p><p>                                &MEMORY</p><p>                                        EPS_STORAGE_SCALING 0.1</p><p>                                        MAX_MEMORY 2000</p><p>                                &END MEMORY</p><p>                        &END HF</p><p>                &END XC</p><p>&END DFT</p></div></blockquote></div></blockquote></div></blockquote></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/9ba22811-b838-48e5-aac1-4d89b91d146dn%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/9ba22811-b838-48e5-aac1-4d89b91d146dn%40googlegroups.com</a>.<br />