IntegratorPT.MCMoveSwappublic 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, toStringpublic static final MCMoveSwapConfiguration.SwapFactory FACTORY
public MCMoveSwapConfiguration(IntegratorBox integrator1, IntegratorBox integrator2, Space space)
public boolean doTrial()
MCMovepublic double getChi(double temperature)
MCMovepublic void acceptNotify()
acceptNotify in class MCMovejava.lang.RuntimeException - wrapping a ConfigurationOverlapException if overlap is detected in either boxpublic void rejectNotify()
rejectNotify in class MCMovepublic Box[] swappedBoxes()
swappedBoxes in interface IntegratorPT.MCMoveSwappublic double energyChange(Box box)
MCMoveenergyChange in class MCMovepublic AtomIterator affectedAtoms(Box p)
MCMoveaffectedAtoms in class MCMove