-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Wouldn't it be possible for a non-ring fragment to have improper torsions due to non-ring sp2 atoms, whether represented as harmonic impropers or improper dihedrals? If so, the code very much looks like they wouldn't be taken into account for the dE_frag in CBMC moves, since the fragment growth routines only check the fragment energy for ring fragments, apparently making the assumption that only bond angle energy influenced the fragment conformation for non-ring fragments. This assumption is probably typically correct, but not necessarily always correct. The Atom_Displacement subroutine called by the fragment driver computes not only angle energy, but also dihedral energy (which may include an improper torsion input as a dihedral), improper energy, and nonbonded energy. Even fragments without any sp2 hybridization could have nonzero nonbonded intramolecular energy if the 1-2 or 1-3 intramolecular scaling factors are nonzero, which may be rare but is allowed by Cassandra.
I also noticed that all angle energy is included in both dE_frag and dE (via dE_intra) for CBMC moves (and Widom insertions), and the angle energy would just cancel out when computing the move probability or widom_var as dE_frag is subtracted from dE. I don't think angle energy should be computed at all for those moves because it doesn't matter.