MCMoveStepDependent
public class MCMoveAtomCoupled extends MCMoveBoxStep
Modifier and Type | Field | Description |
---|---|---|
protected AtomIteratorArrayListSimple |
affectedAtomIterator |
|
protected AtomArrayList |
affectedAtomList |
|
protected IAtom |
atom0 |
|
protected IAtom |
atom1 |
|
protected AtomSetSinglet |
atomSinglet |
|
protected AtomSource |
atomSource |
|
protected IPotentialAtomic |
constraintPotential |
|
protected boolean |
doExcludeNonNeighbors |
|
protected MeterPotentialEnergy |
energyMeter |
|
protected AtomPair |
pair |
|
protected IPotentialAtomic[] |
pairPotential |
|
protected int |
pairPotentialIndex |
|
protected IRandom |
random |
|
protected Vector |
translationVector |
|
protected double |
uNew |
|
protected double |
uOld |
moveTracker, nominalFrequency, potential
box, perParticleFrequency
stepSize, stepSizeMax, stepSizeMin
Constructor | Description |
---|---|
MCMoveAtomCoupled(PotentialMaster potentialMaster,
MeterPotentialEnergy energyMeter,
IRandom random,
Space _space) |
Modifier and Type | Method | Description |
---|---|---|
void |
acceptNotify() |
Method called by IntegratorMC in the event that the most recent trial is accepted.
|
AtomIterator |
affectedAtoms() |
|
boolean |
doTrial() |
Method to perform trial move.
|
double |
energyChange() |
|
AtomSource |
getAtomSource() |
|
double |
getChi(double temperature) |
Chi is the parameter within standard Metropolis Monte Carlo.
|
boolean |
getDoExcludeNonNeighbors() |
Returns true if the move does not explicitly calculate the potential for
atom pairs that are not neighbors (as determined by the potentialMaster).
|
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.
|
void |
setConstraint(IPotentialAtomic newConstraintPotential) |
|
void |
setDoExcludeNonNeighbors(boolean newDoExcludeNonNeighbors) |
Configures the move to not explicitly calculate the potential for atom
pairs that are not neighbors (as determined by the potentialMaster).
|
void |
setPotential(IPotentialAtomic newPotential) |
|
void |
setPotential(IPotentialAtomic[] newPotential) |
getNominalFrequency, getTracker, setTracker
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toString
getStepSize, getStepSizeDimension, getStepSizeMax, getStepSizeMaxDimension, getStepSizeMin, getStepSizeMinDimension, setStepSize, setStepSizeMax, setStepSizeMin
protected final AtomIteratorArrayListSimple affectedAtomIterator
protected final AtomArrayList affectedAtomList
protected final MeterPotentialEnergy energyMeter
protected final Vector translationVector
protected IAtom atom0
protected IAtom atom1
protected double uOld
protected double uNew
protected AtomSource atomSource
protected final IRandom random
protected IPotentialAtomic[] pairPotential
protected final AtomPair pair
protected final AtomSetSinglet atomSinglet
protected boolean doExcludeNonNeighbors
protected int pairPotentialIndex
protected IPotentialAtomic constraintPotential
public MCMoveAtomCoupled(PotentialMaster potentialMaster, MeterPotentialEnergy energyMeter, IRandom random, Space _space)
public void setPotential(IPotentialAtomic[] newPotential)
public void setPotential(IPotentialAtomic newPotential)
public void setConstraint(IPotentialAtomic newConstraintPotential)
public boolean doTrial()
public double getChi(double temperature)
MCMove
public double energyChange()
energyChange
in class MCMoveBox
public void acceptNotify()
acceptNotify
in class MCMove
public void rejectNotify()
rejectNotify
in class MCMove
public AtomIterator affectedAtoms()
affectedAtoms
in class MCMoveBox
public void setBox(Box p)
MCMoveBox
public AtomSource getAtomSource()
public void setAtomSource(AtomSource source)
source
- The atomSource to set.public void setDoExcludeNonNeighbors(boolean newDoExcludeNonNeighbors)
public boolean getDoExcludeNonNeighbors()