SelectTwoSites

class SelectTwoSites : 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.

Public Functions

int mobile_site() const

Return the mobile site.

int mobile_site2() const

Return the second mobile site.

void precompute(System *system)

mobile is 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.

  • mobile_site2: index of the second mobile site.

  • particle_type2: type of particle for second site. If -1, use the same particle (default: -1).