| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
#ifndef BALL_MOLMEC_MMFF94_MMFF94_H |
| 10 |
#define BALL_MOLMEC_MMFF94_MMFF94_H |
| 11 |
|
| 12 |
#ifndef BALL_COMMON_H |
| 13 |
# include <BALL/common.h> |
| 14 |
#endif |
| 15 |
|
| 16 |
#ifndef BALL_MOLMEC_COMMON_FORCEFIELD_H |
| 17 |
# include <BALL/MOLMEC/COMMON/forceField.h> |
| 18 |
#endif |
| 19 |
|
| 20 |
#ifndef BALL_KERNEL_SYSTEM_H |
| 21 |
# include <BALL/KERNEL/system.h> |
| 22 |
#endif |
| 23 |
|
| 24 |
#ifndef BALL_MOLMEC_MMFF94_MMFF94PARAMETERS_H |
| 25 |
# include <BALL/MOLMEC/MMFF94/MMFF94Parameters.h> |
| 26 |
#endif |
| 27 |
|
| 28 |
#ifndef BALL_MOLMEC_MMFF94_MMFF94PROCESSORS_H |
| 29 |
# include <BALL/MOLMEC/MMFF94/MMFF94Processors.h> |
| 30 |
#endif |
| 31 |
|
| 32 |
#ifndef BALL_DATATYPE_HASHSET_H |
| 33 |
# include <BALL/DATATYPE/hashSet.h> |
| 34 |
#endif |
| 35 |
|
| 36 |
#ifndef BALL_STRUCTURE_KEKULIZER_H |
| 37 |
# include <BALL/STRUCTURE/kekulizer.h> |
| 38 |
#endif |
| 39 |
|
| 40 |
#include <vector> |
| 41 |
|
| 42 |
namespace BALL |
| 43 |
{ |
| 44 |
using std::vector; |
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
class BALL_EXPORT MMFF94 |
| 50 |
: public ForceField |
| 51 |
{ |
| 52 |
public: |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
struct BALL_EXPORT Option |
| 61 |
{ |
| 62 |
|
| 63 |
|
| 64 |
static const char* FOLDER; |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
static const char* ASSIGN_CHARGES; |
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
static const char* ASSIGN_TYPENAMES; |
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
static const char* ASSIGN_TYPES; |
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
static const char* OVERWRITE_CHARGES; |
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
static const char* OVERWRITE_TYPENAMES; |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
static const char* NONBONDED_CUTOFF; |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
static const char* VDW_CUTOFF; |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
static const char* VDW_CUTON; |
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
static const char* ELECTROSTATIC_CUTOFF; |
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
static const char* ELECTROSTATIC_CUTON; |
| 109 |
|
| 110 |
|
| 111 |
static const char* DISTANCE_DEPENDENT_DIELECTRIC; |
| 112 |
}; |
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
struct BALL_EXPORT Default |
| 117 |
{ |
| 118 |
|
| 119 |
|
| 120 |
static const char* FOLDER; |
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
static const bool ASSIGN_CHARGES; |
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
static const bool ASSIGN_TYPENAMES; |
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
static const bool ASSIGN_TYPES; |
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
static const bool OVERWRITE_CHARGES; |
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
static const bool OVERWRITE_TYPENAMES; |
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
static const float NONBONDED_CUTOFF; |
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
static const float VDW_CUTOFF; |
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
static const float VDW_CUTON; |
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
static const float ELECTROSTATIC_CUTOFF; |
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
static const float ELECTROSTATIC_CUTON; |
| 161 |
|
| 162 |
|
| 163 |
static const bool DISTANCE_DEPENDENT_DIELECTRIC; |
| 164 |
}; |
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
BALL_CREATE(MMFF94) |
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
MMFF94(); |
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
MMFF94(System& system); |
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
MMFF94(System& system, const Options& options); |
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
MMFF94(const MMFF94& force_field); |
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
virtual ~MMFF94(); |
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
const MMFF94& operator = (const MMFF94& force_field) |
| 201 |
; |
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
virtual void clear() |
| 206 |
; |
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
virtual bool specificSetup(); |
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
|
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
double getStretchEnergy() const; |
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
double getBendEnergy() const; |
| 230 |
|
| 231 |
|
| 232 |
double getStretchBendEnergy() const; |
| 233 |
|
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
double getTorsionEnergy() const; |
| 238 |
|
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
double getNonbondedEnergy() const; |
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
double getESEnergy() const; |
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
double getVdWEnergy() const; |
| 251 |
|
| 252 |
|
| 253 |
double getPlaneEnergy() const; |
| 254 |
|
| 255 |
|
| 256 |
|
| 257 |
bool hasInitializedParameters() const; |
| 258 |
|
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
Size getUpdateFrequency() const; |
| 263 |
|
| 264 |
|
| 265 |
virtual String getResults() const |
| 266 |
; |
| 267 |
|
| 268 |
|
| 269 |
const vector<Bond*> getBonds() const { return bonds_;} |
| 270 |
|
| 271 |
|
| 272 |
const vector<HashSet<Atom*> >& getRings() const { return rings_;} |
| 273 |
|
| 274 |
|
| 275 |
const vector<HashSet<Atom*> >& getAromaticRings() const { return aromatic_rings_;} |
| 276 |
|
| 277 |
|
| 278 |
bool isInOneAromaticRing(const Bond& bond) const; |
| 279 |
|
| 280 |
|
| 281 |
bool assignMMFF94BondType(Bond& bond) const; |
| 282 |
|
| 283 |
|
| 284 |
const vector<MMFF94AtomType>& getAtomTypes() const { return atom_types_.getAtomTypes();} |
| 285 |
|
| 286 |
|
| 287 |
const MMFF94StretchParameters& getStretchParameters() const { return bond_parameters_;} |
| 288 |
|
| 289 |
|
| 290 |
const MMFF94AtomTypeEquivalences & getEquivalences() const { return equivalences_;} |
| 291 |
|
| 292 |
|
| 293 |
bool areInOneRing(vector<Atom*> v, Size ring_size = 0) const; |
| 294 |
|
| 295 |
|
| 296 |
bool areInOneAromaticRing(const vector<Atom*>& v, Size ring_size = 0) const; |
| 297 |
|
| 298 |
|
| 299 |
|
| 300 |
|
| 301 |
bool checkAtomType(Atom& atom); |
| 302 |
|
| 303 |
|
| 304 |
|
| 305 |
protected: |
| 306 |
|
| 307 |
void insertComponents_(); |
| 308 |
|
| 309 |
void transformAromaticBonds_(); |
| 310 |
void collectBonds_(); |
| 311 |
void assignBondTypes_(); |
| 312 |
void collectRings_(); |
| 313 |
|
| 314 |
String folder_; |
| 315 |
MMFF94AtomTypes atom_types_; |
| 316 |
MMFF94StretchParameters bond_parameters_; |
| 317 |
MMFF94AtomTypeEquivalences equivalences_; |
| 318 |
MMFF94ESParameters es_parameters_; |
| 319 |
vector<HashSet<Atom*> > rings_; |
| 320 |
vector<HashSet<Atom*> > aromatic_rings_; |
| 321 |
bool parameters_initialized_; |
| 322 |
vector<Bond*> bonds_; |
| 323 |
MMFF94AtomTyper atom_typer_; |
| 324 |
MMFF94ChargeProcessor charge_processor_; |
| 325 |
Kekuliser kekuliser_; |
| 326 |
HashSet<Bond*> aromatic_bonds_; |
| 327 |
}; |
| 328 |
|
| 329 |
} |
| 330 |
|
| 331 |
#endif |