Skip to content
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

Order of the G functions for molden file #29

Closed
fsmoncadaa opened this issue Jul 26, 2023 · 4 comments · Fixed by #102
Closed

Order of the G functions for molden file #29

fsmoncadaa opened this issue Jul 26, 2023 · 4 comments · Fixed by #102
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@fsmoncadaa
Copy link
Collaborator

fsmoncadaa commented Jul 26, 2023

When writing a molden output, we call the MolecularSystem_changeOrbitalOrder routine

This routine for the G functions seems not to be working properly. For example, when we load the molden file produced by this input

SYSTEM_DESCRIPTION='Molecula de H2O'

GEOMETRY
e-[O] CC-PVQZ 0.000000 0.000000 -0.066575
e-[H] 6-31G 0.000000 0.754175 0.528381
e-[H] 6-31G 0.000000 -0.754174 0.528382
O dirac 0.000000 0.000000 -0.066575
H_1 dirac 0.000000 0.754175 0.528381
H_1 dirac 0.000000 -0.754174 0.528382
END GEOMETRY

TASKS
method = "RHF"
END TASKS

OUTPUTS
moldenFile
END OUTPUTS

Molden computes:
Sum of Mulliken Charges: 0.0201

This number should be zero!

The sum of Mulliken Charges becomes zero if we replace the CC-PVQZ with CC-PVTZ basis. That's why I think the order of the G functions may be incorrect

@jacharrym
Copy link
Collaborator

I think the ordering between molden and gamess is different for G. Maybe there is an option to switch format. Or maybe I'm crazy...

@fsmoncadaa
Copy link
Collaborator Author

We have the option to switch from Molden to Gamess ordering. In Gamess we only go up to F functions, following the comments, for molden I'm taking the G ordering from the fchk file needed for Erkale. But this doesn't seem to be the correct order for molden

@jacharrym
Copy link
Collaborator

Ah Ok, so then for G we simply never checked the order. Probably we just added a warning

https://www.theochem.ru.nl/molden/molden_format.html

@jacharrym jacharrym added bug Something isn't working help wanted Extra attention is needed labels Jul 26, 2023
@fsmoncadaa
Copy link
Collaborator Author

Muchas gracias don Jorge!

Definitively the order is wrong

Molden expected format

9G: G 0, G+1, G-1, G+2, G-2, G+3, G-3, G+4, G-4
15G: xxxx yyyy zzzz xxxy xxxz yyyx yyyz zzzx zzzy,
xxyy xxzz yyzz xxyz yyxz zzxy

Current order in the code:
!! Reorder the G functions
!! counter: 0, 1, 2, 3, 4, 5, 6, 7, 8 9, 10, 11, 12, 13, 14
!! Lowdin: XXXX,XXXY,XXXZ,XXYY,XXYZ,XXZZ,XYYY,XYYZ,XYZZ,XZZZ,YYYY,YYYZ,YYZZ,YZZZ,ZZZZ
!! erkale-FCHK: ZZZZ,YZZZ,YYZZ,YYYZ,YYYY,XZZZ,XYZZ,XYYZ,XYYY,XXZZ,XXYZ,XXYY,XXXZ,XXXY,XXXX

@fsmoncadaa fsmoncadaa self-assigned this Jul 26, 2023
fsmoncadaa added a commit that referenced this issue Nov 24, 2024
…to define more easily the plot coordinates. See the tests files for examples (axis,plane,limit,pointsPerDim,scanStep,offset)

Fixed "easy" issues related to the outputs #65, #46, #29. Also added a warning to fix #35 and a test of the reordering of the G functions for molden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants