public class MCMoveSwap extends MCMoveBox
Modifier and Type | Field | Description |
---|---|---|
protected IAtom |
atomA |
|
protected IAtom |
atomB |
|
protected MeterPotentialEnergy |
meterPE |
|
protected IRandom |
random |
|
protected ISpecies |
speciesA |
|
protected ISpecies |
speciesB |
|
protected Vector |
tmp |
|
protected double |
uNew |
|
protected double |
uOld |
moveTracker, nominalFrequency, potential
box, perParticleFrequency
Constructor | Description |
---|---|
MCMoveSwap(Space space,
IRandom random,
PotentialMaster potentialMaster,
ISpecies speciesA,
ISpecies speciesB) |
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() |
|
double |
getChi(double temperature) |
Chi is the parameter within standard Metropolis Monte Carlo.
|
void |
rejectNotify() |
Method called by IntegratorMC in the event that the most recent trial
move is rejected.
|
void |
setBox(Box box) |
Sets the box on which this move acts.
|
getNominalFrequency, getTracker, setTracker
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toString
protected IAtom atomA
protected IAtom atomB
protected double uOld
protected double uNew
protected final ISpecies speciesA
protected final ISpecies speciesB
protected final IRandom random
protected MeterPotentialEnergy meterPE
protected final Vector tmp
public MCMoveSwap(Space space, IRandom random, PotentialMaster potentialMaster, ISpecies speciesA, ISpecies speciesB)
public void setBox(Box box)
MCMoveBox
public AtomIterator affectedAtoms()
affectedAtoms
in class MCMoveBox
public double energyChange()
energyChange
in class MCMoveBox
public boolean doTrial()
MCMove
public double getChi(double temperature)
MCMove
public void acceptNotify()
MCMove
acceptNotify
in class MCMove
public void rejectNotify()
MCMove
rejectNotify
in class MCMove