MCMoveStepDependentpublic class MCMoveAtomInRegion extends MCMoveAtom
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
nAttempts |
|
protected Vector |
oldPosition |
|
protected double |
xMax |
|
protected double |
xMin |
moveTracker, nominalFrequency, potentialaffectedAtomIterator, atom, atomSource, energyMeter, fixOverlap, random, space, translationVector, uNew, uOldbox, perParticleFrequencystepSize, stepSizeMax, stepSizeMin| Constructor | Description |
|---|---|
MCMoveAtomInRegion(IRandom random,
PotentialMaster potentialMaster,
Space _space) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
doTrial() |
Method to perform trial move.
|
void |
setXRange(double newXMin,
double newXMax,
int maxAttempts) |
Defines the region atoms must be selected from.
|
getNominalFrequency, getTracker, setTrackeracceptNotify, affectedAtoms, energyChange, getAtomSource, getChi, rejectNotify, setAtomSource, setBoxaffectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toStringgetStepSize, getStepSizeDimension, getStepSizeMax, getStepSizeMaxDimension, getStepSizeMin, getStepSizeMinDimension, setStepSize, setStepSizeMax, setStepSizeMinprotected int nAttempts
protected double xMin
protected double xMax
protected Vector oldPosition
public MCMoveAtomInRegion(IRandom random, PotentialMaster potentialMaster, Space _space)
public void setXRange(double newXMin,
double newXMax,
int maxAttempts)
newXMax > newXMin, then newXMax > x > newXMin.
If newXMax < newXMin, then newXMax < x < newXMin (the region spans the
boundary, excluding the middle of the box)public boolean doTrial()
MCMovedoTrial in class MCMoveAtom