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, potentialbox, 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, setTrackeraffectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toStringprotected 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)
MCMoveBoxpublic AtomIterator affectedAtoms()
affectedAtoms in class MCMoveBoxpublic double energyChange()
energyChange in class MCMoveBoxpublic boolean doTrial()
MCMovepublic double getChi(double temperature)
MCMovepublic void acceptNotify()
MCMoveacceptNotify in class MCMovepublic void rejectNotify()
MCMoverejectNotify in class MCMove