Hi everyone
I'm writing to ask for advice on how to get the NWChem output file's final optimised geometry in XYZ format.
Right now, NWChem version 7.2.0 is what I'm using.
I've attempted to use the driver XYZ directive in the input file, however, it records every step in between during optimization. I've also tried using the grep and awk tools to post-process the output file, but I either can't discover the pertinent keywords or get redundant data.
Would you kindly advise on the best way to extract only the final optimized geometry for NWChem version 7.2.0 in XYZ format?
This is how I've done it
start
title “H2O”
geometry units angstrom
O 0 0 0
H 0 1.430 1.107
H 0 -1.430 1.107
end
basis
* library sto-3g except O
O library 6-31g
end
driver
xyz # This will capture the initial geometry
end
dft
xc b3lyp
end
task dft optimize
driver # This will capture the final geometry after optimization
xyz output="water_optimized.xyz"
end
and I also tried sth like
grep -A 3 "Final geometry" water.out | tail -3 > water_optimized.xyz
Best regards
Hadeel
I am aware that using the command "ls -lrt *xyz" allows me to obtain the necessary file list. However, I am seeking a more efficient solution wherein a script or similar tool can automatically generate the final xyz file
Imagine that I have 10 folders for those folder I want to
Identify the file named "final_optimized_structure.xyz" within each folder automatically to be able to use it for the next step