45#include "primitives/SDKBend.hpp"
48 SDKBend::SDKBend(Atom* atom1, Atom* atom2, Atom* atom3, SDKBendType* bt) :
49 Bend(atom1, atom2, atom3, bt), bond_(NULL) {
50 bond_ =
new Bond(atom1, atom3, bt->getShiftedMieBondType());
53 SDKBend::~SDKBend() {
delete bond_; }
55 void SDKBend::calcForce(RealType& angle,
bool doParticlePot) {
56 Bend::calcForce(angle, doParticlePot);
57 bond_->calcForce(doParticlePot);
58 if (doParticlePot) { atoms_[1]->addParticlePot(bond_->getPotential()); }
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.