
6 Input Descriptions

VB2000 is designed to balance the flexibility of controls and the
convenience of usability. Most of the controls and options needed are
automated as defaults, which in most cases work well. This automation
reduces the input to a minimum. On the other hand, many controls can be
customized and will overwrite the defaults with explicit input, thus
providing the maximum flexibility. One should also understand that VB2000
is not designed as a black box. Input backed by chemical knowledge is
essential to obtain insights into interesting chemical systems. VB2000 is
designed to provide convenient controls to convert sophisticated theory
into practice so as to test, verify and refine theoretical ideas about the
nature of chemical bonds. This chapter illustrates how to specify
different kinds of calculations in the input files. 


6.1 General considerations
           
The controls in the program are divided into three Levels, as follows. 

	Level 1: Defaults. 

When controls are not set explicitly, the defaults take effects
automatically, being preset according the the type of calculation. 

	Level 2: Global controls. 

Most of the default settings can be overwritten by providing explicit
inputs. There are two kinds of the global controls: (1) controls that
concern the optimization of the total wave functions (including the number
of subgroups, number of macro iterations, etc.); (2) controls that relate
to a specific method. All groups treated by the same method can be dealt
with using the same method-specific global controls. A global control can
be either a key word  or a dollar '$' flag string. 

	Level 3: Controls for individual groups. 

The optimization of the group wave function of any specific group can be
controlled directly by a level 3 control. The general expression of a
level 3 control is as follows:

	$##CONTROL-NAME
	CONTROL-CONTENT

The control consists of two parts, i.e. the control flag and the
control-content. The control flag always starts with a dollar ('$') sign,
followed by a two-digit number and the name of the control (no space in
between). We use upper-case letters for all control names. The two digit
number (here represented by ##) is the number of the group that the
control is applied to. The number starts from 01 up to 99.  In most common
cases, the first group is a Hartree-Fock group, and the second one a VB
group.  The control content can be either empty or a multiple line input. 

 
6.2 Basic controls and the input of a molecule

The input for a calculation starts with ‘#!’ (in order to distinguish it
from ‘#’ used in the  Gaussian package) and followed by basic controls and
molecule specification as shown below: 

#! METHOD/BASIS_SET [OPTIONS] 
	[Blank] 
Title or comments (can be multiple lines)
	[Blank] 
Charge, Multiplicity 
Atomic#1, X1, Y1, Z1 
Atomic#2, X2, Y2, Z2 
…… 
	[Blank]
[Other controls]


The first input can be continued and terminated by a blank line. Multiple
lines of comments can be inserted before providing the numbers of charge
and multiplicity.  The  comments are also terminated with a blank line.
For each atom, the atomic number and its Cartesian coordinates should be
provided. All these numbers can be given in free format. The atom input is
also terminated by a blank line. After the atomic input, additional
controls can be provided in the input. All these controls are described in
the /following sections.

6.2.1 Method

In the above, METHOD can be any of the key words explained below. 

	HF
If the METHOD is set to HF, then Hartree-Fock method will be used for the
whole molecule. This is essentially a regular molecular orbital
calculation.  

	VB(m)	
VB method will be used for a group of m electrons. By default, only one VB
structure will be included in the calculation. One can explicitly specify
multiple VB structures by using an additional control flag $##VBSTR (see
section 6.4.3)

	SC(m) 
Spin-Coupled  method is used for a set of m electrons in m orbitals. All
linear independent spin-configuration of m electrons in m orbitals are
included in an automatic way. Therefore, there is no essential difference
between SC(m) and VB(m) with multiple VB structures. SC(m) provides a
convenient shortcut for a special multiple-VB structure calculation that a
user don't have to write all linear independent spin configurations
explicitly. The keyword SCVB(m) can also be used. SC is limited to 12
electrons. It seems that the changing of array bounds to have more
structures is a long way short of what is needed. SC(13) and SC(14) have
the same number of structures but the time and resources to complete that
calculation makes it totally unattainable at present.

	SC(m,n)
We can ask ourselves: what would be the most natural way to extend
Spin-Coupled method to systems where the number of electrons is not equal
to the number of orbitals? In VB2000, we define it as the all spin-coupled
states from all possible electron-orbital configurations which have the
maximum number of occupied orbitals. For instance, in the case of SC(m,m),
there only one such a configuration, that is all orbitals are occupied
with one electron on each, and all spin-coupled states are from the
spin-coupling schemes from this configuration. Thus SC(m,m) = SC(m). An
essential advantage of SC method is that the wave function and optimized
orbitals are independent of the way to choose the Lewis structures of the
SC space, therefore, the results is not biased to any personal preference.
As with SC(m), the largest value of m is 12 but SC(12,11) takes longer to
run that SC(12,12),

One can make special use of SC(m,n) when m=2n, i.e. all orbitals are
double-occupied. In this case, SC option turns into non-orthogonal
Hartree-Fock method. In VB2000, we use this trick to do non-orthogonal
localized Hartree-Fock molecular orbital calculations. Even though for
regular VB calculation the maximum number of electrons in each VB group is
currently limited to 16, the non-orthogonal Hartree-Fock MO calculations
does not have such a limitation. The limitation for the number of
non-orthognal molecular orbitals comes from the limit of total number of
basis functions which can be handled by the program and the computational
time. It should be noted that the non orthogonal Hartree-Fock MO
computation is much more expensive than the regular Hartree-Fock method. 

	CASVB(m,n)  
Complete Active Space VB (CASVB) is used for a set of m electrons in n
orbitals. It is mathematically equal to a CASSCF(m,n) method, i.e. the
wave functions produced by the two methods have the same energy and
properties. The CASVB method has some unique advantages that the orbitals
in CASVB wave functions are nonorthogonal and can be maximally localized. 

	ION(m,n) or SEN(m,n)
This provides a level of calculation between SC and CASVB based on the
seniority number (SEN) or the equivalent ionicity (ION). SC has structures
of maximum possible seniority number and the lowest possible ionicity.
CASVB has structures of all possible seniority number or ionicity. It
requires $xxIONICITY or $xxSENIORITY to define the range of either
included, See GMS/VB2000 test 42.

	GPF(ng) 
This an old way to specify a multi-group VB calculation, where ng is the
number of electron groups including the Hartree-Fock core. Additional
controls are required for this method. This notation will become obsolete
in the future release. The most convenient way to specify a multiple-group
VB calculation is by the dot notation which is described in the next
section. 

	Dot (•) notation
The dot notation has been introduced since version 1.8 for specifying a
multi-group VB calculation. This notation is a more convenient and
intuitive than the GPF notation.  For example, VB(8)·CASVB(6,6)·VB(8)
specify a 3 VB group calculation. One should note that if the molecule is
a open-shell system, then the last VB group must include the open-shell
electrons. Only one VB group can have unpaired spins. 

6.2.2 Use of libraries from VBOLIB directory.

A set of libraries, known as VBOLIBs are included in the VBOLIB directory.
This are used to select the initial guess. See section 6.5. These VBOLIBs
are basis set specific.

               6.2.3 Basis set

a) The stand-alone VB2000.

BASIS_SET is the name of basis set, which can be any one of the following: 

	STO-3G 
STO-4G
STO-6G
D95 (Dunning/Huzinaga full double-zeta) 
MIDIX (Minnesota MIDI! basis set)
3-21G
3-21G* 
 	6-31G 
	6-31G* 
	6-31+G*
	6-31G**
	6-31++G** 
	cc-pVDZ
	AUG-cc-pVDZ
	TZVP 
	GEN (general basis set provided by user with a basis set file)
	GENNG (general minimal basis set provided by user with a basis set file)

The first 15 are built-in basis sets and VBOLIBs are available for all of
them. GEN is a flag for a user defined basis set: when specified, the
program will expect additional input (after the atomic input) as follows. 

	&basis_set_file

where basis_set_file is the file name of the user-defined basis set, which
should be put in the directory BASET. You can also provide the basis set
file with the full path if the file is not in the BASET directory, for
instance,

	&/usr/people/jli/VB20000/GEN/basis_set_file
       
This file should be prepared in the appropriate format (see the format
used for the standard basis set files in BASET). 

GENNG is identical to GEN in all respects except that it is restricted to
minimum basis sets, and it uses the STO-nG VBOLIB, while GEN does not use
any VBOLIB. A program, get_gen_sto6g.f, is available to create STO-6G
basis sets with general STO exponents. This is in the TOOLS directory
below the VB2000 directory in the main release and in $GMSPATH/vb2000/SRC
directory in the GAMESS release. Details of the input is given in comments
at the top of the file.

b) GAMESS/VB2000 version.

This version can use any basis set defined in GAMESS, using the $BASIS
group, the $DATA group  or an external file. However, only basis set
defined in the $BASIS group can use a VBOLIB, with one exception:

	VBOLIBD95 

