MCMoveHarmonicEin
public 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, potential
box, 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, setTracker
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toString
protected 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)
MCMoveBox
public AtomIterator affectedAtoms()
affectedAtoms
in class MCMoveBox
public boolean doTrial()
MCMove
public double getChi(double temperature)
MCMove
public double getLastTotalEnergy()
public void acceptNotify()
MCMove
acceptNotify
in class MCMove
public double energyChange()
energyChange
in class MCMoveBox
public void rejectNotify()
MCMove
rejectNotify
in class MCMove
public int[] getModeNum()
public void setModeNum(int[] modeNum)