public class MCMoveEinsteinCrystal extends MCMoveBox
Modifier and Type | Field | Description |
---|---|---|
protected double |
alpha |
|
protected CoordinateDefinition |
coordinateDefinition |
|
protected Vector |
dr |
|
protected boolean |
fixedCOM |
|
protected IRandom |
random |
|
protected double |
temperature |
moveTracker, nominalFrequency, potential
box, perParticleFrequency
Constructor | Description |
---|---|
MCMoveEinsteinCrystal(Space space,
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 |
getAlpha() |
|
double |
getChi(double temperature) |
Chi is the parameter within standard Metropolis Monte Carlo.
|
boolean |
getFixedCOM() |
|
void |
rejectNotify() |
Method called by IntegratorMC in the event that the most recent trial
move is rejected.
|
void |
setAlphaEin(double newAlpha) |
Sets the Einstein spring constant
u = alpha * r^2
|
void |
setCoordinateDefinition(CoordinateDefinition newCoordinateDefinition) |
|
void |
setFixedCOM(boolean newFixedCOM) |
|
void |
setTemperature(double newTemperature) |
getNominalFrequency, getTracker, setTracker
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, setBox, toString
protected double alpha
protected double temperature
protected final IRandom random
protected CoordinateDefinition coordinateDefinition
protected boolean fixedCOM
protected final Vector dr
public void setFixedCOM(boolean newFixedCOM)
public boolean getFixedCOM()
public void setAlphaEin(double newAlpha)
public double getAlpha()
public void setTemperature(double newTemperature)
public void setCoordinateDefinition(CoordinateDefinition newCoordinateDefinition)
public boolean doTrial()
MCMove
public AtomIterator affectedAtoms()
affectedAtoms
in class MCMoveBox
public double energyChange()
energyChange
in class MCMoveBox
public double getChi(double temperature)
MCMove
public void acceptNotify()
MCMove
acceptNotify
in class MCMove
public void rejectNotify()
MCMove
rejectNotify
in class MCMove