MCMoveStepDependentpublic class MCMoveVolume extends MCMoveBoxStep
| Modifier and Type | Field | Description |
|---|---|---|
protected AtomIteratorLeafAtoms |
affectedAtomIterator |
|
protected double |
biasOld |
|
protected int |
D |
|
protected MeterPotentialEnergy |
energyMeter |
|
protected double |
hNew |
|
protected double |
hOld |
|
protected BoxInflate |
inflate |
|
protected double |
pressure |
|
protected IRandom |
random |
|
protected double |
uNew |
|
protected double |
uOld |
|
protected IFunction |
vBias |
|
protected double |
vNew |
|
protected double |
vScale |
moveTracker, nominalFrequency, potentialbox, perParticleFrequencystepSize, stepSizeMax, stepSizeMin| Constructor | Description |
|---|---|
MCMoveVolume(PotentialMaster potentialMaster,
IRandom random,
Space space,
double pressure) |
|
MCMoveVolume(Simulation sim,
PotentialMaster potentialMaster,
Space space) |
| 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.
|
double |
getPressure() |
|
Dimension |
getPressureDimension() |
|
void |
rejectNotify() |
Method called by IntegratorMC in the event that the most recent trial
move is rejected.
|
void |
setBox(Box p) |
Sets the box on which this move acts.
|
void |
setInflater(BoxInflate newInflate) |
|
void |
setPressure(double p) |
|
void |
setVolumeBias(IFunction vBias) |
getNominalFrequency, getTracker, setTrackeraffectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toStringgetStepSize, getStepSizeDimension, getStepSizeMax, getStepSizeMaxDimension, getStepSizeMin, getStepSizeMinDimension, setStepSize, setStepSizeMax, setStepSizeMinprotected double pressure
protected final MeterPotentialEnergy energyMeter
protected BoxInflate inflate
protected final int D
protected final IRandom random
protected final AtomIteratorLeafAtoms affectedAtomIterator
protected IFunction vBias
protected double biasOld
protected double uOld
protected double hOld
protected double vNew
protected double vScale
protected double hNew
protected double uNew
public MCMoveVolume(Simulation sim, PotentialMaster potentialMaster, Space space)
public MCMoveVolume(PotentialMaster potentialMaster, IRandom random, Space space, double pressure)
potentialMaster - an appropriate PotentialMaster instance for calculating energiesspace - the governing space for the simulationpublic void setInflater(BoxInflate newInflate)
public void setBox(Box p)
MCMoveBoxpublic void setVolumeBias(IFunction vBias)
public boolean doTrial()
MCMovepublic double getChi(double temperature)
MCMovepublic void acceptNotify()
MCMoveacceptNotify in class MCMovepublic void rejectNotify()
MCMoverejectNotify in class MCMovepublic double energyChange()
energyChange in class MCMoveBoxpublic AtomIterator affectedAtoms()
affectedAtoms in class MCMoveBoxpublic void setPressure(double p)
public final double getPressure()
public Dimension getPressureDimension()