TrialSelectBond

class TrialSelectBond : public feasst::TrialSelect

A random particle of given type is selected if previously perturbed sites are not available. Select a single bond from given anchor to mobile sites.

Subclassed by feasst::TrialSelectAngle

Public Functions

int anchor_site() const

Return the anchor site.

int mobile_site() const

Return the mobile site.

void precompute(System *system)

bond_type is added as a property. Mobile and anchor are sized.

bool select(const Select &perturbed, System *system, Random *random)

Perform the selection as implemented in the derived class. Return false if the selection cannot be made. Otherwise, return true.

param perturbed:

Perturbed is included to allow chaining of selection based on previous.

Arguments

  • mobile_site: index of the mobile site.

  • anchor_site: index of the anchor site.

  • ignore_bond: if true, do not try to find a bond between mobile and anchor. This is used for generic reptations (default: false).

  • TrialSelect arguments.