1 |
#ifdef __C |
2 |
#ifndef __FMNMINTERACTIONS |
3 |
#define __FMNMINTERACTIONS |
4 |
|
5 |
#define MNM_NUM_MNM_TYPES 4 |
6 |
#define MNM_LENNARDJONES 1 |
7 |
#define MNM_REPULSIVEMORSE 2 |
8 |
#define MNM_SHIFTEDMORSE 3 |
9 |
#define MNM_MAW 4 |
10 |
|
11 |
typedef struct{ |
12 |
int MNMInteractionType; |
13 |
int metal_atid; |
14 |
int nonmetal_atid; |
15 |
RealType R0; |
16 |
RealType D0; |
17 |
RealType beta0; |
18 |
RealType betaH; |
19 |
RealType alpha; |
20 |
RealType gamma; |
21 |
RealType sigma; |
22 |
RealType epsilon; |
23 |
} MNMtype; |
24 |
|
25 |
|
26 |
#endif |
27 |
#endif /*__C*/ |
28 |
|
29 |
#ifdef __FORTRAN90 |
30 |
|
31 |
INTEGER, PARAMETER:: MNM_NUM_MNM_TYPES = 4 |
32 |
INTEGER, PARAMETER:: MNM_LENNARDJONES = 1 |
33 |
INTEGER, PARAMETER:: MNM_REPULSIVEMORSE = 2 |
34 |
INTEGER, PARAMETER:: MNM_SHIFTEDMORSE = 3 |
35 |
INTEGER, PARAMETER:: MNM_MAW = 4 |
36 |
|
37 |
type :: MNMtype |
38 |
SEQUENCE |
39 |
integer :: MNMInteractionType |
40 |
integer :: metal_atid; |
41 |
integer :: nonmetal_atid; |
42 |
real(kind=dp) :: R0 |
43 |
real(kind=dp) :: D0 |
44 |
real(kind=dp) :: beta0 |
45 |
real(kind=dp) :: betaH |
46 |
real(kind=dp) :: alpha |
47 |
real(kind=dp) :: gamma |
48 |
real(kind=dp) :: sigma |
49 |
real(kind=dp) :: epsilon |
50 |
end type MNMtype |
51 |
|
52 |
#endif |