which can be defined in the $DATA group but “D95” must be correctly given
in the !# command line. The number of VBOLIBs is less than the number in
the stand-alone version, but they are more usefull as extra VBOLIBs can be
created from them on the fly to add polarisation and diffuse functions, as
indicated below.

	VBOLIBSTO-nG 

is used for any STO-nG basis set defined in GAMESS plus the STO-nG* basis
sets that add a single d polarisation function to atoms heavier than Ne.
This VBOLIB can also handle the MINI basis set in GAMESS up to Ne. d and f
polarisation functions using NDFUNC and NFFUNC are allowed.

	VBOLIB3-21G 

is similar but can also be used for the rarely used 6-21G basis set.
3-21G* and 6-21G* have a single d polarisation function on atoms heavier
than Ne.

	VBOLIB6-31G 

can be used for 4-31G, 5-31G and 6-31G and can accommodate up to three d
and one f  polarisation functions and a single diffuse sp set of diffuse
functions on heavy elements and a dingle s diffuse functions on H using
the “++” nomenclature. Thus it can handle at least to
6-31++G(3d2fg,3f2dp).

	VBOLIB6-311G 

is similar to 6-31G but is only used for atoms up to Ne, as GAMESS used
the McLean.Chandler basis sets beyond that.

	VBOLIBCCPVDZ 
	VBOLIBCCPVTZ 
	VBOLIBCCPVQZ 
	VBOLIBCCPV5Z
	VBOLIBAUG-CC-PVDZ 
	VBOLIBAUG-CC-PVTZ 
	VBOLIBAUG-CC-PVQZ 
	VBOLIBAUG-CC-PV5Z

are for the correlation consistent basis sets and their related augmented
friends. They are extended in only one way and that is always when they
are used for 2nd row atoms. Here an extra set of diffuse d orbitals is
added in GAMESS to give the cc-pV(n+d)Z and aug-cc-pV(n+d)Z basis sets.
Note that this is different from the behavior of Gaussian09.

	VBOLIBMIDIX 

can be used for the MIDI basis set defined in Gaussian.

Note that GAMESS always uses a basis set of cartesian functions, even
though the result for spherical harmonics can be obtained in GAMESS using
ISPHER=1 and in VB2000 with the SPHER directive. All VBOLIBs use a
cartesian function basis.

       c) Gaussian09/VB2000 version.

The Gaussian09/VB2000 version can use all basis sets included in Gaussian,
or technically all basis sets defined correctly by the name that is on the
3rd line of the formatted checkpoint file. Some basis set can give “Gen”
there and that can not be used of course.. The VBOLIBs are similar to
those for GAMESS but with an extra feature. Gaussian can use pure
spherical harmonic basis sets or cartesian  basis sets. All VBOLIBs are
defined in terms of  cartesian  basis sets. VBOLIBs for  spherical
harmonic basis sets are created on the fly as required.

	VBOLIBD95 
	VBOLIBMIDIX 

are used direct for these basis sets.

	VBOLIBSTO-nG 
	VBOLIB3-21G 
	VBOLIB6-31G 
	VBOLIB6-311G  - note no 6-311G basis sets are in the stand-alone
version.

are used in the same way and with the same restrictions as in the Gaussian
version. The choice of  cartesian basis sets or  spherical harmonic basis
sets is determined in the usual way in Gaussian09. The polarisation and
diffuse functions to be added are parsed from the basis set name.

	VBOLIBCCPVDZ 
	VBOLIBCCPVTZ 
	VBOLIBCCPVQZ 
	VBOLIBCCPV5Z
	VBOLIBAUG-CC-PVDZ 
	VBOLIBAUG-CC-PVTZ 
	VBOLIBAUG-CC-PVQZ 
	VBOLIBAUG-CC-PV5Z

are for the correlation consistent basis sets and their related augmented
friends. They are not extended in any way in the Gaussian09 version.

	VBOLIBCCPVDZ-5D
	VBOLIBCCPVTZ-5D
	VBOLIBAUGCCPVDZ-5D
 
are for spherical harmonic basis sets, and this list needs to be expanded.

       d) General comments.

In the GAMESS and Gaussian versions the VBOLIBs may not work if used in
situations that have not been tested. Various constraints are imposed in
the code where we are aware that beyond them the VBOLIBs can not be used.
However, we probably have not yet caught all of them. We welcome input
from users to help us extend the use of VBOLIBs to other basis sets
defined in the GAMESS and Gaussian versions and to situations not already
covered.

	$LSTVBOLIB

directive lists the selected VBOLIB.

	$NEWLIB
	XXXXX

