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.
-
bool select(const Select &perturbed, System *system, Random *random, TrialSelect *previous_select)
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.
-
int anchor_site() const