MCMoveAtomSwap
, MCMoveBiasUB
, MCMoveBiasUBMolecule
, MCMoveBoxStep
, MCMoveClusterDiagram
, MCMoveClusterReptateMulti
, MCMoveClusterRingPartialRegrow
, MCMoveClusterRingRegrow
, MCMoveClusterRingRegrowExchange
, MCMoveClusterRingRegrowOrientation
, MCMoveClusterRingScale
, MCMoveEinsteinCrystal
, MCMoveGeometricCluster
, MCMoveHarmonic
, MCMoveInsertDelete
, MCMoveMultiHarmonic
, MCMoveSemigrand
, MCMoveSpinCluster
, MCMoveSpinFlip
, MCMoveSwap
public abstract class MCMoveBox extends MCMove
Modifier and Type | Field | Description |
---|---|---|
protected Box |
box |
|
protected boolean |
perParticleFrequency |
Flag indicating whether nominal frequency is interpreted as a
perParticleFrequency, or as a full frequency.
|
moveTracker, nominalFrequency, potential
Constructor | Description |
---|---|
MCMoveBox(PotentialMaster potentialMaster) |
|
MCMoveBox(PotentialMaster potentialMaster,
MCMoveTracker acceptanceTracker) |
Modifier and Type | Method | Description |
---|---|---|
abstract 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).
|
abstract double |
energyChange() |
|
double |
energyChange(Box aBox) |
Returns the change in the energy of the given box that results from the
trial move.
|
Box |
getBox() |
|
boolean |
isNominallyPerParticleFrequency() |
Indicates whether this move should nominally be performed at a frequency
proportional to the number of molecules in the box.
|
void |
setBox(Box p) |
Sets the box on which this move acts.
|
java.lang.String |
toString() |
acceptNotify, doTrial, getChi, getNominalFrequency, getTracker, rejectNotify, setTracker
protected boolean perParticleFrequency
protected Box box
public MCMoveBox(PotentialMaster potentialMaster)
public MCMoveBox(PotentialMaster potentialMaster, MCMoveTracker acceptanceTracker)
public void setBox(Box p)
public Box getBox()
public AtomIterator affectedAtoms(Box aBox)
MCMove
affectedAtoms
in class MCMove
public abstract AtomIterator affectedAtoms()
public double energyChange(Box aBox)
MCMove
energyChange
in class MCMove
public abstract double energyChange()
public final boolean isNominallyPerParticleFrequency()
MCMove.nominalFrequency