public class MCMoveSpinFlip extends MCMoveBox
| Modifier and Type | Field | Description |
|---|---|---|
protected AtomIteratorSinglet |
affectedAtomIterator |
|
protected IAtom |
atom |
|
protected MeterPotentialEnergy |
energyMeter |
|
protected IRandom |
random |
|
protected double |
uNew |
|
protected double |
uOld |
moveTracker, nominalFrequency, potentialbox, perParticleFrequency| Constructor | Description |
|---|---|
MCMoveSpinFlip(PotentialMaster potentialMaster,
IRandom random) |
| 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 p) |
Sets the box on which this move acts.
|
getNominalFrequency, getTracker, setTrackeraffectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toStringprotected final IRandom random
protected final AtomIteratorSinglet affectedAtomIterator
protected final MeterPotentialEnergy energyMeter
protected IAtom atom
protected double uOld
protected double uNew
public MCMoveSpinFlip(PotentialMaster potentialMaster, IRandom random)
potentialMaster - nBoxs - public void setBox(Box p)
MCMoveBoxpublic boolean doTrial()
MCMovepublic double getChi(double temperature)
MCMovepublic void acceptNotify()
MCMoveacceptNotify in class MCMovepublic void rejectNotify()
MCMoverejectNotify in class MCMovepublic AtomIterator affectedAtoms()
affectedAtoms in class MCMoveBoxpublic double energyChange()
energyChange in class MCMoveBox