I have actually managed to get the crystallographic cell parameters and fractional coordinates, and the calculation seems to be proceeding fine (forces are not greater than 10^-15 a.u.). If anyone finds this useful, the bash script is below. But I haven't tested it with any other spacegroup yet, just the 64th one.
#!/bin/bash outfile="$1" [ ! -f "$outfile" ] && echo "File not found!" && exit 5 [ -z "$(grep -e 'FINAL OPTIMIZED GEOMETRY' "$outfile")" ] && echo "The geometry optimization did not finish!" && exit 3 cat "$outfile" | sed -n '/^ *FINAL OPTIMIZED GEOMETRY/,/TTTTTTTTTTTTTTTTTTTTTTTTTTTTTT END/p' | grep -A 2 -e '^ *CRYSTALLOGRAPHIC CELL' | tail -1 | sed 's@ \+@\n@g' | uniq | grep -v -e '^ *$' -e '^90.0000' > "${outfile%out}gem" fractionals="$(cat "$outfile" | sed -n '/^ *FINAL OPTIMIZED GEOMETRY/,/TTTTTTTTTTTTTTTTTTTTTTTTTTTTTT END/p' | sed -n '/^ *COORDINATES IN THE CRYSTALLOGRAPHIC CELL/,/^ *$/p' | sed '1,3d;$d')" echo "$fractionals" | wc -l >> "${outfile%out}gem" echo "$fractionals" | gawk '{printf " %2d\t% 2.12e\t% 2.12e\t% 2.12e\n",$3,$5,$6,$7}' >> "${outfile%out}gem"Geometry Optimisations
Internal Coordinates, Constraints, Convergence
9
Topics
34
Posts