selects a VBOLIB different from the basis set in the command line and can
be used
when the basis set is input directly, An example would be XXXXX replaced
by 6-311G, where the input basis set is 6-311G+ or 6-311G++ or even with
more polarization or diffuse functions. The new VBOLIB must be a subset of
the correct VBOLIB for the basis set selected (i.e the n lines of the new
VBOLIB must be the first n lines of the correct VBOLIB. Thus VBOLIB6-31G
can be used for all basis sets that are 6-31G plus any number of
polarization and diffuse functions. 


6.2.4 Options
       
[OPTIONS] are key words that control the overall calculation. 

	PRINTALL 		
With this option, a lot more messages will be printed during the
computation; for example, the initial VB orbitals, Mulliken population of
LMOs and VBSCF iterations

	RESTART 		
This option is originally designed for restarting a computation which is
terminated premature. However, we find a more useful usage of RESTART is
to read VB orbitals from a different calculation as the initial VB
orbitals for a new calculation. A typical scenario of such a usage is
generating the initial VB orbitals for a bond breaking process. In the
dissociation limit, the Hartree-Fock calculation breaks down, and
therefore the LMOs based on Hartree-Fock molecular orbitals becomes less
meaningful. As a consequence, the method for generating initial VB
orbitals from LMOs becomes problematic. The RESTART option can be used to
solve the problem: do a VB calculation of the molecule at the normal
bonding geometry, and then do same type VB calculation at the bond
breaking geometry using the RESTART option. Also see the $RESTARTFILE
control.  A VB restart file of a molecule can be even used for another VB
calculation of the same molecule but with different number of electrons
and geometry. Also see $RESTARTMAPPING for more details. 

	CIONLY 		
This option disable VB orbital optimization during the VBSCF iteration.
With this option, a multi-structure VB calculation becomes essentially a
VBCI. However, this option does not disable VB orbital optimization
completely. The overall wave function optimization involved the in-group
optimization (VBSCF) and rigid rotation for group-group optimization. The
CIONLY option has no effects on the rigid rotation. To disable rigid
rotation, you need use the keyword: NOROT. 

	NOROT
There are situations that one needs to disable the rigid rotation between
groups. The keyword NOROT is designed for this purpose. However, both
CIONLY and NOROT does not disable the optimization of Hartree-Fock
orbitals. To disable the Hartree-Fock orbital optimization, the following
keyword is required. 

	FROZEN 		
Freeze all orbitals in the Hartree-Fock group

	UNITS=BOHR 	
This keyword is required if the unit of the the 3D coordinates is Bohr.
The default unit is Å

	SPDEN 		
This keyword is required for the computation of spin density of open shell
system. For close shell systems, this keyword has no effects. In the
current implementation, the spin density calculation can be significantly
slow down  for VB groups with more than 12 electrons. 

	DIIS			
This option can be used to stabilize the VBSCF iteration based on Direct
Inversion of the Iterative Subspace (DIIS) method. The Newton-Raphson (NR)
method implemented in VB2000 usually has very good performance for orbital
optimization. However, there are cases that the VBSCF iteration becomes
unstable. The DIIS option can stabilize the pure NR iteration. It is quite
useful for BOVB type of calculations where multiple structures are
included and different orbitals sets are used for different structures. We
have also found that the DIIS option helps to maintain symmetry.

	SPHER
This option is used to enforce the use of spherical harmonics basis sets.
GAMESS and the stand-alone VB2000 use cartesian functions for basis sets
internally. Some basis sets, such as cc-pVnZ, are officially defined as
spherical harmonics. To avoid confusion as well as to keep consistency
from one program to another, it is required to stick to the same
definition for these basis sets. GAMESS enforces the use of spherical
harmonics basis set by the option ISPHER=1, but the VB2000 pluggin will
still use cartesian functions, unless SPHER is used in the command line of
the $VB2000 block.   In VB2000, the SPHER keyword is used for the same
purpose. The Gaussian version can use either cartesian functions or
spherical harmonics basis sets, and passes the appropriate integrals to
VB2000. The  SPHER keyword should not be uses in the Gaussian version. The
SPHER keyword can not be used in the GAMESS version if the basis set
contains h or I basis functions. It is unlikely that this will be
implemented as the use of cartesian functions with h or I basis functions
is not recommended as it leads to linear dependencies and a great lose of
efficiency. The Gaussian version with spherical harmonics is recommended
for such basis sets. SPHER can not be combined with the use of BRILLMASK.

	TEST 			
This option is usually used to check the LMOs before doing a complete VB
calculation. With this option, the program does the Hartree-Fock molecular
orbital calculation, orbital localization and then stops. By checking the
order and the characteristics of the LMOs one can decide whether it is
necessary to use more controls or not  to adjust the LMO assignment. TEST
runs can use the various visualization routines, such as $CUBE. The data
produced allows you to visualise the LMOs and thus help in checking them.



6.3 Group function control flags


6.3.1 $GENCTL

This is the main control for group function specification. The input
format is as follows:

$GENCTL 
(MELE(i),i=1,NG) 
(METHOD(i),i=1,NG)

Where NG is the number of electrons groups (including the Hartree-Fock
group). MELE(i) is the number of electrons of group i , and METHOD(i) is
the method for obtaining wave function of group i. The following values of
method are possible: 

1 for HF 
2 for VB (may contain multiple VB structures)
3 for SC
4 for CASVB
5 for IONICITY or SENIORITY 

$GENCTL is usually combined with the key work GPF(n) in the input. If
GPF(n) is specified and the control flag $GENCTL is missing, then the
molecule is treated with (n-1) GVB pairs. Please note that by default, the
first electron group is a Hartree-Fock group. Therefore, if a system is
divided into n groups, only n-1 groups are expected to be treated with VB
methods. If no specification is provided for the n-1 groups, then they are
assumed to be GVB pairs. 


6.3.2 $GRPDIM

This flag specifies the dimension of the subspace for each electron group.
The format of this control is as follows:

	$GRPDIM
	(NDIM(i),i=1,NG)

where NDIM(i) is the dimension of the basis for group i. In most cases,
the default values for all groups will be generated automatically by the
program. For instance, with a (close shell) Hartree-Fock group, the
dimension should be equal to  half the total number of the  electrons in
the Hartree-Fock group. If the explicit input number is different from
that, an assertion error will be detected and the computation will be
aborted. 





6.3.3 $VBGA (or $VBGROUPASSIGNMENT)

Two $ flags are introduced for this option: $VBGROUPASSIGNMENT or  a short
notation as $VBGA. This option provides an intuitive electron group
assignment for valence electrons. The following example shows how the
control is applied.

Example 6.1. VB calculation of H2O with two C-H bonds (file TESTINP/extra/
extra03_h2oVBGA.inp).

#! VB(4)/D95 PRINTALL

TEST H2O

0 1
8   .000000   .000000   .000000
1   .801842   .000000   .555582
1  -.801842   .000000   .555582

 $VBGA
 1-2 => 2
 1-3 => 2

 $02VBORB
 1-2
 1-3

In this example, the $VBGA input has two entries. The first one, 1-2 => 2,
means that the  electrons of the σ bond LMO between atom 1 and 2 are
assigned to (=>) electron group 2 (here group 2 is the VB group). The
second entry means that the σ bond between atom 1 and 3 is assigned to
group 2.  One should note that for such a simple molecule, the $VBGA and
$02VBORB inputs can be omitted, and the LMO groups assignment and VBOs are
generated automatically. The next example shows how to explicitly specify
the group assignment and how to generate VBOs. For multiple bonds, for
instance the triple bond in C2H2, one can assign all the three bonds to
the same electron group with one entry as follows:

Example 6.2. VB calculation of the triple bond in  C2H2 (file TESTINP/
example05_c2h2sp.inp).
 
#! VB(6)/D95

TEST C2H2 TRIPLE BOND (SIGMA+PI)

0 1
6   .000000   .000000   .610009
6   .000000   .000000  -.610009
1   .000000   .000000  1.690006
1   .000000   .000000 -1.690006

 $VBGA
 1#2 => 2
the $VBGA input is equivalent to the following:

$VBGA
1-2(1) => 2
1-2(2) => 2
1-2(3) => 2

The first entry means the first (σ) bond is assigned to group 2. The
second entry means that the second (i.e. the first π bond) is assigned to
group 2. The last entry assigns the third  bond (the second π bond ) to
group 2. 

6.3.4 $LMOGRPMODIFY

The $VBGA (or $VBGROUPASSIGNMENT) control is based on the automatic LMO
classification, which assigns each LMO as a bonding orbital between two
atoms or a lone pair (including the inner core ) orbital on an atom.
However, there are cases where such an automatic LMO assignment does not
work well. For instance in the multi-center bonds and some conjugated
systems, the LMOs are not necessary localized on one or two atoms.
Therefore the $VBGA logic does not apply for such LMOs. To deal with cases
of this kind, a less intuitive but more flexible control has been
implemented in VB2000. This control explicitly assigns each LMO to a
specific electron group. The general control format is as follows:

	$LMOGRPMODIFY
	NLMO
	N1, G1
	N2, G2
	......

Where NLMO is the number of LMOs, followed by NLMO pairs of integers (Ni,
Gi). Ni  is the LMO index, and Gi is the electron group that the Ni-th LMO
belongs to.

	 
6.3.5 $MACROITER

The default maximum number of macro iterations is 12. If this default
number needs to be changed, then $MACROITER flag can be used as follows:

	$MACROITER
	MITER

where MITER is the new number of macro iterations.



6.3.6 $ECONV

The default energy threshold for the total energy of a molecule is 10-6
a.u. This can also be overwritten by this control flag as follows:

	$ECONV
     	n

and the new energy threshold will be 10-n a.u.



6.3.7 $ROTATION

The optimization of a molecule wave function expressed as a generalized
product function involves the optimization of each group function within
its corresponding subspace and the Jacobi rotations between the basis
functions of different groups. By default, only one rotation is performed
for each pair during each macro iteration. However, this can be changed by
using this control flag:

	$ROTATION
	nRot

where nRot is the number of Jacobi rotations for each macro iteration. The
default value is 1. In some cases, by increasing this number (say 2-5),
the macro iteration can be made more stable. However, a large value of
nRot also means a much more expensive computation. 


6.3.8 $NOTROT

There are some cases where we need to disable the Jacobi rotation for
basis functions of two groups, such as the σ and π groups in a conjugated
system. This can be done in the following way:

	$NOTROT
	NR
	NA1,NB1
	NA2,NB2
	.....
Where NR is the number of group pairs to be disabled, and followed by the
NR pairs. The first pair is group NA1 and group NB1, and so on. This
option may make the program more efficient and converge faster. To give an
example, benzene can be divided into two electron groups, the σ-electron
group and the π-electron group. A set of virtual orbitals can be used to
define a third group, containing no electrons. The optimization of the
system wave function involves the inter-group rotations of the subspaces
of all groups. Clearly, however, the rotation between σ and π orbitals
should be avoided for benzene; and this can be achieved by turning off the
inter-group rotation between the σ and π groups. This option is used
whenever a molecule has such kind of symmetry, thus avoiding inter-group
rotations that would break the symmetry. For more details, please check
the example inputs.

6.3.9 $FULLHESS

The Jacobi rotation involves the evaluation of a Hessian matrix, which is
usually an expensive procedure. To improve the efficiency, our experience
shows where only evaluating the block diagonal Hessian matrix elements can
be as good as the full Hessian matrix in most cases. Therefore, by
default, only block diagonal matrix elements are evaluated, and any matrix
elements involving rotations of more than two groups are ignored. However,
there are cases that the full evaluation of Hessian matrix is essential,
especially for systems with unusual bonding, as in chemical reactions. To
enable the full Hessian evaluation, just put the above control flag in the
input.

6.3.10 $DAMPROT

Occasionally, one may see the macro iteration becomes unstable. This may
happen for BOVB type calculations. If the total energy of the wave
function oscillates, then a damping factor for rigid rotation will most
likely solve the problem. The damping factor d should be in the range (0 <
d < 1.0). A small factor means a strong damping effect, and can also
significantly slow down convergence. A good starting point is 0.5. For
instance, you can add the following control parameter in the input:

	$DAMPROT
	0.5


6.4 VB Orbital optimization controls

6.4.1 $VBSCF

This is a global SCF control for VB groups. The general formation of the
input is as follows:

	$VBSCF 
	EPS, MaxIter

Where EPS is the threshold for the maximum change of orbital coefficients
of VB orbitals, and MaxIter is the maximum number of VBSCF iterations.
This control applies to all VB groups, unless the specific values are
specified for a particular VB group. The default values of EPS and MaxIter
are 0.0001 and 15, respectively. Also see the next control for a specific
VB group.

6.4.2 $##VBSCF

This control is very similar to the above control, but it applies only to
a specific group as denoted by the number. The general format of this
control is:

	$##VBSCF
	EPS, MaxIter

Where ## is a two digit number of a group index. The default values are
specified by $VBSCF. 



6.4.3 $##VBSTR

This control is used for VB structure specification of a group. The
general format of this control is: 

	$##VBSTR 
	NSTR 
	N1 1 N1 2 ...... N1 N
     	N2 1 N2 2 ...... N2 N
 	......
	Ni 1 Ni 2 ...... Ni  N
	...... 
	NNSTR 1 NNSTR 2 ...... NNSTR N

NSTR is the number of VB structures for a VB group, N is the number of
electrons in this VB group. Each line specifies a VB structure, Each
structure is specified by a set of orbital indexes. In VB2000, the
following convention is used for the pairing pattern of each VB structure:
If the total spin of the electrons of the current group is S, and the
number of electrons is N, then there are (N-2S)/2 pairs, and 2S unpaired
electrons. The pairing pattern of the first structure can be interpreted
in the following way:

	N1 1 – N1 2
	N1 3 – N1 4
	..........
	N1 N-2S-1 – N1 N-2S
	N1 N-2S+1
	N1 N-2S+2
	.........
	N1 N

Note: The indexes of orbitals in the symbolic VB structure specification
refer to the index of the orbitals of the group. For instance, if an index
is 1, it refers to the first orbital in this group. Here the double sharp
(##) stands for a two digit number. For instance, $02VBSTR stands for the
VB structure of group 2. Note: the program expects a two-digit number even
it is less than 10. 

Let's consider an example. The 5 VB structures of the pi system of benzene
(two Kekule structures and three Dewar structures) can be given as follows:

  $02VBSTR
  5
  1 2 3 4 5 6
  2 3 4 5 6 1
  1 4 2 3 5 6
  2 5 3 4 1 6
  3 6 1 2 4 5

The first two are Kekule structures, and the last 3 are Dewar structures. 


6.4.4 $HESSCONST

This control is used to increase the stability of VB orbital optimization
by adding a constant to Hessian diagonal elements. The formation of this
input is:

	$HESSCONST 
	D

where D is a constant, suggested value is 0.1 A larger value can make the
iteration more stable, but also slow down the convergence. For difficult
cases,  one can try is to divide the computation into multiple restart
runs, and watch carefully the convergence behavior by using PRINTALL
option. Once the convergence becomes stable but slow, one can reduce the
constant D, or even set it to zero to speed up the convergence.


6.4.5 $BRILLMASK

This control is used for VB orbital optimization under strict localization
constraints. This control specify a set of orbital pairs that are not
allowed to be mixed during orbital optimization. Generally, only orbitals
on the same atom are allowed to be mixed during orbital optimization. The
resulting VB orbitals are strictly localized. To make this work, the
initial VB orbitals must be strictly localized. One can  start from a set
of AOs as initial VB orbitals, and then each VB orbital is optimized
within the basis functions of the atom what the initial VBO belongs to.
The general format of this control is as follows:

	$BRILLMASK 
	M
	NA1, NB1
 	NA2, NB2
 	......
	NAM, NBM
Where M  is the number of orbital pairs that the orbital mixing between
the two is be avoided. For instance, orbital NAi does  not have any
contribution from orbital NBi during orbital optimization. The orbitals
NAi have to be all the orbitals specified in the definition of the VB
structures using $02VBSTR for example.

An extension to $BRILLMASK makes this process automatic for the case where
all the VB orbitals are to be localized on a single atom. If the directive
is followed by a blank line, or M=0, the initial orbitals must be defined
using the $AOGROUP directive and the orbitals used in defining the
structures must be all at the beginning of the list of AOs. Each of these
will be mixed only with AOs centred on the same atom. No further data is
required as the atoms the orbitals are centered on can be obtained from
the $AOGROUP data.

This automatic case can also be used without using the  $AOGROUP group,
but the atoms the orbitals are centered on must be obtained elsewhere.
Alternatives to the exam-vb23.log $AOGROUP group are to get the orbitals
from a RESTART or from the $##VBORB group using AOs. In the latter case,
care must be taken to define all orbitals, but it does give the
opportunity to define a better initial guess than the single basis
functions of $AOGROUP allow. In these case, data has to be provided that
indicates the atom that each VBO is to be centered on. The date is:

	$BRILLMASK 
	-NP
	NA1, NA2 …     (NP values)

The negative number in the line after the directive distinguishes this
case from the original case. NP is the total number of VBOs defined from
the RESTART or in the $##VBORB group. This is followed by NP integers
being the atom number that each VBO is localized on. Care must be taken in
using the $##VBORB group, to ensure that orbitals used there are
compatible with this data.

The BRILLMASK directive can not be combined with SPHER.


6.4.6 $##LENHANCE

This is a localization enhancement control. For some applications, the
strict localization is a too strong constraint imposed on the orbital
optimization and can lead to much higher energy of wave functions than
that from free optimization. It is also technically cumbersome to set up
the calculation and can only be applied in very limited systems. Therefore
a more flexible and general way to obtain localization enhanced VB
orbitals is needed. In VB2000 2.0, a new algorithm is implemented.  In
this new algorithm, a penalty function of delocalization of a set of VB
orbitals is added to the total energy of the VB wavefunction. The
delocalization of a VB orbital is defined as the Mulliken population of
the VB orbital on atoms which are  not in the localization target of the
orbital. The VB wavefunction is optimzed by minimize the following
objective function:

	P = E(VB) + W*(sum from i=1 to N P_i)

where P_i is the delocalization penalty of VB orbital \phi_i defined as
follows:

	P_i = < \phi_i | S_x | \phi_i > / < \phi_i | S | \phi_i > 
 
S is the overlap matrix of basis functions, \phi_i is the VB orbital
localized on atom X_i (or a set of atoms), S_x and is the delocalization
 overlap matrix defined as follows:

	[S_x]_kl = S_kl (if k or l not in X_i, otherwise 0)
	
i.e. the delocalization overlap matrix   is from the original overlap
matrix  by setting the rows and columns of basis functions of  to zero.
Such a penalty can be scaled by a weighting parameter. The general format
of this control is as follows:

$##LENHANCE
M
VBO1, N1 , A1 ,A,2, ... AN1
VBO2, N2 , B1, B2, .... BN2
.......

where M is the number of VBOs to be localized. By default, the
delocalization penalty weight W is set to 0.1, and can be modified by
$DPWEIGHT input (see the next section). The following lines specify how
each VBO will be localized. For instance, for VBO1,  it is localized on N1
atoms for the atom list A1 ,A,2, ... AN1. There are M lines to specify the
localization of M orbitals. 

This control for obtaining more localized VB orbitals has the following
advantages. 
    • It is very general. It does not require any special orientation of a
molecule and pre-classification of atomic basis functions. 
    • It is very flexible. The penalty weight control how much
localization is needed. By setting a very large weight, the optimized VB
orbitals are close to the strictly localization. We recommend 0.1 as a
starting point. It is also recommended that  the same weight is used for a
comparison study of a number of molecules. One can also use the total
energy change and the delocalization coefficients to make good judgment
for a reasonable weight. 
    • The input is intuitive and relatively easy to set up. One only needs
to specify which atoms a VB orbital should be localized on. Such a control
does not need the details of the basis set used in the calculation. 
    • By increasing the delocalization penalty weight to an extremely
large value, say 106, one can get strictly localized VB orbitals. See the
example input: TESTINP/h2bovb.inp. However, one should note that it  is
possible to get strictly localized VB orbitals for only one VB group,
unless the multiple VB groups are separated by molecule symmetry (such as
σ-π systems). Due to strong orthogonality constraints, it is generally
impossible to keep orthogonality between groups and strict localization of
orbitals at the same time. 


6.4.7 $DPWEIGHT

This controls the delocalization penalty weight for localization enhanced
VB orbital optimization. The format is as follows: 

	$DPWEIGHT 
	W

where W is the delocalization penalty weight defined in the previous
section. Without this input, the default value is 0.1 for localization
enhancement option.

 6.4.8 $CMAXCUT

This controls the Hessian matrix evaluation of VBSCF iterations. If the
maximum coefficient change is less than the threshold specified by
$CMAXCUT, then the Hessian matrix of previous iteration is used instead of
recomputed. This is especially important for VB groups with more than 10
electrons. However, if the region described by the VB wave function is
non-classical (i.e. the Lewis structures are non-classical), one should
use a  more accurate Hessian by using a smaller threshold. To force full
Hessian matrix evaluation for each iteration, one can set the threshold as
0.0. The default value is 0.025.


6.4.9 $NOLOCVBO

By default, the maximum VBO localization will be performed at the last
macro iteration of a CASVB calculation. This is designed to eliminate the
intrinsic invariance of VBOs of CASVB space.  In most cases, the CASVB
calculation leads to well localized AO-like VBOs even without maximum
localization. However, one can turn off the maximum localization of CASVB
by adding the above control flag in the input. No extra data is needed for
this control. 


6.5 Initial VB orbital generation

6.5.1 $##VBORB

This control flag provides a very flexible and intuitive way to specify a
set of initial VB orbitals for a specific group. The ##  is a two digit
number of the group index. The general format of this control is as
follows:

	$##VBORB
	VBO-Specification-1
	VBO-Specification-2
	......

Each VBO specification line specifies one or more VB orbitals, several
lines can be used and the control is ended with a blank line. Each VBO
specification can take one of the following forms:

	a) NA->NB
	b) NA-NB
	c) NA:(n)
	d) NA^(n)
	e) NA=NB
	f) NA#NB
	g) Expression

