IntegratorPT.MCMoveSwap
public class MCMoveSwapConfiguration extends MCMove implements IntegratorPT.MCMoveSwap
Modifier and Type | Class | Description |
---|---|---|
protected static class |
MCMoveSwapConfiguration.SwapFactory |
Modifier and Type | Field | Description |
---|---|---|
static MCMoveSwapConfiguration.SwapFactory |
FACTORY |
moveTracker, nominalFrequency, potential
Constructor | Description |
---|---|
MCMoveSwapConfiguration(IntegratorBox integrator1,
IntegratorBox 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() |
Performs no action; nothing required when move rejected.
|
Box[] |
swappedBoxes() |
Implementation of MCMoveSwap interface
|
getNominalFrequency, getTracker, setTracker, toString
public static final MCMoveSwapConfiguration.SwapFactory FACTORY
public MCMoveSwapConfiguration(IntegratorBox integrator1, IntegratorBox integrator2, Space space)
public boolean doTrial()
MCMove
public double getChi(double temperature)
MCMove
public void acceptNotify()
acceptNotify
in class MCMove
java.lang.RuntimeException
- wrapping a ConfigurationOverlapException if overlap is detected in either boxpublic void rejectNotify()
rejectNotify
in class MCMove
public Box[] swappedBoxes()
swappedBoxes
in interface IntegratorPT.MCMoveSwap
public double energyChange(Box box)
MCMove
energyChange
in class MCMove
public AtomIterator affectedAtoms(Box p)
MCMove
affectedAtoms
in class MCMove