SelectParticlePivot

class SelectParticlePivot : public feasst::TrialSelect

Randomly selection a whole particle of given type to pivot. Exclude the pivot site from the mobile selection for optimized energy calc.

Public Functions

void precompute(System *system)

Precompute quantities before simulation for optimization.

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

  • pivot_site: set the site index in selection with which to use as the pivot for rotation (default: 0).