1 |
< |
/* |
1 |
> |
/* |
2 |
|
* Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. |
3 |
|
* |
4 |
|
* The University of Notre Dame grants you ("Licensee") a |
51 |
|
|
52 |
|
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 |
57 |
< |
*/ |
58 |
< |
class BondType { |
59 |
< |
public: |
60 |
< |
BondType(double myR0) : r0(myR0) {} |
61 |
< |
virtual ~BondType() {} |
62 |
< |
|
63 |
< |
virtual void calcForce(double r, double& V, double& dVdr) = 0; |
64 |
< |
double getEquilibriumBondLength() {return r0;} |
65 |
< |
void setEquilibriumBondLength(double myR0) { r0 = myR0; } |
66 |
< |
|
67 |
< |
protected: |
68 |
< |
double r0; /**equilibrium bond length< */ |
69 |
< |
}; |
70 |
< |
|
71 |
< |
|
54 |
> |
/** |
55 |
> |
* @class BondType BondType.hpp "types/BondType.hpp" |
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 |
> |
|
64 |
> |
virtual void calcForce(RealType r, RealType& V, RealType& dVdr) = 0; |
65 |
> |
RealType getEquilibriumBondLength() {return r0;} |
66 |
> |
void setEquilibriumBondLength(RealType myR0) { r0 = myR0; } |
67 |
> |
|
68 |
> |
protected: |
69 |
> |
RealType r0; /**equilibrium bond length< */ |
70 |
> |
}; |
71 |
> |
|
72 |
> |
|
73 |
|
} //end namespace oopse |
74 |
|
#endif //TYPES_BONDTYPE_HPP |