Where NA and NB are atom indexes. NA->NB stands for a sigma orbital on
atom NA pointing to atom NB. NA-NB stands for two orbitals forming a
single bond between atom NA and NB. NA:(n) stands for the n-th lone pair
on atom NA. NA^(n) stands for the n-th π orbital on atom NA. NA=NB and
NA#NB stands for 4 and 6 orbitals for double and triple bonds,
respectively. For more details, please go to Chapter 7. The last case
stands for general expression for initial VB orbitals. See more details in
the following section.

6.5.2 General expression

The most general way to specify an initial VB orbital is to express it in
a  linear combination of atomic orbitals. VB2000 version 2.1 provides a
simple and intuitive way for this purpose. The general expression of an
orbital is shown as follows:

	$##VBORB
	c1 AO n1 + c2 AO n2  + ...  ci AO ni + ...
	......
where ci is a coefficient for atomic orbital ni , denoted as AO ni.
Generally speaking, there is no limitation for the number of terms in the
expression, however, in practice, all expression must fit into one line
for each VB orbital. A good example can be found in
TESTINP/StressTest/h2cc6.inp:

 $01VBORB
 0.05 AO 1 +0.1 AO 2  +0.22 AO 3  +0.40 AO 4  +0.30 AO 5 +0.07 AO 18
 0.05 AO 76 +0.1 AO 77 +0.22 AO 78 +0.40 AO 79 +0.30 AO 80 -0.07 AO 93
 ....

