48 |
|
/** |
49 |
|
* @class ShiftedMorseInteractionType |
50 |
|
* |
51 |
< |
* ShiftedMorseInteractionType is one of the basic Metal-to-NonMetal interaction types. |
51 |
> |
* ShiftedMorseInteractionType is one of the basic Metal-to-NonMetal |
52 |
> |
* interaction types. |
53 |
> |
* |
54 |
|
* Formula is V = D0*exp(-beta0*(r-r0))*(exp(-beta0(r-r0)-2) |
55 |
|
*/ |
56 |
|
class ShiftedMorseInteractionType : public NonBondedInteractionType { |
57 |
|
|
58 |
|
public: |
59 |
< |
|
60 |
< |
ShiftedMorseInteractionType( RealType myD0, RealType myBeta0, RealType myR0) { |
59 |
> |
|
60 |
> |
ShiftedMorseInteractionType( RealType myD0, RealType myBeta0, |
61 |
> |
RealType myR0) { |
62 |
|
D0 = myD0; |
63 |
< |
beta0 = myBeta0; |
64 |
< |
r0 = myR0; |
63 |
> |
beta0 = myBeta0; |
64 |
> |
r0 = myR0; |
65 |
|
} |
66 |
|
|
67 |
< |
virtual void tellFortran() { |
67 |
> |
virtual void tellFortran(int atid1, int atid2) { |
68 |
> |
mnmit.MNMInteractionType = MNM_SHIFTEDMORSE; |
69 |
> |
mnmit.metal_atid = atid1; |
70 |
> |
mnmit.nonmetal_atid = atid2; |
71 |
> |
mnmit.R0 = r0; |
72 |
> |
mnmit.D0 = D0; |
73 |
> |
mnmit.beta0 = beta0; |
74 |
> |
|
75 |
> |
addMNMInteraction(&mnmit); |
76 |
|
} |
66 |
– |
|
67 |
– |
private: |
77 |
|
|
78 |
< |
RealType D0; |
79 |
< |
RealType beta0; |
80 |
< |
RealType r0; |
81 |
< |
|
78 |
> |
private: |
79 |
> |
RealType D0; |
80 |
> |
RealType beta0; |
81 |
> |
RealType r0; |
82 |
|
}; |
83 |
|
} |
84 |
|
#endif |