NWChem/contrib/python
2015-10-13 20:47:23 +00:00
..
basopt.nw change import of util to mathutil 2000-10-13 18:36:03 +00:00
basopt2.nw change import of util to mathutil 2000-10-13 18:36:03 +00:00
basopt3.nw change import of util to mathutil 2000-10-13 18:36:03 +00:00
basopt4.nw Move util.py to mathutil.py to avoid module name conflict 2000-10-13 18:09:21 +00:00
bpy.nw example of bsse input 2015-10-13 20:47:23 +00:00
coulombfitting.atom.nw Python program that can be used to generate Coulomb fitting basis sets for atoms, and for XF and XH molecules. 2001-11-29 22:49:23 +00:00
coulombfitting.XF.mol.nw Small correction, original code was including counter atom fitting basis multiple times. 2001-11-30 16:50:21 +00:00
coulombfitting.XH.mol.nw Small correction, original code was including counter atom fitting basis multiple times. 2001-11-30 16:50:21 +00:00
dplot.py dplot script from Robert Harrison 2011-01-18 12:47:28 +00:00
Gnuplot.py new version compatible with python 2.6 2012-02-10 19:26:24 +00:00
hcn.nw atom 4 refernced when only three atoms are there 2012-02-09 21:51:47 +00:00
isodesmic.nw new examples 1999-07-14 21:26:37 +00:00
mathutil.py Move util.py to mathutil.py to avoid module name conflict 2000-10-13 18:09:21 +00:00
nh3.nw gnuplot option 2012-02-09 21:50:06 +00:00
nwchem_tddft_spectrum.py HvD: Syncs with r21738 of nwchem-6.1. 2012-02-01 22:22:33 +00:00
nwgeom.py don't corrupt input units 2001-05-11 17:46:06 +00:00
office.py initial COM wrapper for MSOffice from Python 2000-08-25 00:47:49 +00:00
pes_scan.py Check in new script with correct spacing 2004-06-22 16:43:42 +00:00
README added pes_scan.py from Lev Gelb 2003-04-17 04:45:09 +00:00
scanexp.nw new examples 1999-07-14 21:26:37 +00:00
testxrtdb.nw Move util.py to mathutil.py to avoid module name conflict 2000-10-13 18:09:21 +00:00
ts_search.nw Change in the title format. 2000-01-19 17:18:41 +00:00
Xrtdb.py Examples of how to use the new routines in util to 2000-08-10 22:33:19 +00:00

A collection of miscelaneous Python scripts and test cases 
that have been partially tested.

IMPORTANT:
 Make sure that the directory containing Xrtdb.py is in your PYTHONPATH


Xrtdb.py - A Tkinter based graphical RTDB editor
     Requires Tkinter support be built into the Python that NWChem
     is linked against.  On some machines this also requires linking
     against _tkinter.so which is in the python lib-dynload.

testxrtb.nw
     Example use of Xrtdb

nwgeom.py - look in the file for (a little) more documentation
   Defines the procedures

   - coords = geom_get_coords(name)
   - geom_set_coords(name,coords)
     Get/set cartesian coordinates for named geometry

   - bond_length(i,j)
     Compute bond length between atoms i & j for
     default geometry

   - (xmin, fmin) = minimize1d(f, xlo, xhi, xtol, maxeval)
     Fairly robust minimization in 1d ... useful for crude
     localization of saddle points (look in util.py for
     better optimizers, notably quasinr()).

   - results = scan_input(input,start,end,nstep,theory,task)
     Scan parameters from start to end, substituting into 
     the NWChem input string and calling the specified
     task(theory), returning results from each step in results.

util.py - lots of useful python routines for manipulating vectors,
     matrices, and minimizing functions. Look in the file for more
     documentation, and at the end of the file for example usage.

basopt.nw - example of optimizing the exponents in a primitive basis
     set using the quasi-Newton optimizer quasinr() in util.py

basopt2.nw - another example of optimizing basis set exponents. 
     Uncontracts an STO-3G basis for water and optimizes the exponents.
     (this one will take a few minutes to complete)

basopt3.nw - yet another example. This time using MP2 for HF to 
     optimize the uncontracted sp on H and spd on F in the
     cc-pVDZ basis.

basopt4.nw - and another example.  This optimizes a sequence of
     even tempered primitive basis sets for Be with between 2 and
     twenty s functions and then prints out the summary to demonstrate
     exponential convergence to the Hartree-Fock basis set limit.

ts_search.nw
     Example use of minimize1d from nwgeom.py

scanexp.nw
     Example use of scan_input from nwgeom.py

hcn.nw
     Scans the HCN -> CNH reaction path displaying bond lengths
     and the energy as function of angle using Gnuplot.  You
     need Python and the GNUplot and Numeric extensions
     (www.python.org)

nh3.nw
     Scans the NH3 inversion path displaying bond lengths
     and the energy as function of angle using Gnuplot.  You
     need Python and the GNUplot and Numeric extensions
     (www.python.org)
     
isdoesmic.nw
     Uses python to compute a reaction energy as a function
     of basis set.


pes_scan.py
   Python script for use in
   NWchem that is the multidimensional analog of your zcoord scanning
   script. This script can scan a grid of variables in several
   dimensions, covering a parameter "volume", rather than the linear
   track between points done by zcoord.
   Additional documentation and usage notes is in the comments of the
   script itself  (from Lev Gelb, gelb@mitre.wustl.edu)