The order of the terms is not important. A possible scenario of using such
expressions is that one already has a good initial guess of VB orbitals
using whatever methods, and want to use this guess as an input. Since the
expression is limited one orbital per line, you have to truncate the
expression to only a few terms with the largest coefficients. 

6.5.3 $##PIVBO

Even though the control flag $##VBORB can be used to specify a set of π
orbitals, a more convenient way to specify a set of π orbitals is the
PIVBO flag. The general format is as follows:

	$##PIVBO
	nOrbitals
	n1, n2, n3 ....

where ## stands for a two digit number of the group index, nOrbitals is
the number of π orbitals, and n1,n2.. are the atom indexes on which the π
orbitals are located. It is assumed that the atoms specified in this
control form a conjugated plane (or approximately plane), and the orbital
orientation of each π orbital  is perpendicular to the plane of the atom
and its connected conjugate atoms. 

6.5.4 $LMODISTORTION (or $DISCON)

This control specifies the distortion constant for splitting bonding LMOs.
The general input format is as follows:

	$LMODISTORTION
	SplitPara

Here SplitPara a splitting parameter (range 1.0 – 0.0, and the default
value 1.0 gives the maximum split). Assume a bonding LMO localized between
atom A and B, can be expressed as following

	LMO(A-B) = (CA1 CA2 ... CB1 CB2 ...)
	
Where CA1, CA2 ... are the orbital coefficients on atom A and CB1, CB2 ...
on atom B. With the default value, the LMO can be split into two VBOs, one
is localized on atom A and the other on atom B as follows:

	VBO(A->B) = (CA1 CA2 ... 0 0 ...)

and 

	VBO(B->A) = (0 0 ... CBA1 CBA2 ...)

Experiences show that the default value works fine in almost all cases. A
small value of the splitting parameter means that the two generated VB
orbitals are very close. A zero value means two VB orbitals are identical,
and it may cause the VBSCF unstable.

6.5.5 $WRITEGUESS

This control specifies a file name for writing an initial guess of the
orbitals into a file. The input format is:

	$WRITEGUESS 
	FileName

where FileName is the file name for the generated initial guess of VB
orbitals. The file has the following format: 

	Nbasis, Norbitals
	((orbital(i,j),i=1,Nbasis), j=1,Norbitals)

where the first two integers are the number of basis functions and the
number of orbitals, respectively, orbital(i,j) are AO coefficients of
orbitals. The file is in free text format, and can be manually edited. The
file can be read for the initial guess by VB2000. This can be useful in
that one can modify some of the VBOs manually, and restart the computation
by reading the file for the initial orbitals by using another control flag
$READGUESS.  Note: all occupied orbitals (including both HF orbitals and
VB orbitals)  are exported.

6.5.6 $READGUESS

This control can be considered as a complementary of $WRITEGUESS.  It
controls the initial guess to be created from a disk file generated by a
previous computation with control $WRITEGUESS.  Input format: 

	$READGUESS 
	FileName

Here FileName is the file name of the initial guess of the orbitals. The
file is a free format text file. Even though the automatically generated
initial orbitals are normally quite robust, there are some cases where
user-defined orbitals may be required. This option provides a convenient
way of loading the initial guess, which may have been generated in an
independent program, or even created manually. 

A similar directive $READVEC reads the initial guess from a GAMESS $VEC 

For VB2000 stand-alone version, the syntax is:

	$READGUESS 
	FileName
	NORB
 
It reads from file specified in FILEGUESS, with NORB orbitals. For GAMESS
version the syntax is:

	$READGUESS 

and it reads $VEC group in the input file.

6.5.7 $RESTARTFILE

Each VB2000 calculation will generate a binary restart file, which stores
all necessary information for a restart calculation. The file contains the
1D density matrix for each electron group and the VB orbitals. This can be
useful in case of a not fully converged computation to start a new
computation for the same molecule based on a previous computation. If the
the key word “RESTART” is specified in the input, then the program is
expecting a restart file, and by default this restart file is the input
file name with extension .V84. To restart the computation from a different
file, one needs the control flag to specify the restart file in the
following way:

	$RESTARTFILE
	RestartFileName

Please note that the restart file can be used as a way to provide initial
VB orbitals for a different calculation of the same molecule but with a
different geometry and even different electrons and methods. 

6.5.8 $RESTARTMAPPING

The restart file not only allows a user to restart a computation with the
same electron group partitioning, Version 1.8 also allows a restart of a
computation with different electron group partitioning. To make this to
work, another control, which tells how to correlate the electron group
partitioning of a previous computation and the current one, is needed. The
control is $RESTARTMAPPING.  Two or more VB groups in a previous
calculation can be combined into one VB group in the second calculation,
and the LMOs in a Hartree-Fock group can be re-assigned to a VB group in
the second calculation. The general format is as following:

	$RESTARTMAPPING
	NHFG(i),(i=1.... NHFX)
	NGP(j),(j=1 .... NGPX)

where NHFX is the number of HF orbitals of previous calculation, and NGPX
is the number of groups of previous calculation. NHFG(i) is the group
assignment of the i-th HF orbital of previous calculation, and NGP(J) is
the group assignment of the j-th group of the previous calculation. Please
note that if NGP(1) is Hartree-Fock group, then all of these orbital
assignments are controlled by NHFG(I). 

This can be explained by a two-step calculation on ClO2. The first step is
a GPF(3) calculation, with one Hartree-Fock group and two VB groups:


Example 6.3. Group function description of σ-π system of ClO2 (file 
TESTINP/extra/extra04_ClO2.inp):

#! GPF(3)/D95 PRINTALL

TEST ClO2

0 2
17  .000000   .000000   .37
8   .0       1.260000  -.39
8   .0      -1.260000  -.39

  $GENCTL
  24,4,5
  1, 2,4

  $GRPDIM
  12,4,3

  $LMOGRPMODIFY
  17
  1,1
  2,1
  3,1
  4,1
  5,1
  6,1
  7,1
  8,1
  9,1
  10,1
  11,3
  12,1
  13,1
  14,3
  15,3
  16,2
  17,2

  $03VBORB
  1:(2)
  2:(3)
  3:(3)

  $02VBORB
  1->2
  2->1
  1->3
  3->1


Group 2 has 4 electrons in 4 VB orbitals, corresponding to the two Cl-O
bonds. Group 3 has 5 electrons in 3 VBOs. Each O has three LPs. The first
LP on O is opposite to the Cl-O bond, the second LP is perpendicular to
the Cl-O bond and in the O-Cl-O plane, and the third LP is perpendicular
to the O-Cl-O plane (also see the rules in Chapter 7). For group 3, the
CASVB method (method No. 4) is used in order to keep the localization of
VBOs as tight as possible. It is usually more efficient and more stable to
divide a system into a number of subsystems. 

In the next step, we want to perform a VB calculation by combining groups
2 and 3 of the previous calculation into one VB group with two more LPs
from the two oxygen atoms. To do this, one needs to specify explicitly how
to map the VB groups and LMOs of the  previous calculation into the groups
of a new calculation. This can be controlled by  $RESTARTMAPPING:

