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