initial checkin
[physik/posic.git] / posic.h
1 /*
2  * posic.h - precipitation process of silicon carbide in silicon
3  *
4  * author: Frank Zirkelbach <hackbard@hackdaworl.org>
5  *
6  */
7
8 #define _GNU_SOURCE
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <string.h>
12 #include <unistd.h>
13 #include <sys/types.h>
14 #include <sys/stat.h>
15 #include <fcntl.h>
16
17 #ifndef POSIC_H
18 #define POSIC_H
19
20 #define LEN_X 5
21 #define LX (1.0*LEN_X/2)
22 #define LEN_Y 5
23 #define LY (1.0*LEN_Y/2)
24 #define LEN_Z 5
25 #define LZ (1.0*LEN_Z/2)
26
27 #define RUNS 1000
28 #define TAU 0.001
29
30 #define R_CUTOFF 2
31 #define R2_CUTOFF (R_CUTOFF*R_CUTOFF)
32
33 #define SI_M 1
34 #define SI_LC 0.543105
35 #define LJ_SIGMA SI_LC
36 #define LJ_SIGMA_02 (LJ_SIGMA*LJ_SIGMA)
37 #define LJ_SIGMA_06 (LJ_SIGMA_02*LJ_SIGMA_02*LJ_SIGMA_02)
38 #define LJ_SIGMA_12 (LJ_SIGMA_06*LJ_SIGMA_06)
39
40 #define AMOUNT_SI ((LEN_X/SI_LC)*(LEN_Y/SI_LC)*(LEN_Z/SI_LC)*2)
41
42 typedef struct s_atom {
43         double x;
44         double y;
45         double z;
46         double vx;
47         double vy;
48         double vz;
49         double fx;
50         double fy;
51         double fz;
52 } t_atom;
53
54 #endif