-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ALPB and ddCOSMO not rotationally invariant #1119
Comments
Thank you for reporting. Upon review, we noticed the files you provided were not only rotated but also exhibited an RMSD of 1E-6. For comparison, we conducted a test using the following structures with an RMSD of 1E-11: Test Results:(GFN2, solvent: water, energies in Eh)
Observations:The issues already arise using only the underlying ddCOSMO/ddCPCM which is likely carried over into CPCMX. Unfortunately, ALPB also does not show rotational invariance in xTB either. We will further look into this issue. CC: @thfroitzheim |
Hi @lukaswittmann - thanks for confirming the bug! Looking forward to the fix. In the meantime, are you aware any recommended settings that might mitigate this error? Maybe an option to increase the grid size? |
You can try to increase the grid size: https://xtb-docs.readthedocs.io/en/latest/gbsa.html#available-grids |
Increasing the grid does improve the result: Using ddCPCM in tblite with the largest grid ( In principle, the issue is known for apparent surface charge PCMs. Regarding the ALPB issue, we have to look more into the details, but the ORCA SMD CDS part is rotationally invariant, which means this should also be applicable to the ALPB CDS part also. |
This problem can be solved if you just specify a "standard" molecular orientation, see Johnson/Gill/Pople 1994 |
Describe the bug
xtb version 6.7.1 (d42779f) with cpcm-x has small, but significant, energy differences (0.0001 Hartree in the attached example) with respect to rotation of a simple molecule. The energies match up to the 7th decimal when not using cpcm-x.
To Reproduce
Run
xtb {input.sdf} --cpcmx water
on both the attachedref.sdf
androtated.sdf
input files (I can't upload .sdf files apparently so I converted them to txt)ref_sdf.txt
rotated_sdf.txt
rotated.sdf
is just a rotation of the molecule inref.sdf
around the x-axis by 30 degrees.ref.sdf
output with cpcmx| TOTAL ENERGY -17.598183210842 Eh |
rotated.sdf
output with cpcmx| TOTAL ENERGY -17.598280276499 Eh |
ref.sdf
output without cpcmx| TOTAL ENERGY -17.591235057712 Eh |
rotated.sdf
output without cpcmx| TOTAL ENERGY -17.591235064338 Eh |
Expected behaviour
I expected the total energies to match up to about the 6th or 7th decimal place, similar to the accuracy of the dispersion/nuclear repulsion energies and when running without cpcmx.
The text was updated successfully, but these errors were encountered: