Now enjoying the benefits of dispersion-corrected solid-state density functional theory (and a proper MPICH2 implementation for infrared intensity calculations, although this now a problem for reasons to be addressed in an upcoming post) in Crystal09, three issues in recent calculations caused me to think hard enough about keyword formats and job runs that I have opted to post briefly about what to do in case google and bing are your preferred methods of manual searching.
1. How To Run Only A Single-Point Energy Calculation In Crystal06/Crystal09
This had never come up before and, by the time I needed to find an input file to see what do to, the first google search provided Civalleri’s Total Energy Calculation page that currently has broken links to .zip files. There is quite a bit about the different geometry optimization approaches in the manual, but a search for “single-point” provides no information about what to do for only single-point energy calculations.
The solution, it should be obvious after, is simply to not include the geometry optimization section in the input file. What would otherwise be the following (with arbitrary geometry optimization-like info between [COORDINATES] and [BASIS SETS]…
[COORDINATES] OPTGEOM TOLDEG 0.000005 TOLDEX 0.000020 END END [BASIS SETS]
[COORDINATES] [BASIS SETS]
One problem solved by simply not having any optimization parameters (again, makes sense and is now google-able).
2. Proper GRIMME Input Format For Long-Range Dispersion Contributions In Crystal09
This is another example where one’s first efforts in translating the manual into calculations may lead to considerable confusion until the proper format is finally identified (by which time you’ve run many pruned-down input tests).
GRIMME 1.05 20. 25. 1.05 20. 25. s6 (scaling factor) d (steepness) Rcut (cutoff radius) 5 1 0.14 1.001 Hydrogen Conventional Atomic number , C6 , Rvdw 6 1.75 1.452 Carbon Conventional Atomic number , C6 , Rvdw 7 1.23 1.397 Nitrogen Conventional Atomic number , C6 , Rvdw 8 0.70 1.342 Oxygen Conventional Atomic number , C6 , Rvdw 17 5.07 1.639 Chlorine Conventional Atomic number , C6 ,'Rvdw
I’m not even sure where the final ,’Rvdw comes from. Your .out file may terminate with the following error (or something similar)…
rank 7 in job 8 korterquad_51438 caused collective abort of all ranks exit status of rank 7: killed by signal 9
And the ERROR.peN file with any content will show the following, clearly pointing to a GRIMME-specific error…
ERROR **** GRIMME_INPUT **** ELEMENT NOT DEFINED: 1
The problem is the additional content within the manual pages for the GRIMME keyword that require pruning (or, at least, some identifier to show what is and what is not needed). The proper GRIMME section above is properly provided in the INPUT file as…
GRIMME 1.05 20. 25. 5 1 0.14 1.001 6 1.75 1.452 7 1.23 1.397 8 0.70 1.342 17 5.07 1.639
Where (see page 88 of the Crystal09 manual)…
GRIMME <- keyword is called 1.05 20. 25. <- scaling factor, steepness, cutoff distance 5 <- number of elements in the list (not the total number of atoms) 1 0.14 1.001 <- atomic number, dispersion coefficient, van der Waals radius ...
When all is properly run, the bottom of your output file will look something like the following:
CYC 43 ETOT(AU) -5.784662098123E+03 DETOT 1.18E-11 tst 8.17E-15 PX 6.73E-08 == SCF ENDED - CONVERGENCE ON ENERGY E(AU) -5.7846620981229E+03 CYCLES 43 ENERGY EXPRESSION=HARTREE+FOCK EXCH*0.20000+(BECKE EXCH)*0.80000+LYP CORR TOTAL ENERGY(DFT)(AU)( 43) -5.7846620981229E+03 DE 1.2E-11 tester 8.2E-15 TTTTTTTTTTTTTTTTTTTTTTTTTTTTTT EDFT TELAPSE 4705.82 TCPU 4651.41 ******************************************************************************* GRIMME DISPERSION ENERGY CORRECTION SCALE FACTOR (S6): 1.0500 GRIMME DISPERSION ENERGY (AU) -1.9723347118951E-01 TOTAL ENERGY + DISP (AU) -5.7848593315941E+03 *******************************************************************************
The Crystal09 manual refers you to Table 1 of the Stefan Grimme paper, “Semiempirical GGA-type density functional constructed with a long-range dispersion correction” (Journal of Computational Chemistry, Volume 27, Issue 15, Pages 1787 – 1799), which I’ve put together into the proper format below. Be sure to (1) delete the elements in parentheses ( -> get rid of the (H) <- ), (2) remove those atoms you do not need, (3) be sure to change the “number of elements” number for your structure, and (4) get and reference the Grimme paper so you have the proper C6 parameters and van der Waals radii accounted for (you’ll be the right nitwit if I mis-copied something and you ran with it (although I trust my input), and you should have the reference regardless).
( H)Â Â 1Â Â 0.14 1.001 (Li)Â Â 3Â Â 1.61 0.825 (Na)Â 11Â Â 5.71 1.144 ( K)Â 19Â 10.80 1.485 (Rb)Â 37Â 24.67 1.628
(Be)Â Â 4Â Â 1.61 1.408 (Mg)Â 12Â Â 5.71 1.364 (Ca)Â 20Â 10.80 1.474 (Sr)Â 38Â 24.67 1.606
( B)Â Â 5Â Â 3.13 1.485 (Al)Â 13Â 10.79 1.639 (Ga)Â 31Â 16.99 1.650 (In)Â 49Â 37.32 1.672
( C)Â Â 6Â Â 1.75 1.452 (Si)Â 14Â Â 9.23 1.716 (Ge)Â 32Â 17.10 1.727 (Sn)Â 50Â 38.71 1.804
( N)Â Â 7Â Â 1.23 1.397 ( P)Â 15Â Â 7.84 1.705 (As)Â 33Â 16.37 1.760 (Sb)Â 51Â 38.44 1.881
( O)Â Â 8Â Â 0.70 1.342 ( S)Â 16Â Â 5.57 1.683 (Se)Â 34Â 12.64 1.771 (Te)Â 52Â 31.74 1.892
( F)Â Â 9Â Â 0.75 1.287 (Cl)Â 17Â Â 5.07 1.639 (Br)Â 35Â 12.47 1.749 ( I)Â 53Â 31.50 1.892
(He)Â Â 2Â Â 0.08 1.012 (Ne)Â 10Â Â 0.63 1.243 (Ar)Â 18Â Â 4.61 1.595 (Kr)Â 36Â 12.01 1.727 (Xe)Â 54Â 29.99 1.881 Y-CdÂ Â Â Â 24.67 1.639 Sc-ZnÂ Â Â 10.80 1.562
Note that the d-block is identical for each row (so no atom numbers provided).
3. Removing The MPICH2 Content From The Output File In Pcrystal(/09)
This final issue does not occur in Pcrystal(/06) but does in Pcrystal(/09), with the reason being (I assume) the new use of MPICH2 in Pcrystal(/09) instead of MPICH in Pcrystal(/06).Â The problem comes from running the following set of commands at the terminal window in MPICH2:
mpiexec -machinefile machine -np N /path/to/Pcrystal &>FILENAME.out &
Embedded within the FILENAME.out file will be all flavors of MPI-specific output, perhaps such as the following (in this case errors, but it happens in proper output as well):
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 4 application called MPI_Abort(MPI_COMM_WORLD, 1) - process 7 rank 7 in job 9Â korterquad_51438Â Â caused collective abort of all ranks exit status of rank 7: return code 1 rank 4 in job 9Â korterquad_51438Â Â caused collective abort of all ranks exit status of rank 4: killed by signal 9
mpiexec_machine (handle_stdin_input 1089): stdin problem; if pgm is run in background... mpiexec_machine (handle_stdin_input 1090):Â Â Â Â e.g.: mpiexec -n 4 a.out < /dev/null &
The solution is to break up the mpiexec output from the Pcrystal output, performed by directing the mpiexec-specific content to, in this case, /dev/null (because it is not necessary except for diagnostic purposes).
mpiexec -machinefile machine -np N /path/to/Pcrystal < /dev/null &>FILENAME.out &
Which removes all traces of mpi-specific output from FILENAME.out.