<div>Below is the precise example we are using.</div><div>These un-normalized orbitals:</div><div><span style="background-color: yellow;"><b>Sr SZV-MOLOPT-SR-GTH SZV-MOLOPT-SR-GTH-q10<br />1<br />2 0 1 6 2 1<br /> 7.290111894735 0.069364270475 -0.016182746349 0.035659445929<br /> 2.536776771327 -0.571246927373 0.158928639982 -0.195822349727<br /> 1.283099546928 0.167836311459 -0.041157757852 0.260320252229<br /> 0.532449841650 0.904733330629 -0.431882417196 0.555386362294<br /> 0.211628059408 0.250907816117 -0.073959284415 0.267635587013<br /> 0.050841303698 0.007135721199 0.825600560103 0.001214128781</b></span><br /><br /></div><div>after the normalization (cp2k output) become as follows:<br /><b style="background-color: yellow;">Sr SZV-MOLOPT-SR-GTH SZV-MOLOPT-SR-GTH-q10<br />1<br />2 0 1 6 2 1<br /> 7.290111894735 0.221325 -0.071449 0.684627<br /> 2.536776771327 -0.825808 0.317914 -1.004793<br /> 1.283099546928 0.145521 -0.049379 0.569764<br /> 0.532449841650 0.405577 -0.267899 0.404860<br /> 0.211628059408 0.056304 -0.022965 0.061570<br /> 0.050841303698 0.000549 0.087969 0.000047</b><br /></div><div><br /></div><div>None of the two aforementioned normalization procedures can reproduce this.<br /></div><div><br /></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Friday, March 17, 2023 at 4:54:28 PM UTC+1 Aleksandros Sobczyk 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;">Update on this:<div>There appear to be two (maybe more) normalization procedures for orbital coefficients:</div><div>1) <a href="https://github.com/cp2k/cp2k/blob/f26eaef31a9d3f80ca30d8d2f11790a2a072e370/src/aobasis/basis_set_types.F#L1099" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://github.com/cp2k/cp2k/blob/f26eaef31a9d3f80ca30d8d2f11790a2a072e370/src/aobasis/basis_set_types.F%23L1099&source=gmail&ust=1679154870349000&usg=AOvVaw2T69XDUTdJQM5JdXfJX9_e">https://github.com/cp2k/cp2k/blob/f26eaef31a9d3f80ca30d8d2f11790a2a072e370/src/aobasis/basis_set_types.F#L1099</a><br>2) <a href="https://github.com/cp2k/cp2k/blob/f26eaef31a9d3f80ca30d8d2f11790a2a072e370/src/atom_types.F#L2374" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://github.com/cp2k/cp2k/blob/f26eaef31a9d3f80ca30d8d2f11790a2a072e370/src/atom_types.F%23L2374&source=gmail&ust=1679154870349000&usg=AOvVaw0N6byzv6gdvVeYAUODf5DC">https://github.com/cp2k/cp2k/blob/f26eaef31a9d3f80ca30d8d2f11790a2a072e370/src/atom_types.F#L2374</a></div><div>The results of 1) seem to be closer to the output of cp2k (for s-orbitals). For p-orbitals it starts to diverge.</div><div><br></div><div>It would be great if someone can confirm which normalization method is used internally for contracted Gaussians.</div><div>(what is the goal of the normalization? are the primitive Gaussians normalized to integrate to 1? is it something more advanced?)</div><div><br></div><div>Best regards,</div><div>Aleksandros Sobczyk</div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Monday, March 13, 2023 at 11:00:04 AM UTC+1 Aleksandros Sobczyk 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 prof. Hutter and CP2K developers,<div><br>The example helped to figure out how to reproduce the overlap matrix for our systems. We had to apply the following two steps:<br><br>1) For the basis sets, we had to use the normalized coefficients that are found inside the output file of CP2K. The un-normalized coefficients from the original BASIS_SET file did not work (as you suggested). For now, we can directly use the CP2K output to derive these normalized coefficients for our experiments, but it would be also helpful to know how to reproduce them (i.e., what is the normalization procedure).<br><br>2) We also had to scale all the exponents of all the basis sets by a factor of (1/0.529)^2 (to convert Angstrom to atomic units). This was an arbitrary guess, but without it the overlaps do not match.<br><br>Could you confirm that this is the correct way to compute the orbital overlaps? (and if not, propose the correct way). <br>It would also be helpful if these details can be documented, e.g. in this page: <a href="https://www.cp2k.org/basis_sets" rel="nofollow" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://www.cp2k.org/basis_sets&source=gmail&ust=1679154870349000&usg=AOvVaw0-b3KnghozzqYlyGGfSkaj">https://www.cp2k.org/basis_sets</a><br><br>Best regards and thank you again for the feedback,<br>Aleksandros Sobczyk<br><br></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Friday, March 10, 2023 at 6:35:28 PM UTC+1 Aleksandros Sobczyk 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 Prof. Hutter,<div><br></div><div>Thank you very much for your reply and for the example.</div><div>Let us investigate it with my colleagues and see if we can resolve our problem.</div><div><br></div><div>Best regards,</div><div>Aleksandros<br><br></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Friday, March 10, 2023 at 3:18:28 PM UTC+1 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>
<br>are you assuming normalized or un-normalized Gaussians?
<br>The basis set input in CP2K uses (like all QC codes) normalized Gaussians.
<br>Internally, CP2K works with un-normalized Cartesian Gaussians, i.e. the
<br>coefficients are adapted at the beginning of the calculation.
<br>
<br>I have attached a simple example where you can play with the basis set
<br>in the input and the overlap matrix is printed.
<br>
<br>regards
<br>JH
<br>
<br>________________________________________
<br>From: <a rel="nofollow">cp...@googlegroups.com</a> <<a rel="nofollow">cp...@googlegroups.com</a>> on behalf of Aleksandros Sobczyk <<a rel="nofollow">sobcz...@gmail.com</a>>
<br>Sent: Friday, March 10, 2023 2:26 PM
<br>To: cp2k
<br>Subject: [CP2K:18530] Re: Evaluation of basis functions over a grid and computation of overlap integrals
<br>
<br>Update: I have also calculated several overlap integrals analytically (for s-orbitals which are simpler), they still don't match the values of the S matrix.
<br>Any feedback would be greatly appreciated.
<br>
<br>On Wednesday, March 8, 2023 at 12:57:02 PM UTC+1 Aleksandros Sobczyk wrote:
<br>Hello,
<br>
<br>I have a set of atoms in real-space and the corresponding SZV basis sets.
<br>I want to evaluate each basis function over a grid of points in the cell.
<br>E.g., I have a grid of 3d points [r1, r2, ..., rk] and I want to evaluate each
<br>Φj(r1), Φj(r2), ... Φj(rk)
<br>As a test, I tried to numerically integrate Φj * conj(Φj) over the grid that it was evaluated, and compare the result with the corresponding entry S[j, j] of the overlap matrix that
<br>is returned by CP2K.
<br>Unfortunately my integral differs substantially from the element S[j, j], so I am doing something wrong.
<br>
<br>Can we find somewhere more detailed documentation on the precise mathematical formulation of the basis sets, and also on the specific algorithms that are used by CP2K to compute the overlap integrals?
<br>(So far I have followed as precisely as possible the following page: <a href="https://www.cp2k.org/basis_sets" rel="nofollow" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://www.cp2k.org/basis_sets&source=gmail&ust=1679154870349000&usg=AOvVaw0-b3KnghozzqYlyGGfSkaj">https://www.cp2k.org/basis_sets</a>
<br>but it is still missing information, e.g. are the coefficients normalized? do we assume that the spherical harmonics include the phase factor? etc.)
<br>
<br>Thanks a lot in advance!
<br>Aleksandros
<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 rel="nofollow">cp2k+uns...@googlegroups.com</a><mailto:<a 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/fa61a2bc-2c9c-4771-8606-445d46af9148n%40googlegroups.com" rel="nofollow" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://groups.google.com/d/msgid/cp2k/fa61a2bc-2c9c-4771-8606-445d46af9148n%2540googlegroups.com&source=gmail&ust=1679154870349000&usg=AOvVaw0fLzS09cLTlb8FzBlQqGSs">https://groups.google.com/d/msgid/cp2k/fa61a2bc-2c9c-4771-8606-445d46af9148n%40googlegroups.com</a><<a href="https://groups.google.com/d/msgid/cp2k/fa61a2bc-2c9c-4771-8606-445d46af9148n%40googlegroups.com?utm_medium=email&utm_source=footer" rel="nofollow" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://groups.google.com/d/msgid/cp2k/fa61a2bc-2c9c-4771-8606-445d46af9148n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1679154870349000&usg=AOvVaw1rswxTRplL2RHJpHuYG9Xn">https://groups.google.com/d/msgid/cp2k/fa61a2bc-2c9c-4771-8606-445d46af9148n%40googlegroups.com?utm_medium=email&utm_source=footer</a>>.
<br></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/073f7bb7-8358-47b8-ba7c-06fe5075ff6cn%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/073f7bb7-8358-47b8-ba7c-06fe5075ff6cn%40googlegroups.com</a>.<br />