-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
molecular orbitals are incorrect for a Cartesian Pople basis set #602
Comments
Thanks for opening your first issue here! Please try to include example files and screenshots if possible. If you're looking for support, please post on our forum: https://discuss.avogadro.cc/ |
Thanks for opening your first issue here! Please try to include example files and screenshots if possible. If you're looking for support, please post on our forum: https://discuss.avogadro.cc/ |
Yes, there are two orders, and different software use both different ordering and different normalization practices. The |
(Incidentally, Avogadro will read cube files just fine.) |
I'm about to release 1.94, so this won't make that version. However, I intend on a more complete revisit to the MO code in a few weeks (including support for higher angular momentum orbitals, e.g., |
There might also be something going on with ORCA files in Avogadro. Here's MO 28 for benzene in Avogadro vs. a cube file made with orca_plot: |
But the top image is from Avogadro 1.x, correct? That looks like a problem finding the isosurface, not in the cube generation. It's having trouble with some of the nodes at that resolution -- which is why the other orbitals look fine. IMHO, the best thing for ORCA support is to add MKL support (#327). It shouldn't be too hard to duplicate the Molden reader... |
Yes, the top image is from Avogadro 1.2.0. Bottom is from ChimeraX again. I tried each of the resolution options available in Avogadro, and it always looked basically the same. I also opened the cube file from orca_plot in Avogadro and Avogadro 2, and it looks the same as the bottom image. orca_plot defaults to a 40x40x40 point cube, which works out to around 0.29x0.30x0.27 Angstrom resolution for this structure. I've also tried 100x100x100 points, which works out to ~0.1 Angstrom resolution. It looks like the bottom image in Avogadro and Avogadro 2. I have found a few other orbitals in orbits-tz.out that differ from expected. The issue might be with parsing the orca file, which could probably be solved with an MKL parser as you suggest. The blocks with MO's that appear funky in Avogadro have a coefficient that looks like "-##.#####", which leaves no white space between the columns. Here's a section for MO's 43-48 (orca 0-indexes the orbitals):
orbital 47 (46 by ORCA's numbering) also looks different in Avogadro than the cube file from orca_plot. If this is an issue with finding the isosurface, it seems to happen pretty frequently alongside MO coefficients less than -10. The only cases I've seen where an MO with a coefficient < -10 looks the same as the cube file orca_plot generates is when that orbital is in the first column (e.g. MO 120 by orca's numbering). |
Reading the orbitals from the ORCA output goes through Open Babel, so we'd need to fix up that parsing code, plus get the orbitals output to CJSON for Avogadro2. That's a good idea, but would take more work than adding an MKL parser. (Particularly since IIRC MKL is v. similar to Molden.) Let's make sure Avo2 is working on the correct data. Then we can question whether the marching cubes is having an issue on the isosurface. I don't have time today to mess with MKL parsing. Basically, you'd copy https://github.com/OpenChemistry/avogadrolibs/blob/master/avogadro/quantumio/molden.cpp |
Needs some code for re-ordering CCA-based input & g, h orbitals Signed-off-by: Geoff Hutchison <geoff.hutchison@gmail.com>
I've also updated the I'd still like to get support for MKL and Orca 5.0 new json format though. |
Here are the build results |
Cartesian orbitals from FCHK files look good to me! I saw that they added some json format stuff to ORCA 5.0, but I can't find any info in the manual about getting ORCA to write a json file. |
It's a new program |
Fix #602 - use Molden order for f-orbitals
Avogadro version: (please complete the following information from the About box):
Desktop version: (please complete the following information):
Describe the bug
Molecular orbitals are incorrect. I compared Avogadro2 to cubegen, and several orbitals are noticeably different.
To Reproduce
I've attached an fchk file. MO 30 is one of the more noticeable ones.
Expected behavior
I think the issue is with 10F shells. Looking at some code (I assume Avogadro and Avogadro2 use similar code to process orbitals, but don't want to look around the code too much), Avogadro seems to use this order for the 10F shell:
Unless these are getting reordered somewhere, this could be where things are going wrong. The order in the fchk file is:
Gaussian uses 7F by default, so this probably wouldn't impact many people.
Screenshots
There are two images in the attached folder. One is an image from Avogadro2 for MO 30. The other is a cube file for MO 30 generated by cubegen opened in ChimeraX.
Additional context
avo_mo.zip
The text was updated successfully, but these errors were encountered: