ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/types/ShiftedMorseInteractionType.hpp
(Generate patch)

Comparing trunk/OOPSE-4/src/types/ShiftedMorseInteractionType.hpp (file contents):
Revision 3151 by chuckv, Fri Jul 6 18:13:40 2007 UTC vs.
Revision 3162 by chuckv, Thu Jul 12 23:20:22 2007 UTC

# Line 48 | Line 48 | namespace oopse {
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines