public class MCMoveAtomSwap extends MCMoveBox
Modifier and Type | Field | Description |
---|---|---|
protected AtomIteratorArrayListSimple |
affectedAtomIterator |
|
protected IAtom |
atom |
|
protected IAtom |
atom2 |
|
protected AtomIteratorAtomDependent |
atomIterator |
|
protected IAtomList |
atoms |
|
protected AtomSource |
atomSource |
|
protected Vector |
dr |
|
protected double |
nbrDistance |
|
protected AtomArrayList |
nbrList |
|
protected P1ImageHarmonic |
p1 |
|
protected IRandom |
random |
|
protected AtomSetSinglet |
singlet |
|
protected Space |
space |
|
protected double |
uNew |
|
protected double |
uOld |
moveTracker, nominalFrequency, potential
box, perParticleFrequency
Constructor | Description |
---|---|
MCMoveAtomSwap(IRandom random,
PotentialMaster potentialMaster,
Space _space,
P1ImageHarmonic p1) |
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.
|
double |
getNbrDistance() |
|
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 |
setNbrDistance(double newNbrDistance) |
getNominalFrequency, getTracker, setTracker
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toString
protected final AtomIteratorArrayListSimple affectedAtomIterator
protected final IRandom random
protected final AtomArrayList nbrList
protected final Vector dr
protected final P1ImageHarmonic p1
protected final AtomSetSinglet singlet
protected IAtom atom
protected IAtom atom2
protected double uOld
protected double uNew
protected AtomSource atomSource
protected Space space
protected IAtomList atoms
protected AtomIteratorAtomDependent atomIterator
protected double nbrDistance
public MCMoveAtomSwap(IRandom random, PotentialMaster potentialMaster, Space _space, P1ImageHarmonic p1)
public double getNbrDistance()
public void setNbrDistance(double newNbrDistance)
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.