class TrialSelectAngle : public feasst::TrialSelectBond

A random particle of given type is selected if previously perturbed sites are not available. Select a single angle from two given anchor sites and one mobile site. The mobile site is directly bonded to the first anchor site, and the second anchor site is bonded to the first anchor site. The angle is defined as: anchor2 - anchor1 - mobile, where anchor1 is the vertex.

In 2D, angle i-j-k is not the same as angle k-j-i. Thus, TrialSelectAngle sites in the order mobile-anchor-anchor2 must be in the same order as in FileParticle.

Subclassed by feasst::SelectBranch, feasst::TrialSelectDihedral

Public Functions

int anchor_site2() const

Return the second anchor site.

void precompute(System *system)

Same as TrialSelectBond, but also add the second anchor site, and add angle_type as an anchor property.