potfiles:main
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
potfiles:main [2018/09/22 13:43] – daniel | potfiles:main [2018/09/22 14:29] – daniel | ||
---|---|---|---|
Line 2: | Line 2: | ||
====== Potential files ====== | ====== Potential files ====== | ||
---- | ---- | ||
- | The interactions | + | The interactions supported by //potfit// are defined in terms of tabulated functions, given by analytic parameters |
- | given by analytic parameters. Typical functions are central pair potentials, which depend on the distance | + | |
- | of two atoms and the two atom types involved. | + | |
- | which are equidistant in the distance, which is the fundamental difference | + | |
- | [[http://imd.itap.physik.uni-stuttgart.de/|IMD]], where those functions are tabulated with steps equidistant | + | |
- | in the square | + | |
- | different for tabulated and analytic | + | |
- | The number of potentials required for a specific | + | Each potential file consists of a header and a body, just like the configurations. While the header format is the same for all supported potentials the body format is fundamentally different for tabulated, analytic and KIM potentials. |
+ | |||
+ | For potentials implemented in //potfit// the number of potentials | ||
==== Potential File Header | ==== Potential File Header | ||
- | The header is comparable | + | The header |
- | which format the current | + | |
- | The number of data columns depends on the potential | + | |
<code potfit> | <code potfit> | ||
- | ## this is just a comment line | + | #F < |
- | #F 3 n | + | #T <interaction name> |
- | #T <TYPE> | + | #C <element 0> <element 1> ... |
- | #C Mg Zn | + | #I 0 1 ... n entries |
- | #I 0 1 .... n entries | + | #G 2 3 ... n entries |
- | #G 2 3 .... n entries | + | #E |
- | ## this is another comment line | + | |
- | #E this is the very last header line | + | |
</ | </ | ||
- | Header lines start with the hash character | + | Header lines have to start with the number sign ''#'' |
- | specifier 0, 3 or 4 (to distinguish from IMD potential files, format types 1 or 2) and the number n of | + | |
- | data columns of the functions are read from the rest of the line. The very last header line must have | + | |
- | a character '' | + | |
- | '' | + | |
- | two ''#'' | + | |
- | The line starting with ''# | + | The second character can be any of the following specifiers. Lines with unknown specifiers will be treated like comments, but it is recommended that such lines start with two '' |
- | if you are dealing | + | |
- | The line ''# | + | Not all specifiers all mandatory, some of them are optional. |
- | matching run. Each digit corresponds to one function table, so there should be n digits in total. A | + | |
- | value of '' | + | |
- | keeps it fixed. This is useful for example if a third component is to be added to a binary system | + | |
- | and only the additional potentials | + | |
- | The line ''# | + | == #F == |
- | or as an additional degree | + | |
- | n digits | + | The mandatory format specifier |
- | '' | + | It requires two arguments, the format itself and the number |
- | This does not apply to analytic potentials. | + | Valid formats are: |
+ | * [[potfiles: | ||
+ | * [[potfiles: | ||
+ | * [[potfiles: | ||
+ | * [[potfiles: | ||
+ | |||
+ | The value for the number | ||
+ | If the number of atom types in the parameter file is 2 and the potential | ||
+ | |||
+ | == #T == | ||
+ | |||
+ | The optional interaction type specifier | ||
+ | |||
+ | Even though this line is optional, a mismatch in the string and the compiled //potfit// binary will lead to a runtime error. A //potfit// binary compiled for '' | ||
+ | |||
+ | == #C == | ||
The line ''# | The line ''# | ||
Line 63: | Line 60: | ||
#E | #E | ||
</ | </ | ||
+ | |||
+ | == #I == | ||
+ | |||
+ | The line ''# | ||
+ | matching run. Each digit corresponds to one function table, so there should be n digits in total. A | ||
+ | value of '' | ||
+ | keeps it fixed. This is useful for example if a third component is to be added to a binary system | ||
+ | and only the additional potentials are to be allowed to change. | ||
+ | |||
+ | == #G == | ||
+ | |||
+ | The line ''# | ||
+ | or as an additional degree of freedom. Each digit corresponds to one function table, so there should be | ||
+ | n digits in total. The information is bit-coded, '' | ||
+ | '' | ||
+ | This does not apply to analytic potentials. | ||
+ | |||
+ | == #E == | ||
+ | |||
+ | The very last header line must have | ||
+ | a character '' | ||
+ | |||
+ | ---- | ||
The order of the different potential functions for a specific potential can be found on the | The order of the different potential functions for a specific potential can be found on the | ||
corresponding potential page. | corresponding potential page. | ||
+ | |||
+ | |||
potfiles/main.txt · Last modified: 2018/09/24 17:29 by daniel