utilities
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
utilities [2013/08/21 15:03] – daniel | utilities [2013/08/21 15:13] – daniel | ||
---|---|---|---|
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: | + | |
- | vasp2force [-c list] [-e file] [-f] [-l] [-r] [-s list] <OUTCAR files> | + | |
- | + | ||
- | Reads information | + | |
- | An optional file can be specified, containing the energy of a single free atom calculated by [[http:// | + | |
< | < | ||
- | # Al Co Ni | + | usage: makeapot [-h] [-n N] [-co CUTOFF] [-g] [-r] [-i TYPE] [-l] [-cp] |
- | -0.000219 -0.993872 -0.855835 | + | [-f [FUNCTIONS [FUNCTIONS |
- | </ | + | |
- | 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. | + | Create an analytic potential |
- | Options: | + | optional arguments: |
- | + | -h, --help | |
- | < | + | -n N number |
- | -c < | + | -co CUTOFF, --cutoff CUTOFF |
- | (eg. " | + | |
- | -e < | + | -g |
- | | + | -r, --random |
- | -f | + | -i TYPE, --type TYPE interaction type, e.g. pair, eam, adp, ... |
- | | + | |
- | -r scan recursively | + | -cp |
- | -s < | + | -f [FUNCTIONS [FUNCTIONS ...]] |
- | -w < | + | name of potential functions, either name or i*name, |
+ | where i=1,2,3,... | ||
</ | </ | ||
- | ==== pottrans | ||
- | Converts betweeen various potential models. | + | ==== plotapot |
- | Compilation: | + | This utility plots an analytic potential |
- | + | ||
- | Usage: | + | |
- | pottrans < | + | |
- | + | ||
- | required parameters in paramfile (here with example values) | + | |
< | < | ||
- | ntypes | + | usage: plotapot [-h] [-f] [-p] [-s size] [-t terminal] |
- | ncols 3 # number of output potentials | + | |
- | infile | + | |
- | outfile | + | |
- | nsteps | + | |
- | atomic_e-density_file | + | |
- | embedding_energy_file | + | |
- | core_potential_file | + | |
- | # optional parameters | + | Plot an analytic potfit potential using gnuplot. |
- | reorder | + | positional arguments: |
- | # ntypes parameters necessary | + | pot_file |
- | r_start | + | |
+ | |||
+ | optional arguments: | ||
+ | | ||
+ | -f write plotfiles | ||
+ | -p only create plots in png format but do not show them | ||
+ | -s size | ||
+ | -t terminal | ||
+ | in gnuplot for details) | ||
</ | </ | ||
- | |||
- | 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 //potfit// to IMD use //potfit// with '' | ||
- | |||
==== potfit_setup | ==== potfit_setup | ||
Line 175: | Line 158: | ||
</ | </ | ||
- | ==== | + | ==== |
- | The awk scripts are listed on a [[utilities/Awk_scripts|separate page]]. | + | Converts |
+ | < | ||
+ | usage: vasp2force [-h] [-c C] [-e E] [-f] [-l] [-r] [-s CONFIGS] [-w WEIGHT] | ||
+ | [files [files ...]] | ||
+ | Converts vasp output data into potfit reference configurations. | ||
+ | |||
+ | positional arguments: | ||
+ | files list of OUTCAR files (plain or gzipped) | ||
+ | |||
+ | optional arguments: | ||
+ | -h, --help | ||
+ | -c C list of chemical species to use, e.g. -c Mg=0,Zn=1 | ||
+ | -e E file with single atom energies (NYI) | ||
+ | -f, --final | ||
+ | -l, --list | ||
+ | -r, --recursive | ||
+ | -s CONFIGS, --configs CONFIGS | ||
+ | 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:// | ||
+ | |||
+ | < | ||
+ | # Al Co Ni | ||
+ | -0.000219 -0.993872 -0.855835 | ||
+ | </ | ||
+ | |||
+ | 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. | ||
+ | |||
+ | |||
+ | ==== awk scripts | ||
+ | |||
+ | The awk scripts are listed on a [[utilities/ |