Since 18/01/2017

header ads

How to run CRYSTAL17

The CRYSTAL package consists of 2 programs:
  • crystal            compute wave function - optimize geometry, if requested
  • properties      compute one electron properties  
Two scripts are supplied to control the execution:
  • runcry17           compute wave function (and properties, if input data exist)
  • runprop17         wave function analysis and one electron properties
For visualizing full information on usage modes, type the script name without parameters.
File name extension are interpreted by the scripts according to the following rules:
.d12wave function calculation input (program crystal)
.outwf calculation printed output file (it may be modified by setting environment variable $OUTFILE)
.d3properties calculation input (program properties)
.outpproperties calculation output file (it may be modified by setting environment variable)
.pspostscript file - written by one of the programs of the package Crgra2006
.mapsmaps06 control file (see Crgra2006)
.bandband06 control file (see Crgra2006)
.dossdoss06 control file (see Crgra2006
The scripts refer to environment variables defined as described in "installation instructions":
Variables that must be defined (source the shell cry2k17.cshrc or cry2k17.bashrc):
variable name    meaning                                 value in the example 
 CRY17_ROOT     CRYSTAL17 root directoy                 $HOME/CRYSTAL17
 CRY17_ARCH     ARCH string to identify the executable    Linux-ifort
 CRY17_SCRDIR   temporary directory for scratch files     $HOME
 CRY17_EXEDIR   binaries directory

The default path to "crystal" and "properties" binaries is:
$CRY17_ROOT/bin/$CRY17_ARCH/std/
The directory for scratch files is defined as:
$CRY17_SCRDIR/tmp$$

Variables that can be defined:
variable name    meaning                                  default value 
OUTFILE          suffix of output files                   out                    
VERSION          version of the executable                std
CRY17_INP       "crystal" input files directory          $here
CRY17_PROP      "properties" input files directory       $here
CRY17_F9        wave function data directory             $here
The output directory is always $here

runcry17

Usage:
runcry17 inpfilename  [wf_filename]
This script controls a CRYSTAL run
The program crystal is executed for wave function and total energy calculation (and geometry optimization, if required).
If execution is successful, and an input file with the same name of the crystal input file (inpfilename.d12), but extension d3 (inpfilename.d3), is present, the program properties is executed.

inpfilename.d12crystal HF/KS wave function calculation input deck
[wf_filename.f9] (optional)wave function data from a previous run - see "SCF", keyword GUESSP, RESTART 
[inpfilename.d3] (optional)properties  input deck
inpfilename.outprinted output file
.
The following files (if they exist) are saved in the current directory at the end of the calculation (fort.9 is binary, all other files are formatted):
fileprogramsaved asdata storedkeyword
fort.9crystalinpfilename.f9binary wave functiondefault, if SCF successful
fort.98crystalinpfilename.f98formatted w-fdefault, if SCF successful
GAUSS98.DATcrystalinpfilename.gjfinput for  Gaussian98 GAUSS98
fort.33crystalinpfilename.xyzatoms coordinates COORPRT
FINDSYM.DATcrystalinpfilename.FINDSYMinput for findsymFINDSYM
fort.34crystalinpfilename.guiGUI - crystal structureEXTPRT
HESSOPT.DATcrystalinpfilename.hessoptHessianOPTGEOM
OPTINFO.DATcrystalinpfilename.optinfoinfo for opt restartOPTGEOM
FREQINFO.DATcrystalinpfilename.freqinfoinfo for frequencies restartFREQCALC
HESSFREQ.DATcrystalinpfilename.hessfreqHessianFREQCALC
REFLECTANCE.DATcrystalinpfilename.reflectancereflectance data to plotFREQCALC/REFLECTANCE
EOSINFO.DATcrystalinpfilename.eosinfoEquation of StateEOS
ELASINFO.DATcrystalinpfilename.elasinfoelastic constantsELASTCON


runprop17

This script controls a properties run, for the calculation of one electron properties and wave function analysis. 
The examples in the tutorials read wave function data from binary files, but it is possible to start from formatted w-f data. See CRYSTAL17 User's Manual, keyword RDFMWF.

Usage
runprop17 inpfilename [wf_filename]

inpfilename.d3properties input file
inpfilename.f9 (default)crystal SCF wave function data
[wf_filename.f9] (optional)crystal SCF wave function data
inpfilename_wf_filename.outpprinted output file
At the end of SCF wave function data are written in fort.9 (binary), and saved by runcry17 script as inpfilename.f9
The program properties is executed, reading input from  inpfilename.d3, and wave function from  inpfilename.f9, or wf_filename.f9, if different from inpfilename.f9. Results are written in : inpfilename_wf_filename.outp.
Wave function data can be read from file fort.98 (saved as inpfilename.f98 at the end of SCF), by inserting the keyword RDFMWF in the first record of  properties input stream.
Example:
runprop17 mgo
the program properties is executed. Input is read from file mgo.d3, the wave function is read from mgo.f9, output is written in mgo_mgo.out6p
runprop17  band mgo
the program properties is executed. Input is read from file band.d3, the wave function is read from mgo.f9, output is written in band_mgo.out6p.  This allows computing from the same wave function, stored in wf_filename.f9,  different properties in different runs, using inpfilename.d3 as input. 
Files with extensions .f9 are not modified by properties.
The following files (if they exist) are saved, formatted, in the current directory at the end of the calculation:
filesaved asdata storedkeyword
fort.98inpfilename.f98formatted wave function FMWF
fort.33inpfilename.xyzatoms coordinates - xyz formatCOORPRT
fort.25inpfilename.f25data for visualization BAND,DOSS,ECHG,POTM
fort.31inpfilename_dat.prop3d3D charge (spin) density/potentialECH3/POT3
fort.32inpfilename_dat.info3dinformation on 3D gridECH3/POT3 or GRID3D
fort.34inpfilename.guiGUI - crystal structureEXTPRT
SYMMINFO.DATinpfilename.symsymmetry informationSYMMINFO
BAND.DATinpfilename_dat.BANDband structureBAND
DOSS.DATinpfilename_dat.DOSSdensity of statesDOSS
RHOLINE.DATinpfilename_dat.RHOLINEelectron density profileECHG
POTC.DATinpfilename_dat.POTCexact electrostatic potentialPOTC (FIELD in geometry input)
EMDL.DATinpfilename_dat.EMDLElectron Momentum distributionEMDL
BIDIDI.DATinpfilename.BDIDIB(r)BIDIERD
GRED.DATinpfilename.GREDBS, geom,direct lattice reducible dataCRYAPI_OUT
KRED.DATinpfilename.KREDeigenvectors in full BZCRYAPI_OUT

The files GRED.DAT, KRED.DAT are read by an external program, cryapi_inp.f, distributed as source file.

Visualization of data
Geometry
Coordinates of the atoms in the primitive cell are written in xyz format in fort.33, saved as inpfilename.xyz. (keyword COORPRT; always written when OPTGEOM, geometry optimization, is active).
The program MOLDEN allows visualization of the structure. The atoms in the cell are treated as atoms in a molecule, translational symmetry is not recognized. For a better visualization the keyword SUPERCEL  can be used for visualizing larger fragments of the crystal structure.
The program MOLDRAW (run on MS-Windows only - free download from the web site) imports the printed output. It allows visualization of the cell. A number of facilities help in understanding crystal structure (see the tutorial on Structural Manipulation with the MOLDRAW Graphical Package)
The package DLV, developed at Daresbury Laboratory, is also interfaced to the CRYSTAL package, and allows geometry and properties visualization.
The package XCrysDen, developed by A. Kokalj, is also interfaced to the CRYSTAL package, and allows geometry and properties visualization. A number of facilities help in understanding crystal structure.

Properties
The program properties writes data for visualization in fort.25, saved as inpfilename.f25, and in other specific formats for each property.
CRYSPLOT
CRYSPLOT is an online web-oriented tool for plotting properties computed with CRYSTAL. Band structures, density of states, 2D maps, simulated vibrational spectra, and many other properties can be easily visualized through the web-based graphical interface.


The Crgra2006 package
Data in fort.25 (saved as inpfilename.f25) are in a format that can read by the programs of the package Crgra2006.
Crgra2006 allows plotting of bands (keyword BAND), density of states (DOSS), and to draw contour line maps of charge density (ECHG) and electrostatic potential (POTMCLAS).
Three different programs are used to plot the three quantities, band06doss06maps06; each one selects the appropriate data in the file fort.25. They need the data file and a control file, read as standard input (see Crgra2006 User's Manual l).
The scripts band06doss06maps06 adopt the following convention:

commandargumentcontrol filename of the postscript file properties
band06$1[.f25]$1.band$1_band06.ps Band structure
doss06$1[.f25]$1.doss$1_doss06.ps Density of states
maps06$1[.f25]$1.maps$1_maps06.ps Isovalue contour maps (charge, elect. pot.)

When fort.25 is present and not empty, scripts runcry17 and runprop17 execute maps06doss06band06 automatically.
Default control files are supplied for a first test.
See Crgra2006 User's Manual and Appendix F in CRYSTAL17 User's Manual.
Postscript files are generated, with filenames filename_maps06.ps, filename_doss06.ps, filename_band06.ps.In the scripts there is a call to a generic postscript-viewer "gv".  Edit this call or alias it according to the proper application.
Unit of measure and constants
All constants and conversion factors from "NIST reference on constants, units, uncertainty".




Post a Comment

0 Comments