IntegratorPT.MCMoveSwappublic 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, toStringpublic static final MCMoveSwapCluster.SwapFactory FACTORY
public MCMoveSwapCluster(IntegratorMC integrator1, IntegratorMC integrator2, Space space)
public boolean doTrial()
MCMovepublic double getChi(double temperature)
MCMovepublic void acceptNotify()
acceptNotify in class MCMovepublic void rejectNotify()
MCMoverejectNotify in class MCMovepublic double energyChange(Box box)
MCMoveenergyChange in class MCMovepublic Box[] swappedBoxes()
swappedBoxes in interface IntegratorPT.MCMoveSwappublic AtomIterator affectedAtoms(Box p)
MCMoveaffectedAtoms in class MCMove