I know it is easy to get the PES tabulated very neatly in MOLPRO with a command like:
{table,r,scf,ccsd,ccsd_t
head, R,HF-SCF,CCSD,CCSD(T)
sort,1,2,3}
which for a diatomic molecule like yours, gives the following output:
R HF-SCF CCSD CCSD(T)
1.5 -108.3566620 -108.6007993 -108.6060512
1.6 -108.6053845 -108.8602358 -108.8662569
1.7 -108.7675654 -109.0332410 -109.0401624
1.8 -108.8668845 -109.1435633 -109.1515330
1.9 -108.9206732 -109.2086077 -109.2177903
2.0 -108.9417215 -109.2412265 -109.2518027
2.1 -108.9395089 -109.2509444 -109.2631091
2.2 -108.9210615 -109.2448104 -109.2587715
Someone that uses GAMESS more than me might give an analogous solution for GAMESS.
However you might want a very quick solution so that you can get back to working on your project, so below is a solution you can use immediately.
The command:
grep "COORD 1=" gamess.log
would give the following type of following output:
COORD 1= 1.5 COORD 2= 0.000
COORD 1= 1.6 COORD 2= 0.000
COORD 1= 1.7 COORD 2= 0.000
COORD 1= 1.8 COORD 2= 0.000
COORD 1= 1.9 COORD 2= 0.000
COORD 1= 2.0 COORD 2= 0.000
COORD 1= 2.1 COORD 2= 0.000
COORD 1= 2.2 COORD 2= 0.000
and the command:
grep "HAS ENERGY VALUE" gamess.log
would give the following type of output:
HAS ENERGY VALUE -108.3566620
HAS ENERGY VALUE -108.6053845
HAS ENERGY VALUE -108.7675654
HAS ENERGY VALUE -108.8668845
HAS ENERGY VALUE -108.9206732
HAS ENERGY VALUE -108.9417215
HAS ENERGY VALUE -108.9395089
HAS ENERGY VALUE -108.9210615
You then have the R and V(R) values printed in a more convenient way, and you can then chop the rest off easily in VIM, or if you're unfamiliar with VIM you can import this data into Excel or Google Sheets or MATLAB and have the software automatically separate the columns, from which point you can copy and paste the results into a table.
The grep
command can be improved, and combined with clever use of awk
to make the table directly from the command line, but it would be more complicated and my above answer is probably the simplest and most immediate solution without figuring out how to get GAMESS to make the table the way MOLPRO does (if GAMESS can even do it).
If anyone wishes to test the above grep
commands or to test their own improvements of them, the above grep
results were done on this file which is now in the "Modeling Matters" GitHub repository.