config:main
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
configurations [2013/02/28 13:23] – created daniel | config:main [2018/09/22 13:35] (current) – daniel | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | __NOTOC__ | + | ~~NOTOC~~ |
- | The reference configurations used by '' | + | ====== Configurations ====== |
- | [http:// | + | ---- |
- | === Configuration Files === | + | The atomic configurations used for fitting are read from the configuration file which is specified in the parameter file. The format of the configuration is very simple and explained below. |
- | A '' | + | There is a [[utilities: |
+ | [[https:// | ||
- | == Header | + | ==== Configuration Files ==== |
- | The header consists | + | A //potfit// configuration file is a plain text file, consisting |
+ | ===== Header | ||
+ | |||
+ | The header consists of at least six lines starting with the number sign # and has the following format: | ||
+ | |||
+ | <code potfit> | ||
#N natoms useforce | #N natoms useforce | ||
#C type_0 type_1 type_2 ... | #C type_0 type_1 type_2 ... | ||
Line 23: | Line 29: | ||
#W weight | #W weight | ||
#E coh_eng | #E coh_eng | ||
- | #S stress_xx stress_yy stress_zz | + | #S stress_xx stress_yy stress_zz stress_xy |
# | # | ||
+ | </ | ||
- | The lines starting with #N, #X, #Y, #Z, #E and #F are mandatory, while the lines starting with #C, #W, #B and #S are optional. All other lines are ignored. #N must head the first line specifying the number of atoms in the configuration and an integer flag to control whether to use or to ignore force and stress information in this configuration. #F signifies the last header line. All parameters except the '' | + | The lines starting with '' |
- | ;natoms | + | **natoms**\\ |
- | :number of atoms in configuration | + | < |
- | ;useforce | + | |
- | :if 0, forces from this configuration are ignored | + | |
- | ;boxi.j | + | |
- | :components of box vectors of unit cell | + | |
- | ;weight | + | |
- | :all contributions to the error sum from this configuration will be multiplied with this weight | + | |
- | ;coh_eng | + | |
- | :cohesive energy per atom | + | |
- | ; | + | |
- | :components of stress tensor | + | |
- | Lines beginning with #B describe the [[Box of Contributing Particles]] and are optional. | + | **useforce**\\ |
+ | < | ||
- | The #C line contains information about the chemical elements and the corresponding atom types contained in this configuration. The elements are assigned to the corresponding atom types and have to be consistent throughout the configuration file. | + | **boxi.j**\\ |
+ | < | ||
- | ''' | + | **weight**\\ |
+ | < | ||
- | In all directions the sample should have a size of at least the potential cutoff distance. This distance is measured perpendicular to the corresponding face. If this is not the case, additional periodic copies of the sample will be used for the simulation. | + | **coh_eng**\\ |
+ | < | ||
- | ==== Deprecated header format ==== | + | **stress_ij**\\ |
+ | < | ||
- | This " | + | Lines beginning with '' |
+ | The ''# | ||
+ | |||
+ | **Please note:** | ||
+ | |||
+ | In all directions the sample should have a size of at least the potential cutoff distance. This distance is measured perpendicular to the corresponding face. If this is not the case, additional periodic copies of the configuration will be used for the simulation. | ||
+ | |||
+ | === Deprecated header format | ||
+ | |||
+ | This " | ||
+ | |||
+ | < | ||
| | ||
| | ||
Line 59: | Line 72: | ||
| | ||
| | ||
+ | </ | ||
The parameters have the same meaning as in the new header. The parameter useforce is assumed to be 1, i.e. the forces are used as reference data. | The parameters have the same meaning as in the new header. The parameter useforce is assumed to be 1, i.e. the forces are used as reference data. | ||
- | == Body == | + | ===== |
- | Following the header, there is one line for each atom. The format of each line, described also in the header, is as follows: | + | Following the header, there is one line for each atom. The format of each line looks like this: |
- | type x y z f_x f_y f_z | + | < |
These items stand for: | These items stand for: | ||
- | ;type | ||
- | :type of the atom; must be in the range [0, .., ntypes-1] | ||
- | ;x, y, z | ||
- | :absolute coordinates of the atom | ||
- | ;f_x, f_y, f_z | ||
- | :net force components on the atom | ||
- | Please note that the forces | + | **type**\\ |
+ | < | ||
+ | |||
+ | **x, y, z**\\ | ||
+ | < | ||
+ | |||
+ | **f_x, f_y, f_z**\\ | ||
+ | < | ||
+ | |||
+ | Please note that the forces | ||
- | ==== Boundary Conditions | + | === Boundary Conditions |
- | '' | + | //potfit// uses **periodic boundary conditions**. If a particle coordinate is not within the simulation box, it is mapped back into the simulation box. |
- | ==== Multiple Configurations ==== | + | ===== |
- | Multiple configuration files can just be concatenated. | + | Multiple configuration files can just be concatenated. |
config/main.1362054193.txt.gz · Last modified: 2013/02/28 13:23 by daniel