MCMoveStepDependent
public class MCMoveAtomInRegion extends MCMoveAtom
Modifier and Type | Field | Description |
---|---|---|
protected int |
nAttempts |
|
protected Vector |
oldPosition |
|
protected double |
xMax |
|
protected double |
xMin |
moveTracker, nominalFrequency, potential
affectedAtomIterator, atom, atomSource, energyMeter, fixOverlap, random, space, translationVector, uNew, uOld
box, perParticleFrequency
stepSize, 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, setTracker
acceptNotify, affectedAtoms, energyChange, getAtomSource, getChi, rejectNotify, setAtomSource, setBox
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toString
getStepSize, getStepSizeDimension, getStepSizeMax, getStepSizeMaxDimension, getStepSizeMin, getStepSizeMinDimension, setStepSize, setStepSizeMax, setStepSizeMin
protected 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()
MCMove
doTrial
in class MCMoveAtom