Dear Prof. Hütter,<div><br /></div><div>Thanks for the clarification on Lobna's point about the total energies as compared to those calculated in other codes. Do you perhaps have any tips or remarks regarding my initial questions? I am quite stuck in my progress until I find a way to properly converge my cutoffs and I think you're expertise might help me get past this problem. </div><div><br /></div><div>Thanks in advance!</div><div><br /></div><div>Kind regards,</div><div>Léon<br /><br /></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Monday, 5 June 2023 at 11:50:56 UTC+2 Jürg Hutter 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;">Hi
<br>please only compare codes for quantities that can be transferred. For example, it is almost
<br>impossible to compare total energies. Relative energies or other properties can be
<br>compared for equivalent settings.
<br>If you have identified a pseudopotential/basis set problem for CP2K, please provide us with the
<br>necessary information and we will investigate.
<br>Thank you
<br>JH
<br>
<br>________________________________________
<br>From: <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 Lobna Saeed <<a href data-email-masked rel="nofollow">lobna...@gmail.com</a>>
<br>Sent: Monday, June 5, 2023 9:18 AM
<br>To: <a href data-email-masked rel="nofollow">cp...@googlegroups.com</a>
<br>Subject: Re: [CP2K:18885] Re: Problems with converging PW cutoff
<br>
<br>I had the same exact issues with the convergence !! exactly the same. I was also confused about the largest exponent as well. When I used this <a href="https://www.cp2k.org/faq:cutoff" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en-GB&q=https://www.cp2k.org/faq:cutoff&source=gmail&ust=1686046116373000&usg=AOvVaw2PZXlxPGnUE9tejxSCpjOS">https://www.cp2k.org/faq:cutoff</a>, I got a very high cutoff value which when I employed deviated very much from the experimental values. So may be you need to look at other values, other than the total energies. The total energies we get here are not by any mean realistic. When I compared the total energy values I got from VASP with the values we get from CP2K (for single elements), I got completely different results. So when I increased the basis sets I was able to get the same values for Al and Nb, other elements like Ti REALLY need optimization of the basis sets and pseudopotentials. Therefore you should try to look at other values other than the total energies (like the lattice parameters for example) to be able to deduce a final conclusion about the cutoff value.
<br>
<br>On Mon, Jun 5, 2023 at 6:59 AM Léon Luntadila Lufungula <<a href data-email-masked rel="nofollow">Leon.luntad...@uantwerpen.be</a><mailto:<a href data-email-masked rel="nofollow">Leon.luntad...@uantwerpen.be</a>>> wrote:
<br>Dear all,
<br>
<br>Apparently I forgot to add my input file in my previous message, so I have included it as an attachment in this reply. I'm eagerly looking forward to your replies and thank you in advance.
<br>
<br>Kind regards,
<br>Léon
<br>
<br>On Friday, 2 June 2023 at 15:44:38 UTC+2 Léon Luntadila Lufungula wrote:
<br>
<br>Dear all,
<br>
<br>
<br>
<br>I am currently switching from Quantum ESPRESSO (QE) to CP2K as my main computational software package (currently using version 8.2) and I am struggling a bit with the convergence tests for the PW cutoffs (REL_CUTOFF and CUTOFF). My intended structures to investigate are moderate-sized organic molecules adsorbed onto a (101) surface of anatase (TiO2) and as such I am using an optimized structure from my QE calculations as a representative system to do my convergence tests on (see attached file 3mppa-md1.inp). I based my method on the method proposed by Prof. Hütter in a previous post<<a href="https://groups.google.com/g/cp2k/c/ySUAYEgwmhc" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en-GB&q=https://groups.google.com/g/cp2k/c/ySUAYEgwmhc&source=gmail&ust=1686046116373000&usg=AOvVaw2i7LVbQ5hvQ6Pbg7qSTxMW">https://groups.google.com/g/cp2k/c/ySUAYEgwmhc</a>>, whereby I first set REL_CUTOFF=CUTOFF and increase the value until I reach convergence. The results I got are the following:
<br>
<br>
<br>
<br># Grid cutoff vs total energy
<br>
<br># Date: Fri Jun  2 14:09:32 CEST 2023
<br>
<br># PWD: /home/lluntadilal/cp2k/scf/dft/test/final/convergence/cutoff
<br>
<br># Cutoff (Ry) | Relative cutoff (Ry) | Total energy (a.u.) | Total charge (a.u.)
<br>
<br>          300                    300      -3303.<a href="tel:(469)%20391-9783" value="+14693919783" target="_blank" rel="nofollow">4693919783</a><tel:(469)%20391-9783>          0.0000049144
<br>
<br>          400                    400      -3303.4678396250         -0.0000000118
<br>
<br>          500                    500      -3303.4658109937         -0.0000000003
<br>
<br>          600                    600      -3303.4675587607         -0.0000000003
<br>
<br>          700                    700      -3303.4671967038         -0.0000000003
<br>
<br>          800                    800      -3303.4663947747         -0.0000000003
<br>
<br>          900                    900      -3303.4659684557         -0.0000000003
<br>
<br>         1000                   1000      -3303.4657584430         -0.0000000002
<br>
<br>         1100                   1100      -3303.4651289391         -0.0000000002
<br>
<br>         1200                   1200      -3303.4650897922         -0.0000000003
<br>
<br>         1300                   1300      -3303.4651986119         -0.0000000002
<br>
<br>         1400                   1400      -3303.4651800964         -0.0000000002
<br>
<br>         1500                   1500      -3303.4650037920         -0.0000000002
<br>
<br>         1600                   1600      -3303.4650956961         -0.0000000002
<br>
<br>         1700                   1700      -3303.4651701336         -0.0000000002
<br>
<br>         1800                   1800      -3303.4651578599         -0.0000000002
<br>
<br>         1900                   1900      -3303.4651999129         -0.0000000002
<br>
<br>         2000                   2000      -3303.4651936486         -0.0000000002
<br>
<br>
<br>
<br>I have several questions about this:
<br>
<br>  1.  I would like to be able to give the energies of my structures accurate up to 0.01 kJ/mol which is about 1.10^-6 a.u. Unfortunately, I only reach this level of accuracy at a cutoff of 2000 Ry… This seems quite a large cutoff as I see similar calculations with cutoffs between 400-1200 Ry and also because the charge is already converged at 500 Ry. Am I doing something wrong or is my criteria just too strict? Does this perhaps have anything to do with the fact that the relative position of the atoms to the grid points changes with the cutoff as mentioned by Prof. Hütter in his post?
<br>  2.  The faq<<a href="https://www.cp2k.org/faq:cutoff" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en-GB&q=https://www.cp2k.org/faq:cutoff&source=gmail&ust=1686046116374000&usg=AOvVaw1EHTQWdX_eFagjld8ZdH-U">https://www.cp2k.org/faq:cutoff</a>> and converging cutoff exercise<<a href="https://www.cp2k.org/events:2018_summer_school:converging_cutoff" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en-GB&q=https://www.cp2k.org/events:2018_summer_school:converging_cutoff&source=gmail&ust=1686046116374000&usg=AOvVaw3yyuEwp-2S0x-Ur_ds8hBp">https://www.cp2k.org/events:2018_summer_school:converging_cutoff</a>> state that the PW cutoff should be large enough to properly represent the Gaussian with the largest exponent, which in my system seems to be oxygen with an exponent around 10.4 for the DZVP-MOLOPT-SR-GTH basis set. So is it then correct to use such a complex structure (3-layer slab with adsorbate and 30Å vacuum width) with "complex" options (dipole and dispersion corrections) as input for my convergence tests or could I use a simpler structure (e.g. an oxygen molecule in a box) with more basic settings (no corrections) or would this be insufficient?
<br>  3.  I may be planning to use larger basis sets ("regular" DZVP, TZVP or TZV2P) of the MOLOPT family in the future and I have seen that the largest exponents for these sets is the same as that for the smaller DZVP-SR basis set (10.4 for oxygen). Is it correct then to assume that once I obtain optimized cutoffs for DZVP-SR, these can be kept when switching to any of the larger basis sets?
<br>  4.  Lastly, I would like to ask for some general feedback on the input for my slab calculation as this is my first calculation on CP2K and I'm still getting used to all the settings. Is it okay to use 3D periodicity with a large vacuum space and a dipole correction or is it better to use 2D periodicity with a corresponding Poisson solver (e.g. MT, analytic or wavelet)? Is it okay to use the WC functional with basis sets, pseudopotentials and D3 settings optimized for PBE?
<br>
<br>
<br>
<br>Any help would be greatly appreciated!
<br>
<br>
<br>
<br>Kind regards,
<br>
<br>Léon
<br>
<br>
<br>
<br>P.S. For those looking at my structure in a graphical environment and noticing that some atoms are outside the unit cell. This is due to the fact that my cell was monoclinic and I made the unit cell orthorhombic to save computational time and trouble (some codes have trouble dealing with cells that are not orthorhombic), but I did not yet wrap all my atoms into the unit cell. However, I don't think this should be a problem under PBC.
<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><mailto:<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/ee55ab54-b914-49fb-bd8d-f185f91b09een%40googlegroups.com" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en-GB&q=https://groups.google.com/d/msgid/cp2k/ee55ab54-b914-49fb-bd8d-f185f91b09een%2540googlegroups.com&source=gmail&ust=1686046116374000&usg=AOvVaw2Q8eTg5B4cGs4zZ7OLKQhq">https://groups.google.com/d/msgid/cp2k/ee55ab54-b914-49fb-bd8d-f185f91b09een%40googlegroups.com</a><<a href="https://groups.google.com/d/msgid/cp2k/ee55ab54-b914-49fb-bd8d-f185f91b09een%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en-GB&q=https://groups.google.com/d/msgid/cp2k/ee55ab54-b914-49fb-bd8d-f185f91b09een%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1686046116374000&usg=AOvVaw2FFxIlSo-Q0H2Tcce5_o-1">https://groups.google.com/d/msgid/cp2k/ee55ab54-b914-49fb-bd8d-f185f91b09een%40googlegroups.com?utm_medium=email&utm_source=footer</a>>.
<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><mailto:<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/CAFNXbSySOcPZ7aPDwgKHVsJNm6a5zLgQhS8Cdd0TNXwk0Uz9Jw%40mail.gmail.com" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en-GB&q=https://groups.google.com/d/msgid/cp2k/CAFNXbSySOcPZ7aPDwgKHVsJNm6a5zLgQhS8Cdd0TNXwk0Uz9Jw%2540mail.gmail.com&source=gmail&ust=1686046116374000&usg=AOvVaw3fNlFtgOyydD_oyJ2aFC4o">https://groups.google.com/d/msgid/cp2k/CAFNXbSySOcPZ7aPDwgKHVsJNm6a5zLgQhS8Cdd0TNXwk0Uz9Jw%40mail.gmail.com</a><<a href="https://groups.google.com/d/msgid/cp2k/CAFNXbSySOcPZ7aPDwgKHVsJNm6a5zLgQhS8Cdd0TNXwk0Uz9Jw%40mail.gmail.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en-GB&q=https://groups.google.com/d/msgid/cp2k/CAFNXbSySOcPZ7aPDwgKHVsJNm6a5zLgQhS8Cdd0TNXwk0Uz9Jw%2540mail.gmail.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1686046116374000&usg=AOvVaw1AquQeijo1Zl4FuVFwAtr1">https://groups.google.com/d/msgid/cp2k/CAFNXbSySOcPZ7aPDwgKHVsJNm6a5zLgQhS8Cdd0TNXwk0Uz9Jw%40mail.gmail.com?utm_medium=email&utm_source=footer</a>>.
<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 on the web visit <a href="https://groups.google.com/d/msgid/cp2k/e0ef1362-f0df-40a3-b984-98ea45d5e09cn%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/e0ef1362-f0df-40a3-b984-98ea45d5e09cn%40googlegroups.com</a>.<br />