Mod:Hunt Research Group/Jan generate esp
Appearance
using Jan's code to generate and evaluate an esp from given partial charges on a particular mesh
introduction
- we want to create esp cube files from given partial charges and compare these
- to compare cube files they must have the same internal structure (ie same number of points)
- see the wiki and gaussian website for cubegen "http://gaussian.com/cubegen/" and cubman "http://gaussian.com/cubman/" for more info on generating gaussian cubes with the same structure
- here we will be using one cube file as a template for the one to be produced thus allowing for comparison
- the best comparison point is the "real" esp created earlier ie the gaussian cube generated esp file
create our own ESP from given partial charges and mesh
- the script we need is rep_esp.py
- creates a gaussian cube file of the esp
- for instructions run with -h argument "rep_esp.py -h"
- required arguments are
- input charge type=name the charges to be extracted options are 'mulliken', 'nbo', 'aim', 'mk', 'chelp', 'chelpg', 'hly', or 'list' if the charges are to be provided from a text file
- input charge file = file to extract charges from this can be a gaussian.log file or a text file if you have used resp
- template cube file = name of file with a template esp, this is necessary to compare the cube files
- then add -o file to direct the output to a named cube file (remove the .cub extension)
- for example creating a cube file from the gaussian mk charges, and the resp_mk charges
rep_esp.py mk ch3oh_mk.log ch3oh_esp.cub -o ch3oh_mk_esp rep_esp.py list resp_charges_mk.txt ch3oh_esp.cub -o ch3oh_resp_mk_esp
compare our ESP files
- we want to compare the partial charge derived esp cube files to the "proper" esp obtained from the electronic density
- for this we use field_diff.py
- required arguments are
- input cube file=real esp cube file file.cub
- input charge file = file to extract charges from this can be a gaussian.log file or a text file if you have used resp
- template cube file = name of file with a template esp, this is necessary to compare the cube files
- options include
- "-o filename" (remove the .cub extension) to direct the output to a named cube file
- "--absolute" to get the absolute error (ie all positive)
- "--relative" to get the relative value ie the error divided by the value of the field at this point some problems here!
- "--exclude density.cub iso-value distance" to exclude points lying closer than the electron density iso-surface given,
- for this you need to specify an electron density cube denisty.cube, an iso-value and a distance?

