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, potential
box, 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, setTracker
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toString
protected 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)
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
public AtomIterator affectedAtoms()
affectedAtoms
in class MCMoveBox
public double energyChange()
energyChange
in class MCMoveBox