Example 6.4.  Restart calculation for σ-π system of  ClO2 (file TESTINP/
extra/extra05_ClO2rst.inp):


#! VB(13)/D95 RESTART CIONLY PRINTALL

TEST ClO2

0 2
17  .000000   .000000   .37
8   .0       1.260000  -.39
8   .0      -1.260000  -.39


  $GENCTL
  20,13
  1, 2

  $GRPDIM
  10,9

  $02VBSTR
  9
  1 1 2 2 3 4 5 6 8 8 9 9 7
  1 1 2 2 3 4 5 6 7 7 8 8 9
  1 1 2 2 3 4 5 6 7 7 9 9 8
  1 1 2 6 3 4 5 5 8 8 9 9 7
  2 2 1 4 5 6 3 3 8 8 9 9 7
  1 1 2 6 3 4 5 5 7 7 8 8 9
  2 2 1 4 5 6 3 3 7 7 9 9 8
  1 4 2 6 3 3 5 5 8 8 9 9 7
  1 2 4 6 3 3 5 5 8 8 9 9 7

  $RESTARTMAPPING
  1,1,1,1,1,1,1,1,1,1,2,2
  1,2,2

  $MACROITERATION
  1


The first line specifies the new group assignment of the 12 LMOs of the
Hartree-Fock group of the previous calculation. The first 10 still belong
to group 1 (i.e. the H-F group), and the last two are assigned to group 2
(i.e. the VB group). The second line is the group-wise assignment. Thus
group 1 of the previous calculation is still assigned to the new group 1
(modified by the first line specification), and groups 2 and 3 are
combined into the new group 2. A question is: how can we know that the
orbital 11 and 12 of the first line are the ones we want to included in
the VB group ( the second group)?  The orbitals 11 and 12 in the final
printout of the previous calculation are identified to be the second LPs
of the two oxygens by comparing the similarity of the starting LPs and the
resulting LPs. 


6.5.9 $AOGROUP

Even though the optimal system wave function can be obtained from a
reasonably good  initial guess, there are cases where a classification of
atomic orbitals can be helpful. A typical situation is the σ-π separation
in a conjugated system. In such a case, the system can be divided into a σ
group and a π group, and one may wish to avoid σ-π mixing during the
optimization. To achieve this goal, a control is used to assign atomic
orbitals into different groups, and group functions are then optimized
within their corresponding subspaces. The input format is as follows:

	$AOGROUP
	NAO
	NA1, NA2, ...... NANAO
	GA1, GA2, ...... GANAO

where NAO is the number of atomic orbitals to be classified. The next line
is the atomic orbital indexes, and following the atomic indexes are the
group indexes GA of their corresponding atomic orbitals.  With this
control, the pure atomic orbitals are used as the initial orbitals for the
group wave function.



6.6 Control for a chemical reaction
           

6.6.1 	$REACTION

This control is used to specify the energy profile calculation along a
chemical reaction path. It is assumed that the reaction path has been
obtained, or a reasonable guess has been made. The general input format is
shown as follows:

	$REACTION 
	IPOINT, NGEOM, NATOMS
	GEOM1 
	atomic#1 	x11	y11	z11 
	atomic#2 	x12	y12	z12 
	...... 
	atomic#n 	x1n 	y1n 	z1n 
	GEOM2 
	atomic#1 	x21 	y21 	z21 
	atomic#2 	x22 	y22 	z22 
	..... 
	atomic#n 	x2n 	y2n 	z2n 
	.....

where NGEOM is the number of geometries of the reacting system along the
reaction path, and NATOMS is the number of atoms in the reacting system.
The atomic numbers are the nuclear numbers of atoms, x, y and z are the
coordinates of atoms. IPOINT is the number of geometric interpolation
points between each two consecutive structures along the reaction path. In
a typical calculation, three geometries are used, include the geometries
of reactants, the transition state, and the products.

The directive $XYZREACTION creates a single file jobname-full,xyz of the
coordinates at each point. The coordinates are those selected for the run
or in GAMESS specifically in the VB2000 command line with UNITS-BOHR to
specify the coordinates for the defined points. See $XYZFILE to give
separate files for each point.


6.7 Advanced controls

6.7.1 	$##ROOT

The number of the CI root for an excited state. In most cases, the ground
state is calculated, thus this input can be omitted.  The general format
of this control is:

	$##ROOT 
	NROOT

Where ## stands for the two digit number of an electron group,  NROOT is
the number of the CI root for an excited state, in ascending order. For
instance, if NROOT is 2, the first excited state of group ## will be
optimized. This is only meaningful when the electron group is described
with multiple structure VB wave function (for instance, a CASVB wave
function). 

This method only works well for the case where the excited state and the
group state have different symmetry (i.e. symmetry vs. anti-symmetry) so
that the excited state and the group state are always orthogonal,
otherwise, the excited state may collapse into the ground state during the
optimization. 

6.7.2 	$##STRSYMM

This control specifies the symmetry constraints on VB structure
coefficients. The general format of the control is:

	$##SYMSYMM
	NP
	IA1, F1, IB1
	IA2, F2, IB2
	.........

where NP is the number of constraints, followed by the NP entries of the
constraint specification. Each line specifies a symmetry related equality
constraint as following:

	IAi		Index of structure coefficient
	Fi		The symmetry factor, which can be either 1 or -1.
	IBi		Index of structure coefficient symmetrically
related to IA
Assume the structure coefficients are denoted as CSTR(i), where i is the
index of the structure, then the constraint is

	CSTR(IA_i) = F_i * CSTR(IB_i)

	

6.7.3 	$MEMORY

This control is used to specify the size of dynamically allocated memory
for the calculation. Following this $ flag is the memory size in
double-precision. For instance,

	$MEMORY
	10000000

The control will allow the program to allocate 10 MW memory during the
computation. This is very necessary for the integral transformation of
large basis sets where a large memory will speed up the transformation,
otherwise the program will switch to the disk file mode for the integral
transformation, and this will significantly increase the elapsed time of
the computation. One can tell from the output  file of a computation if
the integral transformation is in the disk mode or not. If the disk mode
is used, the output file also tells how much more memory is needed for the
in-core integral transformation. The default size of the scratch memory is
6.5MW 

In the GAMESS-VB2000 version, the vb2000 code checks the unused memory
from that set in GAMESS. It then uses either that or the value specified
by the $MEMORY flag, which ever is largest. Thus if more memory is
required, this can be done by increasing the value set in the GAMESS
$SYSTEM block, or that specified by $MEMORY.

6.7.4 	$VBOLIBGEN

This control is used for generating a VBO library for a new basis set;
therefore, it may require a number of trial and error attempts. The
general strategy of building a VBO library is to choose a set of simple
molecules containing different types of bonds and atoms, and perform
simple VB calculations which do not rely on a VBO library, and then store
the VB orbitals from the calculation. The general format of the control
is:

	$VBOLIBGEN
	VBO-NAME
	NA NB
	NVBO
	VX VY VZ

where VBO-NAME is a string for the VBO name, and NA and NB are the two
atoms defining the VBO orientation. The VBO is located on atom NA and
pointing to atom NB. NVBO is the orbital index of the VBO in the output
from the VB calculation. For lone pairs or π VBOs, NB is zero, and the
orientation of the VBO is defined by a vector with components (VX, VY and
VZ). Usually case, one does not know the VBO index before the calculation.
Therefore, for creating a new VBO record, one has to do two calculations.
Once the first calculation is done, one needs to inspect the VBOs in the
final output, and find out the VBO index, then add the $VBOLIBGEN control
with the correct VBO index. If NB is not zero, the VBO orientation is
defined by the vector from atom NA atom NB, and the vector line is not
required. Multiple VBO records can be created under this control. One can
repeat the above inputs for each VBO record without any lines in between
and the input ends with a blank line. 

The VBO-label consists of two parts: a prefix and an extension. The search
for a VBO in a library file is by the prefix, and the same VBOs for
different basis sets are stored in different VBO library files. Each VBO
library file is a collection of VBOs of the same basis set. Currently, the
following VBO-Label prefixes are supported:

	σ Orbitals

$SIGMA-H-
$SIGMA-LI
$SIGMA-BE
$SIGMA-B-
$SIGMA-N-
$SIGMA-O-
$SIGMA-F-
$SIGMA-NA
$SIGMA-MG
$SIGMA-AL
$SIGMA-SI
$SIGMA-P-
$SIGMA-S-
$SIGMA-CL
$SIGMA-BR 
$SIGMA-I-


	π Orbitals
	
