Editing
Energies
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
go back to [[Main Page]], [[Computational Resources]], [[Scripts]] This is an AWK script. The following script will go through a Gaussian output looking for the b3lyp energy (the fifth "word" in the output line where E(RB+HF-LYP) appears), the zero point corrected energy (7th "word" in the same line as zero-point) and Free energy (8th "word" in the output line containing Free). If the calculation finished correctly "Normal termination" will appear on the screen, if not "Error termination" will be printed 5 times in the screen. ---- <nowiki> #!/usr/bin/awk -f BEGIN { } { {if ($3 == "E(RB+HF-LYP)"){ b3lyp =$5 }} {if ($5 == "zero-point"){ zero=$7}} {if ($6 == "Free"){ free=$8}} {if (($1 == "Normal") && ($2 == "termination")){print "Normal termination"}} {if (($1 == "Error") && ($2 == "termination")) { print "Error termination" print "Error termination" print "Error termination" print "Error termination" print "Error termination" } } } END{ print " b3lyp ", " zpe corrected ", " Free energy " print b3lyp, zero, free} }</nowiki> ----
Summary:
Please note that all contributions to Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information