SelectTwoParticles

class SelectTwoParticles : public feasst::TrialSelect

Randomly Select two particles of different types.

Public Functions

void precompute(System *system)

Precompute quantities before simulation for optimization.

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

  • particle_types: two comma-separated names of particles types that must be different.