MCMoveStepDependentpublic 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, potentialbox, perParticleFrequencystepSize, 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, setTrackeraffectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toStringgetStepSize, getStepSizeDimension, getStepSizeMax, getStepSizeMaxDimension, getStepSizeMin, getStepSizeMinDimension, setStepSize, setStepSizeMax, setStepSizeMinprotected 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)
MCMoveBoxpublic AtomIterator affectedAtoms()
affectedAtoms in class MCMoveBoxpublic boolean doTrial()
MCMovepublic double getChi(double temperature)
MCMovepublic void acceptNotify()
MCMoveacceptNotify in class MCMovepublic double energyChange()
energyChange in class MCMoveBoxpublic void rejectNotify()
MCMoverejectNotify in class MCMove