utilities
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
utilities [2013/02/28 13:31] – created daniel | utilities [2013/08/21 15:03] – daniel | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{TOC_right}} | + | ~~NOTOC~~ |
- | The potfit/util directory contains a number of utility programs for the preparation of '' | + | ====== Utilities ====== |
+ | ---- | ||
+ | The potfit/util directory contains a number of utility programs for the preparation of //potfit// input files and the postprocessing of //potfit// output files. | ||
- | ;[[#force2poscar|force2poscar]] | + | [[#force2imd|force2imd]]\\ |
- | :Converts force files (IMD output) to vasp POSCAR files. | + | Convert a potfit |
- | ; | + | |
- | :Converts vasp output (POSCAR, OUTCAR) to reference | + | |
- | ; | + | |
- | :Converts various | + | |
- | ; | + | |
- | :List all configurations in a configuration | + | |
- | ; | + | |
- | :Creates a parameter file for '' | + | |
- | ; | + | |
- | :A series of awk scripts to handle various tasks with potential files, like combining, appending, creating from analytical functions, generating from scratch, plotting, | + | |
- | ; | + | |
- | :Performs gauge transformations of '' | + | |
- | === force2poscar | + | [[#force2poscar|force2poscar]]\\ |
+ | | ||
- | Converts force files produced by [http:// | + | [[# |
+ | | ||
- | Compilation: | + | [[# |
+ | | ||
- | Usage: | + | [[# |
- | | + | Plot an analytic potfit potential using gnuplot. |
+ | |||
+ | [[# | ||
+ | | ||
+ | |||
+ | [[# | ||
+ | | ||
+ | |||
+ | [[Utilities/ | ||
+ | A series of awk scripts to handle various tasks with potential files, like combining, appending, creating from analytical functions, generating from scratch, plotting, | ||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | ==== force2imd | ||
+ | |||
+ | Converts a potfit configuration into an [[http:// | ||
+ | |||
+ | < | ||
+ | usage: force2imd [-h] [-n NUMBER] filename | ||
+ | |||
+ | Convert a potfit configuration into an IMD checkpoint file. | ||
+ | |||
+ | positional arguments: | ||
+ | filename | ||
+ | |||
+ | optional arguments: | ||
+ | -h, --help | ||
+ | -n NUMBER, --number NUMBER | ||
+ | number of the configuration to convert | ||
+ | </ | ||
+ | |||
+ | The IMD checkpoint file is written to standard output. | ||
+ | |||
+ | ==== | ||
+ | |||
+ | Convert a potfit configuration into a [[http:// | ||
+ | |||
+ | < | ||
+ | usage: force2poscar [-h] [-n NUMBER] filename | ||
+ | |||
+ | Convert a potfit configuration into a VASP POSCAR file. | ||
+ | |||
+ | positional arguments: | ||
+ | filename | ||
+ | |||
+ | optional arguments: | ||
+ | -h, --help | ||
+ | -n NUMBER, --number NUMBER | ||
+ | number of the configuration to convert | ||
+ | </ | ||
+ | |||
+ | The VASP POSCAR data is written to standard output. | ||
+ | |||
+ | ==== list_config | ||
+ | |||
+ | Prints a brief list of all configurations in a potfit config file. | ||
+ | |||
+ | < | ||
+ | usage: list_config [-h] filename | ||
+ | |||
+ | Prints a brief list of all configurations in a potfit config file. | ||
+ | |||
+ | positional arguments: | ||
+ | filename | ||
+ | |||
+ | optional arguments: | ||
+ | -h, --help | ||
+ | </ | ||
- | The information is always written to a file called POSCAR residing in the local directory. Use compile option -DSTRESS if your force file includes | + | Scans a //potfit// configuration |
+ | This includes | ||
+ | weight of the configuration. | ||
- | === vasp2force === | + | ==== |
- | Converts [http:// | + | Converts |
- | Compilation: | + | Compilation: |
Usage: | Usage: | ||
- | vasp2force [-c list] [-e file] [-f] [-l] [-r] [-s list] <OUTCAR files> | + | |
Reads information from all OUTCAR files in the current directory. <OUTCAR files> is an optional list of files, if not given all files matching OUTCAR* will be scanned (it is possible to read gzipped files ending with .gz). | Reads information from all OUTCAR files in the current directory. <OUTCAR files> is an optional list of files, if not given all files matching OUTCAR* will be scanned (it is possible to read gzipped files ending with .gz). | ||
- | An optional file can be specified, containing the energy of a single free atom calculated by [http:// | + | An optional file can be specified, containing the energy of a single free atom calculated by [[http:// |
- | # Al Co Ni | + | < |
- | | + | # Al Co Ni |
+ | -0.000219 -0.993872 -0.855835 | ||
+ | </ | ||
- | Writes a force file to be used as a '' | + | Writes a force file to be used as a //potfit// reference configuration to standard output. If no options are given, force data is generated from each ionic step. |
Options: | Options: | ||
- | <tt>-c < | + | <code> |
- | :list of chemical species to use (e.g. " | + | -c < |
- | <tt>-e < | + | |
- | : | + | -e < |
- | <tt>-f</ | + | |
- | :Uses only final configuration | + | |
- | <tt>-l</ | + | |
- | :List all chemical species found in OUTCAR and exit. | + | |
- | <tt>-r</ | + | |
- | :Scan recursively for OUTCAR files in every subdirectory. | + | -w <weight> |
- | <tt>-s list</tt> | + | </ |
- | :List is a comma separated list of ionic steps to use, e.g. " | + | |
- | <tt>-w weight</tt> | + | |
- | :Assign this weight | + | |
- | === pottrans === | + | ==== |
Converts betweeen various potential models. | Converts betweeen various potential models. | ||
- | Compilation: | + | Compilation: |
Usage: | Usage: | ||
- | pottrans < | + | |
required parameters in paramfile (here with example values) | required parameters in paramfile (here with example values) | ||
- | <code><pre> | + | < |
ntypes | ntypes | ||
ncols 3 # number of output potentials | ncols 3 # number of output potentials | ||
Line 83: | Line 145: | ||
core_potential_file | core_potential_file | ||
- | #optional parameters | + | # optional parameters |
reorder | reorder | ||
# ntypes parameters necessary | # ntypes parameters necessary | ||
r_start | r_start | ||
- | </ | + | </ |
- | in.pot is converted to out.pot. in.pot can be of IMD potential format 1 or 2, out.pot is of '' | + | in.pot is converted to out.pot. in.pot can be of IMD potential format 1 or 2, out.pot is of //potfit// potential format. For EAM potentials, specify the appropriate number of columns in ncols and the required IMD format potential files. The order of the different atom types can be changed with the reorder parameter by specifying the desired sequence. |
- | To convert from '' | + | To convert from //potfit// to IMD use //potfit// with '' |
- | === list_config === | ||
- | Lists all configurations in a config file. | + | ==== potfit_setup |
- | Compilation: | + | This utility generates a simple parameter file for //potfit//. |
Usage: | Usage: | ||
- | | + | |
- | + | ||
- | Scans a '' | + | |
- | + | ||
- | === potfit_setup === | + | |
- | + | ||
- | This utility generates a simple parameter file for '' | + | |
- | + | ||
- | Usage: | + | |
- | potfit_setup [-c config file] [-p potential file] [-s prefix] | + | |
- | + | ||
- | < | + | |
- | :name of the configuration file | + | |
- | < | + | |
- | :name of the potential file (for analytic potentials this can easily be created with the < | + | |
- | < | + | |
- | :prefix for all files, overrides -c and -p | + | |
- | :the following files will be checked: < | + | |
- | + | ||
- | === awk scripts === | + | |
- | + | ||
- | The awk scripts are listed on a [[Utilities/ | + | |
- | + | ||
- | === potscale === | + | |
- | '''< | + | |
- | + | ||
- | potscale performs gauge transformations on EAM potentials. | + | |
- | + | ||
- | Compilation: | + | |
- | + | ||
- | Usage: | + | |
- | | + | |
- | + | ||
- | Required parameters in paramfile: | + | |
- | + | ||
- | < | + | |
- | ntypes # number of atom types (types vary in [0..ntypes-1]) | + | |
- | startpot # file name for starting potential (*) | + | |
- | endpot # file name for final potential (*) | + | |
- | imdpot # file name prefix for imd potential (*) | + | |
- | plotfile # file name for plotting potential (*) | + | |
- | plotpointfile # | + | |
- | + | ||
- | imdpotsteps # number of points in each function in imd file | + | |
- | dummy_r # Distance, where dummy_rho and dummy_phi are used (ignored) | + | |
- | #optional options | + | < |
- | dummy_rho # dummy value of rho at dummy_r | + | -c <config file> |
- | dummy_phi # vector (length ntypes) dummy values | + | -p < |
- | </pre></ | + | for analytic potentials this can easily be created with |
+ | the makeapot script from the awkscripts | ||
+ | | ||
+ | the following files will be checked: | ||
+ | < | ||
+ | if they are not found, -c and -p will be read | ||
+ | </ | ||
- | Prints the values of < | + | ==== awk scripts |
- | If dummy_phi is given, the potential is transformed so that < | + | The awk scripts are listed on a [[utilities/Awk_scripts|separate page]]. |
- | IMD potentials and potential plot files are also written. | ||