<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:296187303;
mso-list-template-ids:-1487385170;}
@list l1
{mso-list-id:1906528634;
mso-list-template-ids:-495940288;}
@list l2
{mso-list-id:1982922867;
mso-list-template-ids:-1084973102;}
@list l3
{mso-list-id:2141024898;
mso-list-template-ids:2105081534;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="en-CH" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="DE-CH" style="font-size:11.0pt;mso-fareast-language:EN-US">Dear Léon<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">Most Gaussian basis sets are made for molecular (or cluster) calculations, i.e. for finite systems. These basis sets are not well suited for calculations of dense solid
state systems with periodic boundary conditions. Therefore your basis set tests for small molecular systems are not helpful for finding an appropriate Ti basis set for anatase (condensed phase) simulations. I recommend you to take a look at the
<a href="https://github.com/cp2k/cp2k/blob/master/data/BASIS_pob">POB basis sets</a>. DFT based condensed matter calculations do not benefit usually from large valence shell splittings. DZ and TZ basis sets are sufficient with one and two polarization functions
like DZVP and TZV2P.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">I have attached a TiCl4 input and output file just to show that it is possible to achieve also a very accurate electron count for heavier atoms with GAPW and CP2K. You
have to include more (larger) exponents into the valence (soft) basis set which can be achieved by applying smaller values for EPS_FIT. Larger LEBEDEV_GRID and RADIAL_GRID values also help to increase the accuracy and the inclusion of larger exponents into
the valence basis should be accompanied by an appropriate increase of the CUTOFF value if needed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">HTH<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">Matthias<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt">
<b><span style="color:black">From: </span></b><span style="color:black">cp2k@googlegroups.com <cp2k@googlegroups.com> on behalf of Léon Luntadila Lufungula <Leon.luntadilalufungula@uantwerpen.be><br>
<b>Date: </b>Tuesday, 15 April 2025 at 16:21<br>
<b>To: </b>cp2k <cp2k@googlegroups.com><br>
<b>Subject: </b>[CP2K:21369] Re: Setting up GAPW for heavy elements<o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-left:36.0pt">Dear all,<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">I really request some help with this as I have worked on this problem on and off for the last couple of months and still haven't been able to make any progress... I need all-electron calculations to proceed with
my own research as well as for the research of my two students who are eagerly waiting for me to solve this, so I would greatly appreciate any help at all.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">I started out with testing GAPW with the default settings for some small organic molecules (H2, CH4, NH3, H2O, Cl2, SiH4, PH3 and H2S) containing the elements of the adsorbates I intend to use during my research
along with TiCl4 for titanium and comparing the GAPW energies, forces, bond lengths and angles to their counterparts calculated with Gaussian 09. To be able to make this comparison, I have used the def2-TZVPP basis set as this is available in both CP2K and
G09. The only changes to the defaults I had made was the values of the HARD_EXP_RADIUS, which I took from the table in the supplementary information of the
<a href="https://pubs.acs.org/doi/10.1021/acs.jctc.4c00614?ref=pdf">following paper co-authored by Jürg Hutter</a>. Nevertheless, the results were promising as the differences with the G09 results were small but the errors seemed to grow as I went down the
periodic table (see below or attached image 'Small molecules GAPW.png) and the same trend was seen for the electron counts ("Total charge density (r-space)" and "Total Rho_soft + Rho0_soft (g-space)"). I have attached the TiCl4 input and output files as an
example.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><img border="0" width="2458" height="406" style="width:25.6041in;height:4.2291in" id="_x0000_i1025" src="cid:3daae19c-a931-459b-9506-4260a2384a54"><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">Unfortunately, testing with small molecules containing Zr and Hf was a bit more complicated because the def2-tzvpp basis sets use ECP for Zr and Hf, which is not compatible with CP2K.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">Now I wanted to try and use GAPW for my titania surface slab, but I have tried a lot of different combinations for the GAPW settings but none have allowed me to converge my 3x1x3 anatase (101) slab. The only calculation
that has converged was of a 1x1x1 slab (see attached files a101-1x1x1-gapw-molopt-tzvpp-all1.inp|.out) where I used the settings Jürg Hutter proposed in an
<a href="https://groups.google.com/g/cp2k/c/6qjk0K5oRqU/m/YL83SHAIBgAJ">earlier post of mine</a>, but even here the electron counts are around 3E-6 which seems quite large to me. Using the same parameters but using a 3x1x3 slab, the calculation starts with
electron counts starting around 3E-5 for the first 2 inner SCF loops and seems to go towards convergence at the end of the 2nd loop, but then goes haywire in the 3rd SCF loop and never reaching convergence (see attached files a101-3x1x3-gapw-molopt-tzvpp-all1.inp|.out).
I have tried a lot of different values for HARD_EXP_RADIUS for both O and Ti and found out that 1.30 and 1.80, respectively, resulted in the lowest electron counts for the 1x1x1 slab, but again when running the 3x1x3 slab the first 2 inner SCF loops look promising,
but from the 3rd one onward it goes nowhere (see attached files a101-3x1x3-gapw-molopt-tzvpp-all2.inp|.out).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">I'm really at my wit's end here, I have tried a lot of different settings and none seem to work and I have no clue why it isn't working or how I should tackle this problem in a sytematic way. I also can't compare
to G09 energies so I only have the electron counts to go on, but there isn't a clear trend about how to improve these with the GAPW settings available. I would love it if someone could point me in the right direction so I can finally get past this hurdle.
The questions in my previous post in this topic still stand and would love to get some insight into them if possible.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">Greetings,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">Léon<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">On Tuesday, 18 February 2025 at 10:31:22 UTC+1 Léon Luntadila Lufungula wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal" style="margin-left:36.0pt">Dear all,<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">I have been trying my hand at performing GAPW calculations for the last couple of weeks and I have made due with the defaults for the first-, second- and thir-row elements I plan on using during my calculations.
However, elements from the fourth row or higher (Ti, Zr and Hf in my case) are a bit harder to get right.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">I've scoured the mailing list and have done a lot of test calculations, but I'm still unsure how to optimize all of the parameters in a systematic way. Let me quickly sum up what I know about the different parameters
and then ask what is still unclear.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><b><u>QS/EPSFIT and KIND/HARD_EXP_RADIUS:</u></b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">Both of these parameters shift the border between the soft and hard part of the basis set and have an inverse relationship with the "cutoff" exponent. Larger values of either parameter lowers the cutoff exponent
and will thus result in a soft basis set that is softer (i.e., lower exponents). I'm quessing HARD_EXP_RADIUS cannot be too large so as to keep the hard density confined. Matthias Krack suggested to lower EPSFIT to 1.0E-6 in
<a href="https://groups.google.com/g/cp2k/c/FUvjXq9RvWY/m/2xSxfzuVAgAJ" target="_blank">
another post</a> and Jürg Hutter stated <a href="https://groups.google.com/g/cp2k/c/JX8bDi_w478/m/tjLIF_UUAQAJ" target="_blank">
here</a> that the max exponent of the soft basis should generally be in the range of 5-8. My questions here are:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:72.0pt;text-indent:-18.0pt;mso-list:l1 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>When using the defaults, I generally get max exponents between 1-5 for the soft basis. Should I make sure that the max exponents are in the range 5-8?<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:72.0pt;text-indent:-18.0pt;mso-list:l1 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Should you start with lowering EPSFIT (global parameter) with the default HARD_EXP_RADIUS values and then optimize the HARD_EXP_RADIUS (kind-specific parameter) for each element in the system?<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:72.0pt;text-indent:-18.0pt;mso-list:l1 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Since EPSFIT and HARD_EXP_RADIUS are both connected to the basis set, should you do this optimization for each basis set individually or can you do it for one and then apply it to other basis sets?<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><b><u>EPSISO and EPSRHO0:</u></b><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">Jürg Hutter stated <a href="https://groups.google.com/g/cp2k/c/n70_s_Tbt1A/m/LFlsSmA4BgAJ" target="_blank">
here</a> that EPSISO is useful for heavy elements, but did not state whether to lower or increase it to get better results. Matthias Krack also wrote
<a href="https://groups.google.com/g/cp2k/c/FUvjXq9RvWY/m/8VwHvHGUAgAJ" target="_blank">
here</a> that reducing EPSRHO0 will lead to better accuracy. My questions here are:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:72.0pt;text-indent:-18.0pt;mso-list:l3 level1 lfo2">
<![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>I only found these two suggestions of altering these parameters. Is it worth playing around with them or should I keep them at the default?<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:72.0pt;text-indent:-18.0pt;mso-list:l3 level1 lfo2">
<![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>If I want to alter them, do I do this after EPSFIT and HARD_EXP_RADIUS and do I just use the electron counts (i.e., "Total charge density (r-space)" and "Total Rho_soft + Rho0_soft (g-space)") to check which values give the best results?<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><b><u>LEBEDEV_GRID and RADIAL_GRID</u></b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">It has been said many times over in the mailing list to increase these values for heavier elements as <a href="https://groups.google.com/g/cp2k/c/FUvjXq9RvWY/m/8VwHvHGUAgAJ" target="_blank">Matthias Krack</a> said
as well in an earlier post. My question here are:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:72.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo3">
<![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Marcella Iannuzi stated in <a href="https://groups.google.com/g/cp2k/c/IH5k1SdMu5k/m/kZz4QxbupK8J" target="_blank">
2014</a> that LEBEDEV_GRID is usually in the range 50-80 and RADIAL_GRID in the range 100-200. Is this still accurate? I've seen Jürg Hutter use a 100/100 combination for titanium in a
<a href="https://groups.google.com/g/cp2k/c/6qjk0K5oRqU/m/YL83SHAIBgAJ" target="_blank">
previous post of mine</a>.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:72.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo3">
<![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>How do I know if these values are too small? Do I start with them at 80/200 and then optimize EPSFIT/HARD_EXP_RADIUS and then reduce the LEBEDEV_GRID/RADIAL_GRID values until I see an increase in the electron counts?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><b><u>LMAXN0, LMAXN1 and ALPHA0_HARD:</u></b><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">I feel like I shouldn't mess around with these parameters but I have seen Jürg Hutter define a larger LMAXN0 for Ti in an
<a href="https://groups.google.com/g/cp2k/c/6qjk0K5oRqU/m/YL83SHAIBgAJ" target="_blank">
earlier post of mine</a> and seen ALPHA0_HARD set to 10 in several occasions, for example in the
<a href="https://www.youtube.com/watch?v=L0hKLjvjIFU&t=1754s" target="_blank">GAPW class</a> on youtube from 2019.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:72.0pt;text-indent:-18.0pt;mso-list:l2 level1 lfo4">
<![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Should I leave these at the defaults or try and increase LMAXN0 and set ALPHA0_HARD to 10?<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">My apologies for the long post with a lot of questions, but I feel like some of these details are still missing from the documentation and mailing list and I know that a proper answer would be immensely helpful
for people like me who want to use GAPW for non-standard (heavy) elements and run into trouble with the defaults.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">Kind regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">Léon <o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="margin-left:36.0pt">-- <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/2aa40374-bf62-45f6-919e-56415ee3a8acn%40googlegroups.com?utm_medium=email&utm_source=footer">
https://groups.google.com/d/msgid/cp2k/2aa40374-bf62-45f6-919e-56415ee3a8acn%40googlegroups.com</a>.<o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>
<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/ZRAP278MB082770E212C1B50A15C77E77F4BC2%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/ZRAP278MB082770E212C1B50A15C77E77F4BC2%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM</a>.<br />