IntegratorPT.MCMoveSwap
public class MCMoveSwapCluster extends MCMove implements IntegratorPT.MCMoveSwap
Modifier and Type | Class | Description |
---|---|---|
protected static class |
MCMoveSwapCluster.SwapFactory |
Modifier and Type | Field | Description |
---|---|---|
static MCMoveSwapCluster.SwapFactory |
FACTORY |
moveTracker, nominalFrequency, potential
Constructor | Description |
---|---|
MCMoveSwapCluster(IntegratorMC integrator1,
IntegratorMC integrator2,
Space space) |
Modifier and Type | Method | Description |
---|---|---|
void |
acceptNotify() |
Swaps positions of molecules in two boxes.
|
AtomIterator |
affectedAtoms(Box p) |
Returns an iterator that yields the atoms that were affected by the trial
move the last time doTrial was invoked (regardless of whether the move
was accepted).
|
boolean |
doTrial() |
Method to perform trial move.
|
double |
energyChange(Box box) |
Returns the change in the energy of the given box that results from the
trial move.
|
double |
getChi(double temperature) |
Chi is the parameter within standard Metropolis Monte Carlo.
|
void |
rejectNotify() |
Method called by IntegratorMC in the event that the most recent trial
move is rejected.
|
Box[] |
swappedBoxes() |
Implementation of MCMoveSwap interface
|
getNominalFrequency, getTracker, setTracker, toString
public static final MCMoveSwapCluster.SwapFactory FACTORY
public MCMoveSwapCluster(IntegratorMC integrator1, IntegratorMC integrator2, Space space)
public boolean doTrial()
MCMove
public double getChi(double temperature)
MCMove
public void acceptNotify()
acceptNotify
in class MCMove
public void rejectNotify()
MCMove
rejectNotify
in class MCMove
public double energyChange(Box box)
MCMove
energyChange
in class MCMove
public Box[] swappedBoxes()
swappedBoxes
in interface IntegratorPT.MCMoveSwap
public AtomIterator affectedAtoms(Box p)
MCMove
affectedAtoms
in class MCMove