$PI-H-IN-HH
$PI-LI-IN-LIH
$PI-BE-IN-H2BE
$PI-B-IN-BH3
$PI-C-IN-C2H4
$PI-N-IN-CH2NH
$PI-O-IN-CH2O
$PI-F-IN-HF
$PI-NA-IN-NAH
$PI-MG-IN-MGH2
$PI-AL-IN-ALH3
$PI-SI-IN-SIH3
$PI-P-IN-PH3
$PI-S-IN-CH2S
$PI-CL-IN-HCL
$PI-BR-IN-HBR
$PI-I-IN-HI
$PI-N-IN-PYRROLE
$PI-O-IN-FURAN
$PI-S-IN-THIOPHENE

	Lone Pairs

$LP1-N-
$LP1-O-
$LP2-O-
$LP1-F-
$LP2-F-
$LP1-P-
$LP1-S-
$LP2-S-
$LP1-CL
$LP2-CL
$LP1-BR
$LP2-BR
$LP1-I-
$LP2-I-

To initialize a VBO by using a VBO library, the program searches for the
exact match first. If no exact match can be found, then it looks for the
most the similar one. For each VBO library, the minimal VBO entries are
those for H, C, O and S for 1-3 period elements. The molecules and the
utility scripts for creating the minimal VBO library files are released in
this package in the subdirectory VBOLIBMOL. 




6.7.5 Controls for canonicalization of LMOs

The VBO library is used in two ways: the canonicalization of LMOs and the
generation of initial VB orbitals. If the library file exists, then one
can use canonicalization option for triple bonds and atoms with multiple
lone pairs so that the triple bond LMOs and lone pairs have the standard
orientation. To enable canonicalization, you can use the following control
flags.

	$CANONLP
or
	$CANONPI

The first one is used for the canonicalization of  lone pairs, and the
second one is for the two π LMOs of a triple bond. For a triple bond such
as that in C2H2,  the MO localization procedure does not guarantee the
resulting two π LMOs are in the standard orientations. 

6.7.6 $PRINTHS

If you need VB matrix elements, you can add control flag $PRINTHS in the
input. With this control appearing in the input, both overlap and
Hamiltonian matrix elements of VB structures will be printed. The
normalization constants for VB structures are also printed. However, this
option only prints matrix elements with four decimal digits. You need
modify the code if you wish to get higher precision numbers. It also
prints the eigenvalues of the overlap matrix.

6.7.7 $CENTROID (only for GAMESS and Gaussian versions)
               
The default is to print centroids for all groups with method > 1 (i.e VB).
If the run is a reactor, optimization or frequency run, centroids are
printed for the first step only. The $CENTROID option can be followed by a
line that selects an option: 

none        No centroids printed. 
hf          Add Method 1 (HF) to default VB orbitals. 
group n     Print centroids only for group n. This can only appear once. 
orbitals n  Print centroids only for n (n < 100) orbitals in a list on
			the following line, e.g.: 

orbitals 3 
4 5 6 

These can be optionally followed by 'distances n" and then a line giving n
atoms. Distances of the centroids from these atoms will then be printed.
The default is to use the first few atoms up to a maximum of 5.

6.7.8 $NOVBPROP (only for GAMESS version)

Introduced only in version 2.8, this directive allows GAMESS to do many
calculations before doing a VB calculation. For example with this
directive RUNTYP=OPTIMIZE will optimize the geometry in GAMESS before
running VB2000 at the optimized geometry. This is different from the
numerical optimization of geometry with the VB function. 
6.7.9 Other directives.

See the code, or elsewhere as directed, for details of the following
minor, outdated or otherwise not yet documented directives:

Alternatives to #! command line options.

	$HYBRID – Roy McWeeny’s hybrid method – no longer supported
	$FROZEN
	$PRINTALL
	$NOBIAS

vb2000.src for all versions 

	$WSTART
	$PUNCHS
	$SPLITRATIO
	$LOCVBO
	$NOATMLWD
	$SPDEN
	$DIISSTART
	$SCVBSCF – similar to $VBSCF
	$HFCOREDAMP
	$LDIAGVB
	$ERCTL	
	$SFACTOR
	$ALLAOS
	$CHAPRT
	$LMOTRAN
	$LPTVIR
	$OLDLOWDIN
	$WOX
	$VBOSYM
	$LPIMO
	$DIAGHESS
	$PIORB – older form of $AOGROUP
	$LMOLIBGEN – similar to $VBOLIBGEN
	$xxPIDIR (xx is group) 
 	$xxSYMORB (xx is group)

In vb2gms.src only for GAMESS version

	$SKIPGMSHF – skips GAMESS HF if read from Molden file
	$READMOS -  reads HF orbitals from $VEC group in data
	$PRINTNOS -  prints the natural orbitals of the VB function with
AIMPAC=.TRUE.

	$GPFEP,
	$GPFDP 		those are used in Generalized Product Function Energy
				Partitioning code. See GPFEP_DOCUMENTATION_v2.pdf in
				DOC	folder.

See also gamess.README in DOC folder.


6.8 Visualization of VB orbitals and molecules

Since version 1.8, we have introduced a number of routines to prepare data
for a number of molecular visualization programs. In some cases there are
different procedures in the three different programs - the stand-alone
VB2000, the GAMESS(US) version and the G98 version. This is particularly
true where the basis set has to be obtained and output. The options for
visualization are as follows.


6.8.1 $MOLPLT

This option is for the GAMESS(US) graphics  The data created by this
option can be used to display the molecule in an X window or to create an
image in a postscript file for printing. In all three programs, inclusion
of the keyword:

	$MOLPLT

in the VB input data will create a file with the '.mol' extension to the
jobname. In GAMESS(US), the MOLPLT data can be appended to the PUNCH file
(jobname.dat) by adding 'MOLPLT=.TRUE.' to the $CONTRL group. In
GAMESS(US) all the visualization files are moved by rungms from the
scratch file ($SCR) to the user scratch file ($USER_SCR). However, the
file produced by GAMESS is more detailed than the file produced by VB2000,
so the best advice is to use this directive in the stand-alone VB2000
program and use the 'MOLPLT=.TRUE.' command in $CONTRL in the
GAMESS(US)/VB2000 program. To use the molplt program, you will need the
manual, which is 'molplt.man' in the gamess/graphics directory (NB, this
is not a man page; it is a straight text file).

However, the program MOLPLT is very out of date and much better options
are available including MacMolPlt, which can read *.mol MOLPLT files
directly..


6.8.2 $PLTORB

This option is for the GAMESS(US) graphics program PLTORB. The data
created by this option is used to display individual orbitals as contour
plots in a specified plane. It requires two input files - jobname.orb and
jobname.vec. In the GAMESS version, these can be created very easily. The
VB2000 directive $PLTORB in the VB data creates two files,  jobname.orb
and jobname.vec, and works in an identical way in  the stand-alone,
GAMESS(US) and G98 versions. The jobname.orb  file  is more detailed than
the file obtained by adding 'PLTORB=.TRUE. to the $CONTRL group,  and
appended to the PUNCH file.  The jobname.vec file contains the
coefficients of the VB orbitals in the format that will be familiar to
anyone who has used the PUNCH file and the MOREAD keyword in the $GUESS
group. Unlike the pltorb output in the PUNCH file, which  requires editing
to add the plane for printing the orbitals and so on, the one generated by
VB2000 is ready to run, but may be improved by hand editing. To do that,
you will need the manual, which is 'pltorb.man' in the gamess/graphics
directory (NB, this is not a man page; it is a straight text file). All
distances are assumed to be Angstroms.

The data is:

	$PLTORB
	NB  NA1B1 NA2B1 NA1B2...
	NVBO IVBO1 IVBO2 ...
	Method
	MethodOption
	Offset
	xmin xmax ymin ymax
	Title1
	Title2
	…

where
NB				No. of bonds
NA1Bi,NA2Bi...	No. of atom index pairs of each bond, e.g. 2 2 1 3 1 
NVBO			No. of VBOS to be plotted
IVBOi	...		List of VBO numbers, e.g. 2 6 7 
METHOD			SYMBOLIC or 3ATOMS - only these two are supported.
MethodOption	If SYMBOLIC, one of the strings XY, YX, XZ, ZX, YZ, ZY
				to choose the orientation of the plotting axes, or
				if 3ATOMS a list of three atom indices to define the
				plotting plane. The first will be set as the origin.
				E.g YZ if  SYMBOLIC or 1 3 1 if	3ATOMS.
Offset			Offset in Angstroms for the plotting plane relative to
				the defined plane, e. g. 0.0 
imin imax		Limits (i = x, y) for the plotting areas, 
				E. g.-2.0 2.0 -2.0 2.0 
Title			A title up to 40 characters for each VBO plot.
				E.g. Water VBO 4 

However, the program PLTORB is very out of date and much better options are available including MacMolPlt.


6.8.3 $VECONLY, $VECMOS, $VECLMOS and $VECINIT

