initial checkin of the new concept approach
[physik/posic.git] / moldyn.h
1 /*
2  * moldyn.h - molecular dynamics library header file
3  *
4  * author: Frank Zirkelbach <frank.zirkelbach@physik.uni-augsburg.de>
5  *
6  */
7
8 #ifndef MOLDYN_H
9 #define MOLDYN_H
10
11 #include "math/math.h"
12
13 /* datatypes */
14
15 typedef struct s_atom {
16         t_3dvec r;      /* positions */
17         t_3dvec v;      /* velocities */
18         t_3dvec f;      /* forces */
19         int element;    /* number of element in pse */
20         double mass;    /* atom mass */
21 } t_atom;
22
23
24 /* defines */
25
26 #define FCC                     0x01
27 #define DIAMOND                 0x02
28
29 #define C                       0x06
30 #define M_C                     6.0
31
32 #define Si                      0x0e
33 #define M_SI                    14.0
34 #define LC_SI                   5.43105
35
36 /* function prototypes */
37
38 int create_lattice(unsigned char type,int element,double mass,double lc,
39                    t_3dvec *dim,t_atom **atom);
40
41 #endif