48 UreyBradleyBend::UreyBradleyBend(Atom* atom1, Atom* atom2, Atom* atom3,
49 UreyBradleyBendType* bt) :
50 Bend(atom1, atom2, atom3, bt),
52 bond_ =
new Bond(atom1, atom3, bt->getHarmonicBondType());
55 UreyBradleyBend::~UreyBradleyBend() {
delete bond_; }
57 void UreyBradleyBend::calcForce(RealType& angle,
bool doParticlePot) {
58 Bend::calcForce(angle, doParticlePot);
59 bond_->calcForce(doParticlePot);
60 if (doParticlePot) { atoms_[1]->addParticlePot(bond_->getPotential()); }
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.