MCMoveHarmonicEinpublic class MCMoveHarmonic extends MCMoveBox
| Modifier and Type | Field | Description |
|---|---|---|
protected CoordinateDefinition |
coordinateDefinition |
|
protected double[][] |
iRand |
|
protected boolean |
isRejectable |
|
protected boolean |
isSelectMode |
|
protected AtomIteratorLeafAtoms |
iterator |
|
protected double |
lastEnergy |
|
protected int[] |
modeNum |
|
protected IRandom |
random |
|
protected double[][] |
rRand |
|
protected double |
temperature |
|
protected double[] |
u |
|
protected double[][] |
uOld |
moveTracker, nominalFrequency, potentialbox, perParticleFrequency| Constructor | Description |
|---|---|
MCMoveHarmonic(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() |
|
double |
getLastTotalEnergy() |
Returns the harmonic energy of the configuration based on the last
harmonic move made by this MC Move.
|
int[] |
getModeNum() |
|
boolean |
isRejectable() |
|
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) |
|
void |
setModeNum(int[] modeNum) |
|
void |
setOmegaSquared(double[][] omega2) |
|
void |
setRejectable(boolean newIsRejectable) |
|
void |
setTemperature(double newTemperature) |
|
void |
setWaveVectorCoefficients(double[] newWaveVectorCoefficients) |
|
void |
setWaveVectors(Vector[] newWaveVectors) |
getNominalFrequency, getTracker, setTrackeraffectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toStringprotected CoordinateDefinition coordinateDefinition
protected final AtomIteratorLeafAtoms iterator
protected double[] u
protected double[][] rRand
protected double[][] iRand
protected final IRandom random
protected double lastEnergy
protected double temperature
protected boolean isRejectable
protected double[][] uOld
protected int[] modeNum
protected boolean isSelectMode
public MCMoveHarmonic(IRandom random)
public void setRejectable(boolean newIsRejectable)
public boolean isRejectable()
public void setCoordinateDefinition(CoordinateDefinition newCoordinateDefinition)
public CoordinateDefinition getCoordinateDefinition()
public void setOmegaSquared(double[][] omega2)
public void setTemperature(double newTemperature)
public void setWaveVectors(Vector[] newWaveVectors)
public void setWaveVectorCoefficients(double[] newWaveVectorCoefficients)
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 double getLastTotalEnergy()
public void acceptNotify()
MCMoveacceptNotify in class MCMovepublic double energyChange()
energyChange in class MCMoveBoxpublic void rejectNotify()
MCMoverejectNotify in class MCMovepublic int[] getModeNum()
public void setModeNum(int[] modeNum)