Quantum 1 Modules |
Detailed documentation of the standalone keywords, which are contained in the .input file, is contained in DMol3--Keyword Descriptions.
A DMol3 run can be set up in a standalone manner, completely outside the Cerius2 environment. To do this, you need at least two files: an input file (run_name.input, below) containing command keywords to control the calculation, and a file containing the molecular coordinates (run_name.car, documented at MSI's website: http://www.msi.com/doc).
Methodology
Creating and modifying input files
You should create the initial model structure and the DMol3 input file by using the Cerius2·DMol3 module.
You also have to set your computational environment so as to access the license files and DMol3 data files. (This task can be handled by a run script instead, see below.)
> dmol3 run_nameFor example:
> dmol3 h2oThis command performs a calculation on a water molecule using the starting geometry of water contained in the file called h2o.car and following the instructions contained in a file called h2o.input.
If you need to specify point charges, a Hessian file, a restart file for energy, geometry optimization, or frequency calculations, and/or the starting orbital occupancy, then additional input files are needed.
Handling such runs, as well as cleaning up various scratch files, is facilitated by Running DMol3 from a run script.
Running DMol3 from a run script
It is usually easier to run standalone DMol3 from a run script, rather than directly using just an input file and a structure file. You can create a DMol3 run script by using the Cerius2·DMol3 module.
> dmol3.run h2oThis command performs a calculation on a water molecule using the starting geometry of water contained in the file called h2o.car and following the instructions contained in a file called h2o.input.
#! /bin/csh -f ############################################################## # $NAME Run script designated to run DMol3 background job ############################################################## # # User is encouraged to customize this script # WARNING: this script will remove most of the restart and # result files. The only surviving files are .outmol # new geometry (.car), # hessian files (.hesswk, .hessian), # SCF vectors (.tpvec), # history of oprimization (.arc), # original .car and .hessian files (.orig), # MD history file (.his), # files for ploting (.grid) # ############################################################### # # To run dmol3 standalone just type: # # dmol3.run run_name & # # where run_name is the NAME of the system # # DMol3 expects that at least NAME.car and NAME.input exist # in the cwd, running directory. # Optionally you may need to provide specific files to restart # DMol3 run. ############################################################### # Unalias commands, just in case unalias rm unalias cp set NAME = $1 # setenv C2DIR /cx4/release/irix64.x11/cerius2_c38 # License setup source $C2DIR/install/lic_setup # Set some environmental variables setenv DMOL3_DATA $C2DIR/res/DMOL3 setenv DMOL3 $C2DIR/exec/dmol3 # Check that the executable of DMol3 exists if ( -e $DMOL3 ) then # Remove existing outfile, if it exists if ( -e $NAME.outmol ) /bin/rm $NAME.outmol # Save an orignal copy of the car file if ( ! -e $NAME.car.orig ) then /bin/cp $NAME.car $NAME.car.orig endif # Save an orignal copy of the hessian file if ( ! -e $NAME.hessian.orig ) then if ( -e $NAME.hessian ) then /bin/cp $NAME.hessian $NAME.hessian.orig endif endif # Now, run the $NAME executable $DMOL3 $NAME else echo `The DMOL3 executable cannot be located.' echo `Alternatively, there may be a problem with your Cerius2 installation.' endif # the following section has to be checked very carefuly before running # the script, so the only not needed files are removed # # restart for frequency #if ( -e $NAME.hesswk ) then # rm $NAME.hesswk #endif # restart for optimization #if ( -e $NAME.hessian ) then # rm $NAME.hessian #endif # SCF restart file #if ( -e $NAME.tpvec ) then # rm $NAME.tpvec #endif # history of optimization #if ( -e $NAME.arc ) then # rm $NAME.arc #endif # MD history file #if ( -e $NAME.his ) then # rm $NAME.his #endif # old restart for SCF if ( -e $NAME.tpotl ) then rm $NAME.tpotl endif # restart for volumetric properties if ( -e $NAME.tmesh ) then rm $NAME.tmesh endif if ( -e $NAME.tpsmx ) then rm $NAME.tpsmx endif # results of properties run # density of states if ( -e $NAME.dos ) then rm $NAME.dos endif # optical absorption if ( -e $NAME.optabs) then rm $NAME.optabs endif # remove all the plot files # rm *.grd # Occupancy file if ( -e $NAME.occup ) then rm $NAME.occup endif # Remove the following scratch files if ( -e $NAME.basis ) then rm $NAME.basis endif if ( -e $NAME.grad ) then rm $NAME.grad endif if ( -e $NAME.inatm ) then rm $NAME.inatm endif if ( -e $NAME.incoor ) then rm $NAME.incoor endif if ( -e $NAME.opt ) then rm $NAME.opt endif if ( -e $NAME.outatom ) then rm $NAME.outatom endif if ( -e $NAME.pchk ) then rm $NAME.pchk endif if ( -e $NAME.startspin ) then rm $NAME.startspin endif if ( -e $NAME.sym ) then rm $NAME.sym endif if ( -e $NAME.symdec ) then rm $NAME.symdec endif if ( -e $NAME.symdv ) then rm $NAME.symdv endif if ( -e $NAME.torder ) then rm $NAME.torder endif if ( -e $NAME.tpdiis ) then rm $NAME.tpdiis endif if ( -e $NAME.tpdiisk ) then rm $NAME.tpdiisk endif if ( -e $NAME.tplev1 ) then rm $NAME.tplev1 endif if ( -e $NAME.tplev2 ) then rm $NAME.tplev2 endif if ( -e $NAME.fwv ) then rm $NAME.fwv endif if ( -e $NAME.amat ) then rm $NAME.amat endif if ( -e $NAME.prf ) then rm $NAME.prf endif
For an IBM, the following modification of the dmol3.run file is needed, for example:
setenv C2DIR /cx4/release/ibmrios.x11/cerius2
Upon completion of the run, the main results are written to a file called run_name.outmol.
DMol3 uses input files which reside in the DMOL3_DATA directory.