| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
#ifndef BALL_MOLMEC_MMFF94_MMFF94OUTOFPLANEBEND_H |
| 8 |
#define BALL_MOLMEC_MMFF94_MMFF94OUTOFPLANEBEND_H |
| 9 |
|
| 10 |
#ifndef BALL_MOLMEC_COMMON_FORCEFIELDCOMPONENT_H |
| 11 |
# include <BALL/MOLMEC/COMMON/forceFieldComponent.h> |
| 12 |
#endif |
| 13 |
|
| 14 |
#ifndef BALL_MOLMEC_COMMON_FORCEFIELD_H |
| 15 |
# include <BALL/MOLMEC/COMMON/forceField.h> |
| 16 |
#endif |
| 17 |
|
| 18 |
#ifndef BALL_MOLMEC_MMFF94_MMFF94PARAMETERS_H |
| 19 |
# include <BALL/MOLMEC/MMFF94/MMFF94Parameters.h> |
| 20 |
#endif |
| 21 |
|
| 22 |
namespace BALL |
| 23 |
{ |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
class BALL_EXPORT MMFF94OutOfPlaneBend |
| 28 |
: public ForceFieldComponent |
| 29 |
{ |
| 30 |
public: |
| 31 |
|
| 32 |
struct BALL_EXPORT OutOfPlaneBend |
| 33 |
{ |
| 34 |
Atom *i, *j, *k, *l; |
| 35 |
double k_oop; |
| 36 |
|
| 37 |
double energy; |
| 38 |
}; |
| 39 |
|
| 40 |
|
| 41 |
#define MMFF94_OUTOFPLANE_ENABLED "enable OutOfPlane" |
| 42 |
|
| 43 |
BALL_CREATE(MMFF94OutOfPlaneBend) |
| 44 |
|
| 45 |
|
| 46 |
MMFF94OutOfPlaneBend(); |
| 47 |
|
| 48 |
|
| 49 |
MMFF94OutOfPlaneBend(ForceField& force_field); |
| 50 |
|
| 51 |
|
| 52 |
MMFF94OutOfPlaneBend(const MMFF94OutOfPlaneBend& to_copy); |
| 53 |
|
| 54 |
|
| 55 |
virtual ~MMFF94OutOfPlaneBend(); |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
virtual bool setup(); |
| 61 |
|
| 62 |
|
| 63 |
virtual double updateEnergy(); |
| 64 |
|
| 65 |
|
| 66 |
virtual void updateForces(); |
| 67 |
|
| 68 |
|
| 69 |
const vector<OutOfPlaneBend>& getOutOfPlaneBends() const { return bends_;} |
| 70 |
|
| 71 |
|
| 72 |
inline void AddDV3_(Vector3& f3, const TVector3<double> d3); |
| 73 |
|
| 74 |
private: |
| 75 |
vector<OutOfPlaneBend> bends_; |
| 76 |
MMFF94PlaneParameters parameters_; |
| 77 |
}; |
| 78 |
|
| 79 |
} |
| 80 |
|
| 81 |
#endif |