The *.vec file produced by $PLTORB can be used by MacMolPlt to plot the
valence bond and Hartree-Fock group orbitals. For a GAMESS/VB2000 run,
open MacMolPlt, and then open the output *.log file to display the
molecule. Then import the  *.vec file followed by  “Surfaces” in the
“Subwindow” menu, selecting “3D Orbitals”. This opens a “Surfaces” window.
In the “Select Orbital Set” box you have several options. “Molecular
Eigenvectors” gives you the GAMESS Hartree-Fock orbitals. For the *.vec
file orbitals select “VB2000 Valence Bond Orbitals”. You can then select
an orbital under “Select Orb:” and clinic “Update” to display it. This
directive, $VECONLY, on its own just gives the required *.vec file. In the
stand-alone VB2000, the .vec file can also be used to view the orbitals in
MacMolPlt, but only if you also create a Molden format (/molden) file (see
6.8.9 below) and then open that in place of the *.log file to get access
to the basis set.

There are three other related commands, $VECMOS, $VECLMOS and $VECINIT,
which give a $VEC group respectively for the molecular orbitals, the
localized orbitals  and the initial guess. All these $VEC groups are
output in a single file called *.vec. In import in MacMolPlt all $VEC
groups will be shown and you just repeat import until you have selected
all those reqquired. The “Select Orbital Set” in MacMolPlt displays
“VB2000 Molecular Orbitals”, “VB2000 Localized Molecular Orbitals” and
“VB2000 Initial Orbitals”. These can be helpful in getting a good initial
guess in difficult cases

6.8.4 $CUBE 

Orbitals can be displayed from a standard Gaussian cube file, a format
that can be read by several visualization programs, including VMD and
Molekel.

The data block:

 	$CUBE
 	M
 	(N(i),i=1,M)
	Title
	NP

will produce M output files, called jobname-{N(i)}.cube. M is the number
of VB orbital CUBE files to be created and N(i) is an array of the orbital
numbers. E.g.

 	$CUBE
 	3
 	15 16 17
	Molecule X
	64

will generate 3 files, called jobname-015.cube, jobname-016.cube and
jobname-017.cube containing the cube data for the VB orbitals, 15, 16 and
17. NP is the number of grid points in each Cartesian coordinates. NP has
a maximum of 100 and defaults to 80 if given as 0. 

Note that cube files generated by Gaussian itself contain many orbitals,
but not all visualization codes can read them. Some can only read one
orbital, so VB orbitals are created in separate cube files. Note also that
the current code is not very efficient and can be slow. Do not create cube
files unless you really need them. The $CUBE directive can be used in all
three versions of VB2000.

The sum of the value of the density at each CUBE point is used to estimate
the normalisation. It should be equal to unity. It gives an indication
whether the number of CUBE points is adequate.

6.8.5 $GENGRID or $GRID

The grid files can be generated in very similar way as above. The input is
almost identical except the flag $CUBE is replace by $GENGRID or $GRID.
Note that $GRID can not be used in GAMESS(US)/VB2000 as it conflicts with
a GAMESS data directive. The grid files generated as .grd as the file
extension. The grid files can be visualized by DS Visualizer, which is
free from Accelrys.  One can generate both cube and grid files by using a
shortcut as follows:

 	$CUBE$GENGRID
 	M
 	(N(i),i=1,M)
	Title
	NP

$GENGRID$CUBE can be used as an alternative. The prohibition of $GRID in
GAMESS-VB2000 still holds here. $CUBE$GRID or $GRID$CUBE can be used
likewise.

The sum of the value of the density at each GRID point is used to estimate
the normalisation as with CUBE.

6.8.6 $LINE

The purpose of this directive is to produce the value of a VBO along a
line which can be divided into sections of the same length. The data is
output in a form (*.csv) where it can readily be in put into a spreadsheet
such as Excel, OpenOffice or LibreOffice.

The data block:

 	$LINE
 	M
 	(N(i),i=1,M)
	NC NP
   	NPT, X(I),I=1,3

will produce M output files, called jobname-{N(i)}.cvs. M is the number of
VB orbital LINE files to be created and N(i) is an array of the orbital
numbers. The line is drawn through a number of critical points. (NC) Just
2 critical point gives a single straight line. Each line between critical
points has NP points where the VB orbitals are evaluated. NPT is 1 if the
critical point is an atom and 0 otherwise. X(I) are the coordinates of the
critical point. The last line is repeated for each critical point.

It is also relatively easy, once you have understood the strcuture of CUBE
files, to write code in various languages sucg a Fortran, C or python to
constrcut LINE files from CUBE files.

6.8.7 $XYZFILE 

To create an XYZ file for the molecule one can use the above directive in
the input. A file with file name jobname.xyz will be created. In cases
where several geometries are used, such as REACTION runs, a combined file
of coordinates for all geometries.can be produced with $XYZREACTION - see
$REACTION ($6.6.1).  For the GAMESS version, the units will be A or Bohr,
whichever is selected for the run. The xyz file can be read by many
visualization packages, such as VMD:

	VMD (Visual Molecular Dynamics) http://www.ks.uiuc.edu/Research/vmd/. 

VMD is a freely available and  very powerful toolkit for visualization and
analysis of molecular dynamics (MD) simulation data. Although it was
initially developed with focus on MD, the newer versions contain many
features that make it a very attractive choice for visualizing results of
VB2000. One can find the tutorial of VMD at
http://www.theochem.ruhr-uni-bochum.de/~axel.kohlmeyer/cpmd-vmd/index.html


Here is are few tips for how to use VMD for displaying a VB orbital:

    1. Load the molecule (.xyz file) into the UI.
    2. Add the cube file of the molecule orbital to the molecule.
    3. Use the Graphics-> Representations menu from the VMD main Windows
and choose Volume as the coloring method and isosurface as the drawing
method. You'll just have to choose the appropriate isovalue for the the
orbital you want to see.  You can also make orbital transparent.

One can also use another free software Molekel http://www.cscs.ch/molekel/
to display a Gaussian cube file. Molekel accepts the so-called .mkl file
for molecule structure. You may need to use the directive:

6.8.8 $MOLEKEL

This generates a file called jobname.mkl (in the GAMESS and G98 cases in
the scratch area). This is the molecule input file for Molekel. The format
is discussed at:
http://mtz01-a.stanford.edu/programs/documentation/molekel/interface.html.
Molekel files can also be read by MacMolPlt.

Tested with version 5.4 - Ugo Varetto, MOLEKEL 5.4; Swiss National
Supercomputing Centre: Manno (Switzerland).

6.8.9 $MOLDEN

The directive in the VB data block generates a file called jobname.molden
(in the GAMESS and G98 cases in the scratch area). This is the molecule
input file for Molden. The full description of the Molden format is at:
https://www3.cmbi.umcn.nl/molden/molden_format.html.

The stand-alone VB2000 can use $READMOLDEN to get the geometry stc from a
Molden file.

Molden files can also be used in other programs, particularly MacMolPlt.


4.8.10 $DENSCUBE

This control is used to generate CUBE files for densities, unlike the CUBE
directive which gives CUBE files for orbitals, The data is:

 $DENSCUBE
 DENS SPIN GRPS GMSD HPRT
 NGRPS
 G1 G2 ...
 Title
 NGRIDPTS

The second line contains up to five 5-letter labels with the following
meaning:
DENS 		  - A CUBE file for the total density will be generated.
SPIN  		  - A CUBE file for the spin density density will be generated.
GRPS (or VBOS)- CUBE files will be generated for a number of groups. These can 			  		be VB groups or the HF core group.
GMSD 		  - A CUBE file for the HF density is created. This is only for the
	   			GAMESS version. This can be used with the total VB density
			    from DENS to obtain a CUBE file for the difference in density.
			    This can be obtained using the get_cube_diff.f program in
				the TOOLS directory.
HPRT 		  - This does not give a CUBE file and it is also only available
				in the GAMESS version. It gives a higher level of output,
				printing the various density matrices that are used for the
				CUBE files. It is recommended that you also add NPRINT=9 in
				the GAMESS $CONTRL group if GMSD is selected as this gives
				you the HF density in the GAMESS output.

The 3rd and 4th lines are present only if GRPS (or VBOS) is present and
indicates the selected groups.

An example is:

 $DENSCUBE
 DENS SPIN VBOS
 2
 1 2
 cyclopentadienyl anion  cc-pVDZ
 80

This will generate CUBE files for the total density, the spin density if
the molecule is not a singlet, and for two groups, 1 (the HF core) and 2
(the VB group). The molecule is cyclopentadienyl anion using the cc-pVDZ
basis set, The CUBE files will have 80 x 80 x 80 points. The maximum
number of points is 100 x 100 x 100.

The sum of the value of the density at each CUBE point is used to estimate
the normalisation. It should be equal to the number of electrons involved
in the density. It gives an indication whether the number of CUBE points
is adequate.

Some of the density matrices in the GAMESS version will be printed if the
directive $PRINTDENS, without $DENSCUBE, is present in the VB2000 data.

