MCMoveStepDependent
public class MCMoveClusterAtomQ extends MCMoveAtom
Modifier and Type | Field | Description |
---|---|---|
protected MCMoveAtom |
mcMove |
moveTracker, nominalFrequency, potential
affectedAtomIterator, atom, atomSource, energyMeter, fixOverlap, random, space, translationVector, uNew, uOld
box, perParticleFrequency
stepSize, stepSizeMax, stepSizeMin
Constructor | Description |
---|---|
MCMoveClusterAtomQ(IRandom random,
Space space,
MCMoveAtom mcMove) |
Modifier and Type | Method | Description |
---|---|---|
void |
acceptNotify() |
Method called by IntegratorMC in the event that the most recent trial is
accepted.
|
AtomIterator |
affectedAtoms() |
|
AtomIterator |
affectedAtoms(Box aBox) |
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() |
|
double |
energyChange(Box aBox) |
Returns the change in the energy of the given box that results from the
trial move.
|
AtomSource |
getAtomSource() |
The AtomSource is used to select the atom at the beginning of the trial
|
Box |
getBox() |
|
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.
|
void |
setAtomSource(AtomSource source) |
|
void |
setBox(Box p) |
Sets the box on which this move acts.
|
java.lang.String |
toString() |
getNominalFrequency, getTracker, setTracker
isNominallyPerParticleFrequency
getStepSize, getStepSizeDimension, getStepSizeMax, getStepSizeMaxDimension, getStepSizeMin, getStepSizeMinDimension, setStepSize, setStepSizeMax, setStepSizeMin
protected final MCMoveAtom mcMove
public MCMoveClusterAtomQ(IRandom random, Space space, MCMoveAtom mcMove)
public boolean doTrial()
MCMove
doTrial
in class MCMoveAtom
public void setBox(Box p)
MCMoveBox
setBox
in class MCMoveAtom
public double getChi(double temperature)
MCMove
getChi
in class MCMoveAtom
temperature
- used to compute chipublic void rejectNotify()
MCMove
rejectNotify
in class MCMoveAtom
public void acceptNotify()
MCMove
acceptNotify
in class MCMoveAtom
public double energyChange()
energyChange
in class MCMoveAtom
public AtomIterator affectedAtoms()
affectedAtoms
in class MCMoveAtom
public AtomSource getAtomSource()
MCMoveAtom
getAtomSource
in class MCMoveAtom
public void setAtomSource(AtomSource source)
setAtomSource
in class MCMoveAtom
source
- The atomSource to set.public Box getBox()
public AtomIterator affectedAtoms(Box aBox)
MCMove
affectedAtoms
in class MCMoveBox
public double energyChange(Box aBox)
MCMove
energyChange
in class MCMoveBox