2 * mdrun.h - mdrun header file
4 * author: Frank Zirkelbach <frank.zirkelbach@physik.uni-augsburg.de>
11 #include <sys/types.h>
18 /* main molecular dynamics api */
22 #include "list/list.h"
25 #include "potentials/harmonic_oscillator.h"
26 #include "potentials/lennard_jones.h"
27 #include "potentials/albe.h"
29 #include "potentials/tersoff_orig.h"
31 #include "potentials/tersoff.h"
35 * datatypes & definitions
38 typedef struct s_stage {
44 #define STAGE_INSERT_ATOMS 0x01
45 #define STAGE_CONTINUE 0x02
46 #define STAGE_ANNEAL 0x03
47 #define STAGE_CHAATTR 0x04
48 #define STAGE_CHSATTR 0x05
50 typedef struct s_mdrun {
51 char cfile[128]; // config file
53 u8 intalgo; // integration algorithm
54 double timestep; // timestep
56 u8 potential; // potential
57 double cutoff; // cutoff radius
58 double nnd; // next neighbour distance
60 t_3dvec dim; // simulation volume
61 u8 pbcx; // periodic boundary conditions
65 int element1; // element 1
67 int element2; // element 2
69 double lc; // lattice constant
70 int lx; // amount of lc units
73 u8 lattice; // type of lattice
75 u8 sattr; // system attributes
76 double temperature; // temperature
77 double pressure; // pressure
80 int relax_steps; // amount of relaxation steps
82 int prerun; // amount of loops in first run
91 int avgskip; // average skip
92 char sdir[128]; // save root
94 t_list stage; // stages
95 int s_cnt; // stage counter
98 #define SATTR_PRELAX 0x01
99 #define SATTR_TRELAX 0x02
100 #define SATTR_AVGRST 0x04
102 typedef struct s_insert_atoms_params {
104 double x0,y0,z0,x1,y1,z1;
112 } t_insert_atoms_params;
114 #define INS_TOTAL 0x01
115 #define INS_REGION 0x02
118 typedef struct s_continue_params {
122 typedef struct s_anneal_params {
128 typedef struct s_chaattr_params {
136 #define CHAATTR_TOTALV 0x01
137 #define CHAATTR_REGION 0x02
138 #define CHAATTR_ELEMENT 0x04
140 typedef struct s_chsattr_params {
150 #define CHSATTR_PCTRL 0x01
151 #define CHSATTR_TCTRL 0x02
152 #define CHSATTR_PRELAX 0x04
153 #define CHSATTR_TRELAX 0x08
154 #define CHSATTR_AVGRST 0x10
155 #define CHSATTR_RSTEPS 0x20
158 * function prototypes