utilities_awk_scripts
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
utilities_awk_scripts [2013/03/01 09:36] – created daniel | utilities_awk_scripts [2018/01/06 10:44] (current) – removed daniel | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~NOTOC~~ | ||
- | ====== Utilities / Awk scripts ====== | ||
- | ---- | ||
- | |||
- | There are several awk scripts to help with tasks concerning potential files. | ||
- | |||
- | Compilation: | ||
- | |||
- | Note: This command has to be run in the /util directory and not in the /util/awk directory! | ||
- | |||
- | ==== add_type.awk | ||
- | |||
- | add_type adds potentials for another atom type to an existing EAM potential. | ||
- | |||
- | Usage: | ||
- | add_type.awk orig_eam.pt add_eam.pt cross_pair1.pt ... | ||
- | |||
- | '' | ||
- | |||
- | '' | ||
- | '' | ||
- | '' | ||
- | |||
- | The potentials are rearranged in the proper order. The resulting potential is written to standard output. | ||
- | |||
- | ==== combine_eam.awk | ||
- | |||
- | combine_eam.awk combines single potentials from separate files into a single potential file. | ||
- | |||
- | Usage: | ||
- | combine_eam.awk potential1.pt potential2.pt .... | ||
- | |||
- | where '' | ||
- | |||
- | Combines all potentials into one single potential file written to standard output. Can be used to combine three potentials to form an EAM potential, but will combine any files containing only a single potential. | ||
- | |||
- | ==== genpot.awk | ||
- | |||
- | genpot is an interactive AWK script that generates an interpolated representation of an analytic potential with an arbitrary number of parameters. | ||
- | |||
- | Usage: | ||
- | genpot.awk | ||
- | |||
- | genpot takes no parameters, however the parameters of the potentials are read from standard input and may of course be supplied through a pipe (one parameter on each line). The sequence of the parameters is as follows: | ||
- | |||
- | '' | ||
- | '' | ||
- | '' | ||
- | '' | ||
- | '' | ||
- | |||
- | genpot does not verify or validate any parameter or input value. | ||
- | |||
- | Potential functions supported: | ||
- | |||
- | < | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | </ | ||
- | |||
- | ==== lammpseam2potfit.awk | ||
- | |||
- | Converts a [[http:// | ||
- | |||
- | Usage: | ||
- | lammpseam2potfit.awk < | ||
- | |||
- | ''< | ||
- | Command writes a //potfit// tabulated [[EAM]] [[Potential files# | ||
- | to standard output. Atom types are sorted alphabetically. | ||
- | |||
- | **ATTENTION: | ||
- | |||
- | In general, the resulting potential will have way too many sampling points to be used in a //potfit// optimization and needs to be downsampled considerably. However, the main purpose of this utility is to convert a LAMMPS potential (sampling points equidistant in //r//) to [[http:// | ||
- | |||
- | ==== makeapot | ||
- | |||
- | Generate analytic potential files for //potfit// from scratch. | ||
- | |||
- | Usage: | ||
- | makeapot [[-h]] [[-r]] [[-cp]] [[-n|x identifier]] | ||
- | |||
- | '' | ||
- | '' | ||
- | '' | ||
- | '' | ||
- | |||
- | You can use more than one '' | ||
- | |||
- | The command | ||
- | |||
- | makeapot -n 6 eopp_sc -n 3 csw_sc -n 3 pohlong | ||
- | |||
- | will generate a potential file with 6 eopp_sc, 3 csw_sc and 3 pohlong potentials and write it to the standard output. | ||
- | |||
- | ==== plotapot | ||
- | |||
- | This utility plots an analytic potential with gnuplot. | ||
- | |||
- | Usage: | ||
- | plotapot < | ||
- | |||
- | There are no options, you have to give the potential file, the radial distribution file is optional. | ||
utilities_awk_scripts.1362126965.txt.gz · Last modified: 2013/03/01 09:36 by daniel