utilities
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
utilities [2013/08/21 15:03] – daniel | utilities [2013/08/29 11:22] – daniel | ||
---|---|---|---|
Line 25: | Line 25: | ||
| | ||
- | [[Utilities/ | + | [[Utilities/ |
A series of awk scripts to handle various tasks with potential files, like combining, appending, creating from analytical functions, generating from scratch, plotting, | A series of awk scripts to handle various tasks with potential files, like combining, appending, creating from analytical functions, generating from scratch, plotting, | ||
Line 91: | Line 91: | ||
weight of the configuration. | weight of the configuration. | ||
- | ==== | + | ==== |
- | Converts [[http://cms.mpi.univie.ac.at/vasp/|VASP]] output to force files. | + | Generate analytic potential files for //potfit// from scratch. |
- | Compilation: '' | + | < |
+ | usage: makeapot [-h] [-n N] [-co CUTOFF] [-g] [-r] [-i TYPE] [-l] [-cp] | ||
+ | [-f [FUNCTIONS [FUNCTIONS ...]]] | ||
- | Usage: | + | Create an analytic potential |
- | 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 | + | optional |
- | An optional file can be specified, containing the energy of a single free atom calculated by [[http://cms.mpi.univie.ac.at/ | + | -h, --help |
- | + | -n N number | |
- | < | + | -co CUTOFF, --cutoff CUTOFF |
- | # Al Co Ni | + | cutoff radius |
- | -0.000219 -0.993872 -0.855835 | + | -g use global cutoff parameter |
+ | -r, --random | ||
+ | -i TYPE, --type TYPE interaction type, e.g. pair, eam, adp, ... | ||
+ | -l, --list | ||
+ | -cp | ||
+ | -f [FUNCTIONS | ||
+ | name of potential functions, either name or i*name, | ||
+ | where i=1,2,3,... | ||
</ | </ | ||
- | 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: | + | ==== plotapot |
+ | |||
+ | This utility plots an analytic potential with gnuplot. | ||
< | < | ||
- | -c < | + | usage: plotapot [-h] [-f] [-p] [-s size] [-t terminal] |
- | (eg. " | + | |
- | -e < | + | |
- | if not found, " | + | |
- | -f only use the final configuration from OUTCAR | + | |
- | -l list all chemical species found in OUTCAR and exit | + | |
- | | + | |
- | -s < | + | |
- | -w < | + | |
- | </ | + | |
- | ==== pottrans | + | Plot an analytic potfit potential using gnuplot. |
- | Converts betweeen various | + | positional arguments: |
+ | pot_file | ||
+ | pair_dist_file | ||
- | Compilation: '' | + | optional arguments: |
+ | -h, --help | ||
+ | -f write plotfiles for gnuplot and exit | ||
+ | -p only create plots in png format but do not show them | ||
+ | -s size | ||
+ | -t terminal | ||
+ | in gnuplot for details) | ||
+ | </ | ||
- | Usage: | + | ==== potfit_setup |
- | pottrans < | + | |
- | required parameters in paramfile (here with example values) | + | This utility generates a simple parameter file for //potfit//. |
< | < | ||
- | ntypes | + | usage: potfit_setup [-h] [-c config |
- | ncols 3 # number of output potentials | + | |
- | infile | + | |
- | outfile | + | |
- | nsteps | + | |
- | atomic_e-density_file | + | |
- | embedding_energy_file | + | |
- | core_potential_file | + | |
- | # optional parameters | + | Create a simple potfit parameter file from scratch. |
- | reorder | + | optional arguments: |
- | # ntypes parameters necessary | + | -h, --help |
- | r_start | + | -c config file |
+ | -p potential file name of the potfit potential file | ||
+ | -s prefix | ||
+ | |||
+ | The prefix takes precedence over the -c and -p switches.If the < | ||
+ | and < | ||
</ | </ | ||
- | in.pot | + | If the config file is given via the -c or -s option, the number of atom |
+ | types is automatically determined and adjusted in the output. | ||
+ | ==== vasp2force | ||
- | To convert from //potfit// to IMD use //potfit// with '' | + | Converts [[http://cms.mpi.univie.ac.at/vasp/|VASP]] output data into potfit |
+ | < | ||
+ | usage: vasp2force [-h] [-c C] [-e E] [-f] [-l] [-r] [-s CONFIGS] [-w WEIGHT] | ||
+ | [files [files ...]] | ||
- | ==== potfit_setup | + | Converts vasp output data into potfit reference configurations. |
- | This utility generates a simple parameter file for //potfit//. | + | positional arguments: |
+ | files list of OUTCAR files (plain or gzipped) | ||
- | Usage: | + | optional arguments: |
- | | + | |
+ | | ||
+ | -e E | ||
+ | -f, --final | ||
+ | -l, --list | ||
+ | -r, --recursive | ||
+ | | ||
+ | comma separated list of configurations to use | ||
+ | -w WEIGHT, --weight WEIGHT | ||
+ | set configuration weight for all configurations | ||
+ | </ | ||
+ | |||
+ | 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:// | ||
< | < | ||
- | -c <config file> | + | # Al Co Ni |
- | -p < | + | -0.000219 |
- | for analytic potentials this can easily be created with | + | |
- | the makeapot script from the awkscripts | + | |
- | -s < | + | |
- | the following files will be checked: | + | |
- | < | + | |
- | if they are not found, -c and -p will be read | + | |
</ | </ | ||
- | ==== awk scripts | + | 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. |
- | + | ||
- | The awk scripts are listed on a [[utilities/Awk_scripts|separate page]]. | + | |
- | + |