public class MCMoveMultiHarmonic extends MCMoveBox
Modifier and Type | Field | Description |
---|---|---|
protected AtomIteratorLeafAtoms |
iterator |
|
protected P1Harmonic |
p1 |
|
protected IRandom |
random |
|
protected double |
uNew |
|
protected double |
uOld |
moveTracker, nominalFrequency, potential
box, perParticleFrequency
Constructor | Description |
---|---|
MCMoveMultiHarmonic(P1Harmonic p1,
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 newBox) |
Sets the box on which this move acts.
|
getNominalFrequency, getTracker, setTracker
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toString
protected final P1Harmonic p1
protected final AtomIteratorLeafAtoms iterator
protected final IRandom random
protected double uOld
protected double uNew
public MCMoveMultiHarmonic(P1Harmonic p1, IRandom random)
public void setBox(Box newBox)
MCMoveBox
public AtomIterator affectedAtoms()
affectedAtoms
in class MCMoveBox
public double energyChange()
energyChange
in class MCMoveBox
public void acceptNotify()
MCMove
acceptNotify
in class MCMove
public boolean doTrial()
MCMove
public double getChi(double temperature)
MCMove
public void rejectNotify()
MCMove
rejectNotify
in class MCMove