Hi Prof Hutter,<div><br /></div><div>Thank you for the reply and insights. Unfortunately, I fear that the constant BSSE would still bias the sampling if the "binding energy" is part of the acceptance criteria to insert/delete a molecule in a MC scheme.</div><div>In FHI-Aims, (from my experience) even the larger basis sets seem to perform satisfactorily on molecular as well as dense systems. Do you think it would be worth a try to design, e.g., a QZVPP basis set to push the boundaries a bit?</div><div>I am not sure if that would be large enough to keep the BSSE on an acceptable level.</div><div><br /></div><div>All the best,</div><div>Holger</div><div class="gmail_quote"><div dir="auto" class="gmail_attr">Jürg Hutter schrieb am Mittwoch, 19. Februar 2025 um 11:58:30 UTC+1:<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>
<br>the MOLOPT basis sets are optimized to perform for a wide range of
<br>systems (molecules, solutes, solids, open structures), while keeping a
<br>small number of functions for performance reasons.
<br>BSSE is of similar size as for comparable size Gaussian basis sets.
<br>For MD calclulation we tested and confirm that BSSE is typically
<br>a constant shift on energies and does not affect dynamics.
<br>If you want to have smaller/no BSSE you have to increase the
<br>number of functions and e.g. include the atomic ground
<br>state functions in the Basis (as in FHI-AIMS). There is the danger
<br>that these near complete basis sets will perform poorly in dense
<br>systems due to bad condition numbers.
<br>
<br>regards
<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 Holger Sassnick <<a href data-email-masked rel="nofollow">holger....@gmail.com</a>>
<br>Sent: Thursday, February 13, 2025 11:14 AM
<br>To: cp2k
<br>Subject: Re: [CP2K:21142] Re: Counterpoise correction with Grimme D4
<br>
<br>Hi Prof Hutter,
<br>
<br>thank you for transferring the issue to the github repository. I was also wondering whether it would be reasonable and feasible to design a larger MOLOPT basis set with negligible BSSE. In this context I am also thinking about the training of MLPs, e.g. in this publication (<a href="https://pubs.acs.org/doi/10.1021/jacs.4c15287" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=de&q=https://pubs.acs.org/doi/10.1021/jacs.4c15287&source=gmail&ust=1740117994838000&usg=AOvVaw1hnvTHrDE151L3LsCWz8VD">https://pubs.acs.org/doi/10.1021/jacs.4c15287</a>) trajectories were re-calculated with VASP for the training to ensure accurate results.
<br>
<br>Fox example, in FHI-Aims the "tight" basis set parameters have hardly any BSSE. I know that the code uses a different localized basis set, so maybe this kind of accuracy cannot be reached with GTOs? I would be happy to hear your opinion on this matter.
<br>
<br>All the best,
<br>Holger
<br>
<br>
<br>Jürg Hutter schrieb am Montag, 10. Februar 2025 um 09:39:16 UTC+1:
<br>Hi
<br>
<br>thank you for bringing this to our attention. I have opened a bug report
<br>on the CP2K github page.
<br><a href="https://github.com/cp2k/cp2k/issues" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=de&q=https://github.com/cp2k/cp2k/issues&source=gmail&ust=1740117994838000&usg=AOvVaw1T7a-irbiGtYAAED1tZD82">https://github.com/cp2k/cp2k/issues</a>
<br>[CP2K:21126] Counterpoise correction with Grimme D4
<br>
<br>regards
<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 Holger Sassnick <<a href data-email-masked rel="nofollow">holger....@gmail.com</a>>
<br>Sent: Monday, February 10, 2025 7:19 AM
<br>To: cp2k
<br>Subject: [CP2K:21130] Re: Counterpoise correction with Grimme D4
<br>
<br>Hi Quentin,
<br>
<br>Thank you for the help and the swift response. You are right, the dispersion interaction of "ghost" atoms is (wrongly) added which leads to these unreasonable values. As far as I understand, I can just manually sum up the energy contributions of the fragments, replacing the dispersion interaction energy with the one from the fragment without ghost atoms. Taking those total energy and calculating the interaction energy and BSSE-corrected total energy leads then to values similar to PBE or PBE-D3.
<br>
<br>I think it would be also great if the implementation in CP2K could take care of ghost atoms and calculate all the fragment energies correctly as is done for the Grimme-D3 and other van der Waals corrections.
<br>
<br>Have a great start to the week.
<br>All the best,
<br>Holger
<br>
<br>Quentin Pessemesse schrieb am Sonntag, 9. Februar 2025 um 01:54:45 UTC+1:
<br>Also, the order of magnitude of your "BSSE-corrected" interaction energy looks like the order of magnitude of E(disp)AB, which would make sense if the ghost atoms are not treated as ghost by the empirical dispersion correction
<br>
<br>Le dimanche 9 février 2025 à 01:39:46 UTC+1, Quentin Pessemesse a écrit :
<br>Hi Holger,
<br>Counterpoise correction is a correction to the electronic energy, you should reason only on the electronic energies. The dispersion energy of the isolated fragments has no physical meaning, and the D3/D4 empirical correctoin plays no part in the BSSE as it is added after the SCF, and only depends on the geometry.
<br>Here, I think CP2k is giving dispersion correction to the ghost atoms, calculating both the error that comes from basis functions of fragment being used to build the density of fragment B (BSSE), and adding some dispersion energy of the fragments and total system as well.
<br>Instead of :
<br>BSSE = (EA − EA(B)) + (EB − E (A)B)
<br>You get:
<br>([E(elec)A + E(disp)A] - [E(elec)A(B) - E(disp)AB]) + ([E(elec)B + E(disp)B] - [E(elec)(A)B - E(disp)AB]) = BSSE + (E(disp)A + E(disp)B - 2*E(disp)AB)
<br>Try to run the BSSE single point calculation without the empirical dispersion and substract it from the interaction energy you get with D3/D3 correction. If it does not fix the issue, maybe I'm mistaken and something else is wrong.
<br>Hope this helped :)
<br>Q.
<br>Le samedi 8 février 2025 à 13:36:41 UTC+1, Holger Sassnick a écrit :
<br>Hello,
<br>
<br>lately I have been trying to calculate the adsorption energy of water in the CAU-23 MOF with different XC functionals. To avoid the quite significant BSSE of CP2K's MOLOPT basis sets, I had to apply a counterpoise correction.
<br>
<br>However, when using the Grimme D4 method the obtained values didn't really make sense as they resulted in a positive interaction energy (I have attached the corresponding input and output files). The same calculation with the PBE functional or PBE + Grimme D3 gives a negative interaction energy (the absolute value is also significantly smaller).
<br>
<br>I was wondering whether this is a bug in the code? Would it be possible that the ghost atoms are not properly treated by the interface to the DFTD4 library?
<br>
<br>I would be very grateful for some feedback.
<br>
<br>Thanks in advance and all the best,
<br>Holger
<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 visit <a href="https://groups.google.com/d/msgid/cp2k/f83527a5-d511-46cf-9ce3-19cdcb4ffbc5n%40googlegroups.com" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=de&q=https://groups.google.com/d/msgid/cp2k/f83527a5-d511-46cf-9ce3-19cdcb4ffbc5n%2540googlegroups.com&source=gmail&ust=1740117994838000&usg=AOvVaw2PZ-kocgBVRd7WxCLqfezn">https://groups.google.com/d/msgid/cp2k/f83527a5-d511-46cf-9ce3-19cdcb4ffbc5n%40googlegroups.com</a><<a href="https://groups.google.com/d/msgid/cp2k/f83527a5-d511-46cf-9ce3-19cdcb4ffbc5n%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=de&q=https://groups.google.com/d/msgid/cp2k/f83527a5-d511-46cf-9ce3-19cdcb4ffbc5n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1740117994838000&usg=AOvVaw2NDLrulryX3D1e9BLDBImm">https://groups.google.com/d/msgid/cp2k/f83527a5-d511-46cf-9ce3-19cdcb4ffbc5n%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 visit <a href="https://groups.google.com/d/msgid/cp2k/064e690d-8716-4fe4-881e-9e02ff958213n%40googlegroups.com" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=de&q=https://groups.google.com/d/msgid/cp2k/064e690d-8716-4fe4-881e-9e02ff958213n%2540googlegroups.com&source=gmail&ust=1740117994838000&usg=AOvVaw1bIoJUSmuFArkUMxgjhBz4">https://groups.google.com/d/msgid/cp2k/064e690d-8716-4fe4-881e-9e02ff958213n%40googlegroups.com</a><<a href="https://groups.google.com/d/msgid/cp2k/064e690d-8716-4fe4-881e-9e02ff958213n%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=de&q=https://groups.google.com/d/msgid/cp2k/064e690d-8716-4fe4-881e-9e02ff958213n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1740117994838000&usg=AOvVaw3Yblygf77jyekaLLu5xFFH">https://groups.google.com/d/msgid/cp2k/064e690d-8716-4fe4-881e-9e02ff958213n%40googlegroups.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 visit <a href="https://groups.google.com/d/msgid/cp2k/0006b840-eaeb-48a9-8eab-0c0f829fede3n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/0006b840-eaeb-48a9-8eab-0c0f829fede3n%40googlegroups.com</a>.<br />