Open proteins247 opened 6 months ago
My misunderstanding about settings for PCMSolver led to a mistake in the psi4 input file above. I put in Units = Angstrom, but I also left in Area = 0.3, which I see is the default value in the documentation. But the documentation specifies 0.3 a.u.^2. With Units = Angstrom, I end up specifying faces that are roughly 4x larger, 0.3 Å^2. I also now understand that PCMSolver works with a.u., and the output cavity files are also in a.u.
I reran my test cases, now with the following input for psi4 in the PCMSolver section.
pcm = {
Medium {
SolverType = CPCM
correction = 0.5
Solvent = Water
}
Cavity {
RadiiSet = Bondi
Type = GePol
Scaling = True # default
Area = 0.3 # default
Mode = Implicit # default
}
}
The results are not changed, however.
This may be related to https://github.com/PCMSolver/pcmsolver/issues/206, but it also might not be. If it's related, hopefully this can provide some clues to solving that issue.
I noticed that with a test molecule, when I visualize the cavity.off file (as well as the cavity.npz file), the cavity looks wrong. This occurs when I use Psi4 version 1.9.1, which I presume uses a later version of PCMSolver.
Here's what I see when I open the cavity.off file with GeomView:
I installed an older version of Psi4, version 1.7, which uses an older version of PCMSolver. The cavity.off file looks correct when visualized:
GeomView is only rendering what the .off files contain. It's apparent that the .off file generated from version 1.9.1 is strange. For example, here is the first face, spanning several angstroms.
The input to Psi4 that I used to calculate this was as follows:
4-26 edited to add: changing units to Angstrom means area 0.3 is in angstroms^2. See followup comment.
When I look at the output of psi4 for both versions, the reported energetics are still the same
The cavity generated by Psi4 version 1.7 has 1262 tessera, while the cavity from Psi4 version 1.9.1 has 1252 tessera.
How this affects me is that Psi4 using PCMSolver seems to fail for many organic molecules that I am testing with the
PCMSolver fatal error. S matrix is not positive-definite!
error, as described in https://github.com/PCMSolver/pcmsolver/issues/206. In those cases, the cavity also looks incorrect. I took a molecule that failed with this error and found that the calculation successfully completes when I use Psi4 1.7.Note that Psi4 1.9.1 does generate cavities that look correct as well, particular for smaller, simpler molecules that I've tested.
Your Environment
conda create -c psi4 -c conda-forge -n psi4_1_7 python psi4=1.7.0 pydantic=1.10 dftd3 dftd4 gcp
conda create -c conda-forge -n psi4_1_9 python psi4 dftd3-python dftd4-python gcp-correction