MCMoveStepDependent
public class MCMoveHarmonicStep extends MCMoveBoxStep
Modifier and Type | Field | Description |
---|---|---|
protected CoordinateDefinition |
coordinateDefinition |
|
protected MeterPotentialEnergy |
energyMeter |
|
protected double |
energyNew |
|
protected double |
energyOld |
|
protected AtomIteratorLeafAtoms |
iterator |
|
protected double |
latticeEnergy |
|
protected int[] |
modes |
|
protected IRandom |
random |
|
protected double[] |
u |
|
protected double[] |
uOld |
moveTracker, nominalFrequency, potential
box, perParticleFrequency
stepSize, stepSizeMax, stepSizeMin
Constructor | Description |
---|---|
MCMoveHarmonicStep(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.
|
CoordinateDefinition |
getCoordinateDefinition() |
|
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.
|
void |
setCoordinateDefinition(CoordinateDefinition newCoordinateDefinition) |
|
void |
setEigenVectors(double[][] newEigenVectors) |
Informs the move of the eigenvectors for the k=0 wave vector.
|
void |
setModes(int[] newModes) |
Sets the indices of the harmonic modes of the k=0 wave vector which
should be sampled.
|
getNominalFrequency, getTracker, setTracker
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toString
getStepSize, getStepSizeDimension, getStepSizeMax, getStepSizeMaxDimension, getStepSizeMin, getStepSizeMinDimension, setStepSize, setStepSizeMax, setStepSizeMin
protected CoordinateDefinition coordinateDefinition
protected final AtomIteratorLeafAtoms iterator
protected double[] uOld
protected double[] u
protected final IRandom random
protected double energyOld
protected double energyNew
protected double latticeEnergy
protected final MeterPotentialEnergy energyMeter
protected int[] modes
public MCMoveHarmonicStep(PotentialMaster potentialMaster, IRandom random)
public void setCoordinateDefinition(CoordinateDefinition newCoordinateDefinition)
public CoordinateDefinition getCoordinateDefinition()
public void setModes(int[] newModes)
public void setEigenVectors(double[][] newEigenVectors)
public void setBox(Box newBox)
MCMoveBox
public AtomIterator affectedAtoms()
affectedAtoms
in class MCMoveBox
public boolean doTrial()
MCMove
public double getChi(double temperature)
MCMove
public void acceptNotify()
MCMove
acceptNotify
in class MCMove
public double energyChange()
energyChange
in class MCMoveBox
public void rejectNotify()
MCMove
rejectNotify
in class MCMove