Page 1 of 1

Partial atomic charges g16

Posted: Mon Aug 09, 2021 1:59 pm
by mosera
Moving the topic over here from the features forum. Looks like partial atomic charges aren’t being shown in WebMO output when using g16. Tried a few different molecules with a few different calculation types. Any thoughts or confirmations?

Re: Partial atomic charges g16

Posted: Mon Aug 09, 2021 2:06 pm
by schmidt
Can you clarify which Gaussian version (exactly, including build number) AND WebMO version? This certainly appears to work fine for me on with the latest WebMO versions and several versions of G16. An example output file would also be useful.

Re: Partial atomic charges g16

Posted: Thu Aug 12, 2021 2:56 am
by mosera
G16 c.01. WebMO 20.0.012p

Output of HF geom attached and screenshot of output

Re: Partial atomic charges g16

Posted: Tue Aug 17, 2021 2:22 pm
by mosera
Any thoughts or things I can try? I'm a bit stuck and we have assignments they use the partial charge for.

Re: Partial atomic charges g16

Posted: Mon Aug 23, 2021 6:56 pm
by jwk
Hi, Your Mulliken charges are in the output578.txt file at line 550. With g16 and WebMO you will need to search the output.log file for "Mulliken charges" to find that information.
John Keller
University of Alaska Fairbanks

Re: Partial atomic charges g16

Posted: Mon Aug 23, 2021 7:48 pm
by mosera
John, Thanks for the reply. It isn't that I can't find it in the raw output; it is that WebMO is either not parsing the gaussian output to find them or it is parsing properly, but not realizing it should put it in the "Calculated Quantities" block below the molecule. It used to do this and does it when I used g09. Since I'm using it with first year students, I really don't want to try to teach them how to open and search the actual gaussian output because I think they would find it overwhelming.

What is odd to me is that g09 and g16 seem to format the partial charge information the same. Also I can't see anything in parse_gaussian.cgi or view_jog.cgi that would stop WebMO from both finding and displaying the charges in the WebMO "Calculated Quantities" section. I'm clearly missing something, but I'm sure the intention is that atomic partial charges are meant to be displayed.

Re: Partial atomic charges g16

Posted: Wed Aug 25, 2021 7:56 am
by jwk
Hi Adam,
I posted about this problem here last year, but no answer was forthcoming. My solution now is to have a teaching WebMO queue that runs g09, and a research queue that runs g16. The older version is perfectly fine for students. Of course, you would need to have both versions to do this.

Re: Partial atomic charges g16

Posted: Thu Sep 02, 2021 7:54 am
by jwk
This problem is fixed in WebMO 21. See the Demo site which runs G16.

Re: Partial atomic charges g16

Posted: Thu Sep 02, 2021 5:59 pm
by polik
While there are many other reasons to upgrade from WebMO 20 to WebMO 21, the fix for this is so straightforward that folks still running WebMO 20 can easily implement it on their implementations.

There was a minor formatting change in the output of g16 from:
Population analysis using the SCF density
to:
Population analysis using the SCF Density

The patch to parse both versions of output is to edit parse_gaussian.cgi and change line 778 from:
local $i = search_from_end("Population analysis using the \\S+ density", \@logfileText);
to
local $i = search_from_end("Population analysis using the \\S+ [Dd]ensity", \@logfileText);
Note that "d" becomes "[Dd]".

This change is implemented in WebMO 21.

Re: Partial atomic charges g16

Posted: Thu Sep 02, 2021 9:17 pm
by jwk
Thanks, Will. This also works in WebMO 19. On line 770 of parse_gaussian.cgi the same change is made.