<div>Hello,</div><div><br /></div><div>Thank You for Your fast response! Even without including RESP section my input file is faulty, so how can I correct it? I want to understand cp2k more, so even if I will not use the xTB in the end, I would like to learn!</div><div><br /></div><div>Additionally, would other charge methods like Hirsch or mullikan be available when using halogen corrections? On another note, is it possible to include some other corrections to still use RESP charges (which I would strongly prefer) to make the charges on Br more realistic? Any tricks?</div><div><br /></div><div>Thank you in advance!</div><div><br /></div><div>Cheers, </div><div>Andreas</div><br /><div class="gmail_quote"><div dir="auto" class="gmail_attr">Jürg Hutter schrieb am Dienstag, 24. Juni 2025 um 16:14:58 UTC+2:<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>you are calculating RESP charges for a KS-DFT method. Halogen corrections are a thing for tight-binding methods.
<br>You can't mix the two methods and you can't calculate RESP charges from xTB.
<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 Andreas Döll <<a href data-email-masked rel="nofollow">andreas...@gmail.com</a>>
<br>Sent: Tuesday, June 24, 2025 3:49 PM
<br>To: cp2k
<br>Subject: [CP2K:21571] Halogen correction and XTB file?
<br>
<br>Dear Cp2k community,
<br>
<br>I want to calculate the RESP charges for a benzene ring with 2 Bromium atoms. Attached is my input script resp.inp, which worked so far for small molecules. However, I noticed that the magnitude of the partial charge is quite low for Br (q_i=-0.099), so I read up online and found that you need to include Halogen corrections to properly capture Br in particular, see the related paper Grimme 2017 from the cp2k website. In cp2k this is done via &XTB section and the USE_HALOGEN_CORRECTION keyword, correct?
<br>
<br>I tried using the following section:
<br>
<br>&XTB
<br> COULOMB_INTERACTION T
<br> TB3_INTERACTION F
<br> CHECK_ATOMIC_CHARGES F
<br> DO_EWALD T
<br> USE_HALOGEN_CORRECTION T
<br> &PARAMETER
<br> DISPERSION_PARAMETER_FILE dftd3.dat
<br>
<br> PARAM_FILE_NAME xTB0_parameters
<br> &END PARAMETER
<br>&END XTB
<br>
<br>But there are multiple points where I am failing:
<br>
<br>The most important point is that I need a xTB_parameters file, but the only file I could find in cp2k repository was the xTB0_parameters file which begins with $info and every time I include it in my script, it says that $info as variable is not defined. However, as far as I understand I need some kind of file for the corrections, or no? If so where can I get the correct file?
<br>
<br>Second, am I even using the use_halogen_correction keyword correctly? In the end I want more realistic RESP charges for my molecule, especially on Bromium.
<br>
<br>I am very unfamiliar with xtb, so probably this is a very basic question. If you have any other input, I appreciate it as well! I attach my molecule xyz file as well as every other file for testing.
<br>
<br>Thank you very much in advance!
<br>
<br>Sincerely,
<br>Andreas Doell
<br>
<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/51bcff8d-699b-497a-bffb-28460c9fd2d5n%40googlegroups.com" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=de&q=https://groups.google.com/d/msgid/cp2k/51bcff8d-699b-497a-bffb-28460c9fd2d5n%2540googlegroups.com&source=gmail&ust=1750869958145000&usg=AOvVaw2BT758gvyDS04E_MbLVKIs">https://groups.google.com/d/msgid/cp2k/51bcff8d-699b-497a-bffb-28460c9fd2d5n%40googlegroups.com</a><<a href="https://groups.google.com/d/msgid/cp2k/51bcff8d-699b-497a-bffb-28460c9fd2d5n%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/51bcff8d-699b-497a-bffb-28460c9fd2d5n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1750869958145000&usg=AOvVaw2E4Dyy2NyV2gKsBHv-GqDL">https://groups.google.com/d/msgid/cp2k/51bcff8d-699b-497a-bffb-28460c9fd2d5n%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/aeaec20c-fe6b-4933-b876-5c55f1058a84n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/aeaec20c-fe6b-4933-b876-5c55f1058a84n%40googlegroups.com</a>.<br />