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

Comparing trunk/OOPSE-4/src/types/BondType.hpp (file contents):
Revision 3172 by tim, Wed May 17 21:51:42 2006 UTC vs.
Revision 3173 by gezelter, Fri Jul 13 18:10:52 2007 UTC

# Line 53 | Line 53 | namespace oopse {
53    
54    /**
55     * @class BondType BondType.hpp "types/BondType.hpp"
56 <   * BondType class is responsible for calculating the force and energy of the bond
56 >   * BondType class is responsible for calculating the force and
57 >   * energy of the bond
58     */
59    class BondType {
60    public:
61      BondType(RealType myR0) : r0(myR0) {}
62      virtual ~BondType() {}
63 <
63 >    
64      virtual void calcForce(RealType r, RealType& V, RealType& dVdr) = 0;
65      RealType getEquilibriumBondLength() {return r0;}
66      void setEquilibriumBondLength(RealType myR0) { r0 = myR0; }
67 <
67 >    
68    protected:        
69      RealType r0; /**equilibrium bond length< */
70    };    
71 <
72 <
71 >  
72 >  
73   } //end namespace oopse
74   #endif //TYPES_BONDTYPE_HPP    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines