| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
#ifndef BALL_MOLMEC_COMMON_STRETCHCOMPONENT_H |
| 7 |
#define BALL_MOLMEC_COMMON_STRETCHCOMPONENT_H |
| 8 |
|
| 9 |
#ifndef BALL_COMMON_H |
| 10 |
# include <BALL/common.h> |
| 11 |
#endif |
| 12 |
|
| 13 |
#ifndef BALL_MOLMEC_COMMON_FORCEFIELDCOMPONENT_H |
| 14 |
# include <BALL/MOLMEC/COMMON/forceFieldComponent.h> |
| 15 |
#endif |
| 16 |
|
| 17 |
#ifndef BALL_MOLMEC_PARAMETER_QUADRATICBONDSTRETCH_H |
| 18 |
# include <BALL/MOLMEC/PARAMETER/quadraticBondStretch.h> |
| 19 |
#endif |
| 20 |
|
| 21 |
namespace BALL |
| 22 |
{ |
| 23 |
class ForceField; |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
class BALL_EXPORT StretchComponent : public ForceFieldComponent |
| 31 |
{ |
| 32 |
public: |
| 33 |
BALL_CREATE(StretchComponent) |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
StretchComponent(); |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
StretchComponent(ForceField& force_field); |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
virtual ~StretchComponent(); |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
virtual double updateEnergy(); |
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
virtual void updateForces(); |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
protected: |
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
std::vector<QuadraticBondStretch::Data> stretch_; |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
QuadraticBondStretch stretch_parameters_; |
| 80 |
|
| 81 |
|
| 82 |
}; |
| 83 |
} |
| 84 |
|
| 85 |
#endif |