Dear CP2K Developers,<div><br></div><div>I would like to follow up on unphysical stress tensor from AIMD using the van der Waals density functionals (e.g., optB88-vdW, optB86b-vdW).<br></div><div>The input file we use (attached in the previous emails) works perfectly fine for PBE-D3, SCAN, and SCAN-D3, which implies some problems with stress tensor computations in CP2K using the van der Waals density functionals.</div><div><br></div><div>Thank you,</div><div>Slava</div><div>Vyacheslav Bryantsev</div><div><br></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Thursday, December 1, 2022 at 6:38:27 PM UTC-5 ldgib...@gmail.com 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 Prof. Hutter,<div><br></div><div>Thank you for your suggestion. We ran that DEBUG job with the input you provided for optB86b-vdW. In the output, it compares the stress tensor computed numerically and analytically, which showed that the two methods gave the same result (within error). I have attached the output file from that DEBUG job for reference. I have also included an xyz file for the system we are looking at for any testing.</div><div><br></div><div>We also discovered that we were running the SCAN-RVV10 calculations without actually including the non-local vdW corrections from RVV10. So in the figure I previously attached, the plot labeled "SCAN-RVV10" was actually showing the pressures from SCAN without any dispersion corrections. Therefore, we only see this non-physical behavior when using non-local vdW functionals and showed that it is not attributed to the method of computing the stress tensor (i.e., numerical vs analytical) based on the DEBUG job we ran.</div><div><br></div><div>We appreciate your help in identifying the source of this problem. If you need any other information from us for testing, we are happy to provide it.</div><div><br></div><div>Thank you,</div><div>Luke</div><div><br></div><div class="gmail_quote"></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Wednesday, November 30, 2022 at 7:48:43 AM UTC-5 jgh wrote:<br></div></div><div class="gmail_quote"><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>difficult to say what goes wrong here. No atomic coordinates for further testing available.
<br>But I would suggest to make the following test:
<br>Debug the stress tensor using finite differences and avoid
<br>STRESS_TENSOR DIAGONAL_ANALYTICAL
<br>use
<br>STRESS_TENSOR ANALYTICAL
<br>
<br>Use the DEBUG run_type:
<br>
<br>RUN_TYPE    DEBUG
<br>
<br>with
<br>
<br>&DEBUG
<br>   DEBUG_FORCES .FALSE.
<br>   DEBUG_STRESS_TENSOR .TRUE.
<br>   DEBUG_DIPOLE .FALSE.
<br>   DEBUG_POLARIZABILITY .FALSE.
<br>   DE 0.001
<br>   STOP_ON_MISMATCH .FALSE.
<br>   EPS_NO_ERROR_CHECK 5.e-5
<br>&END
<br>
<br>regards
<br>JH
<br>
<br>________________________________________
<br>From: <a href rel="nofollow" data-email-masked>cp...@googlegroups.com</a> <<a href rel="nofollow" data-email-masked>cp...@googlegroups.com</a>> on behalf of Luke Gibson <<a href rel="nofollow" data-email-masked>ldgib...@gmail.com</a>>
<br>Sent: Monday, November 28, 2022 4:19 PM
<br>To: cp2k
<br>Subject: [CP2K:18105] Non-physical pressure behavior for non-local vdW functionals
<br>
<br>Dear developers and users,
<br>
<br>We are looking at the equilibrium density for an AlCl3 molten salt melt by measuring pressure values over 10 ps in NVT at a variety of volumes. We are comparing the pressures for a variety of functionals with various vdW corrections: PBE-D3, optB86b-vdW, optB88-vdW, SCAN-D3, and SCAN-RVV10. The data are shown in the attached plot with the mean pressure (± 1 standard deviation) for each volume (the plot for PBE-D3-smooth can be ignored).
<br>
<br>It seems optB86b-vdW, optB88-vdW, and SCAN-RVV10 are reporting unexpected behavior in the stress tensors. Both optB86b and optB88 seem to be the most "wrong" with negative pressures across the board and an unusual increase in the pressure as the system's volume is expanded (all systems have the same number of particles). SCAN-RVV10 at least follows a believable trend and isn't too far off, so it may just not be appropriate for this system.
<br>
<br>We are wondering if the stress tensor calculation is properly implemented for these non-local vdW functionals, since both PBE-D3 and SCAN-D3 are producing believable trends.
<br>
<br>For reference, I have included the input files for the 3 problematic functionals I mentioned for the volumes corresponding to V_exp in the attached plots. The versions used for each of those runs are listed below:
<br>
<br>  *   optB86b-vdW: CP2K-8.2
<br>  *   optB88-vdW: CP2K-6.1
<br>  *   SCAN-RVV10: CP2K-2022.2
<br>
<br>Any help or insight is appreciated!
<br>
<br>Thank you,
<br>
<br>Luke Gibson
<br>
<br>--
<br>You received this message because you are subscribed to the Google Groups "cp2k" group.
<br></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">To unsubscribe from this group and stop receiving emails from it, send an email to <a href rel="nofollow" data-email-masked>cp2k+unsubscribe@googlegroups.com</a><mailto:<a href rel="nofollow" data-email-masked>cp2k+unsubscribe@googlegroups.com</a>>.
<br></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/afc955e0-daad-40f4-8bce-87b08f87cb8dn%40googlegroups.com" rel="nofollow" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://groups.google.com/d/msgid/cp2k/afc955e0-daad-40f4-8bce-87b08f87cb8dn%2540googlegroups.com&source=gmail&ust=1671129846394000&usg=AOvVaw2iAwIeNffTD_qfuBNPT-U2">https://groups.google.com/d/msgid/cp2k/afc955e0-daad-40f4-8bce-87b08f87cb8dn%40googlegroups.com</a><<a href="https://groups.google.com/d/msgid/cp2k/afc955e0-daad-40f4-8bce-87b08f87cb8dn%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/afc955e0-daad-40f4-8bce-87b08f87cb8dn%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1671129846394000&usg=AOvVaw0ZLHvB2tXo8ukbNB7VPDhC">https://groups.google.com/d/msgid/cp2k/afc955e0-daad-40f4-8bce-87b08f87cb8dn%40googlegroups.com?utm_medium=email&utm_source=footer</a>>.
<br></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/18cd4706-b0f6-4ee9-9a95-2e18a51d00b0n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/18cd4706-b0f6-4ee9-9a95-2e18a51d00b0n%40googlegroups.com</a>.<br />