![]() |
|
||||||
| |
|||||||
Q-Chem 2.1 is an ab initio electronic structure program developed by Q-Chem Inc. It is capable of performing first principles calculations on both the ground and excited states of molecules. Q-Chem 2.1 brings together a variety of advanced computational methods and tools in an integrated ab initio software package. Q-Chem 2.1 greatly expands the features and capabilities over previous versions of Q-Chem, including a number of methods that are not available in any other package.
Q-Chem SetupThe Q-Chem executables are located in /usr/local/qchem-2.1.0.3. These executables are built with the MPICH and the Portland Group Compilers.The current executable is designed to run fairly efficiently on Fast Ethernet or Gigabit Ethernet via standard message passing. However, myrinet capable executables will be made available upon request. Q-Chem requires four shell environment variables in order to run calculations:
Submitting batch Q-Chem jobsFor basic information about setting up an Q-Chem jobs, see the Q-Chem manual (PDF). Also see Batch Queuing System in the Biowulf user guide, especially the section on Running MPICH Jobs under Batch.It is usually convenient to put the QChemm environment variable setup into the .tcshrc or .bashrc file, or alternatively, into a separate file that is sourced in the batch script. For example,
-----------------------------
#!/bin/csh
# This file is /home/username/qchem.init
#
setenv QC /usr/local/qchem-2.1.0.3
setenv QCAUX $QC/aux
setenv QCSCRATCH /scratch
if (-e ${QC}/bin/qchem.setup) source ${QC}/bin/qchem.setup
unset noclobber
-----------------------------
This file is sourced in the batch scripts below to set up the QChem environment variables.
Sample script for a Serial Q-Chem run: ----------------------------- #!/bin/csh # This file is runjob.qchem # #PBS -N Example #PBS -m be #PBS -k oe source /home/username/qchem.init cd $PBS_O_WORKDIR $QC/bin/qchem input.dat output.dat -----------------------------This runs a single processor Q-Chem job and is submitted with the following.... qsub -v np=1 -l nodes=1:p2800 runjob.qchem Sample script for a Parallel Q-Chem run: ------------------------------------------ #!/bin/csh # This file is runjob.qchem # #PBS -N Example #PBS -m be #PBS -k oe setenv PATH /usr/local/mpich/bin:$PATH source /home/username/qchem.init cd $PBS_O_WORKDIR $QC/bin/qchem -np 2 input.dat output.dat ------------------------------------------This runs a parallel Q-Chem job on 2 processors and is submitted with the following.... qsub -v np=2 -l nodes=1:p2800 runjob.qchemFor sample Q-Chem input files please look at the files in /usr/local/qchem-2.1.0.3/samples Both input files and reference (output) files for all sample calculations are provided to help users become acquainted with running the program.
Interactive Q-Chem JobsUsers should submit Q-Chem jobs in batch under most circumstances. For debugging purposes it may be useful to occasionally run a job interactively. Interactive jobs should not be run on the Biowulf login node. Instead, an interactive node should be allocated and the job run on that node. Here is an example:For bash:
For (t)csh...
In the above examples, a simple interactive Q-Chem job has been run with the command qchem infile outfile. There are several other ways to run a QChem job, as below: SERIAL Q-CHEM: The qchem shell script can be used in either of the following ways:
qchem infile outfile
qchem infile outfile savename
qchem -save infile outfile savename
PARALLEL Q-CHEM:
Running the parallel version of Q-Chem interactively is the almost the same
as running the serial version, except that the path should include MPICH, and
an additional argument -np n
must be given that specifies the number of processors to use.
To set the path, use
setenv PATH /usr/local/mpich/bin:$PATH (tcsh)
or
PATH=/usr/local/mpich/bin:$PATH; export PATH (bash)
The qchem shell script can be used in either of the following ways:
qchem -np n infile outfile
qchem -np n infile outfile savename
qchem -save -np n infile outfile savename
where n is the number of processors to use. If the np switch is not given
Q-Chem will default to running locally on a single processor.
Documentation
|
This document is
available as http://biowulf.nih.gov/apps/q-chem.html | ||||||