public class MyMCMove extends MCMoveInsertDelete
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
bothSides |
|
protected int |
dim |
|
protected DoubleRange |
range |
|
protected int |
testMoleculeIndex |
moveTracker, nominalFrequency, potential
box, perParticleFrequency
affectedAtomIterator, atomTranslator, energyMeter, insert, moleculeList, mu, positionSource, random, reservoir, species, testMolecule, uNew, uOld
Constructor | Description |
---|---|
MyMCMove(IntegratorBox integrator,
IRandom random,
Space space,
double zFraction,
double sigma,
int dim) |
Modifier and Type | Method | Description |
---|---|---|
void |
acceptNotify() |
Method called by IntegratorMC in the event that the most recent trial is
accepted.
|
boolean |
doTrial() |
Chooses and performs with equal probability an elementary molecule insertion
or deletion.
|
double |
getChi(double temperature) |
Chi is the parameter within standard Metropolis Monte Carlo.
|
double |
getZFraction() |
|
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 |
setSpecies(ISpecies s) |
|
void |
setupActiveAtoms() |
|
void |
setZFraction(double zFraction,
double zFractionMax) |
Sets the zFraction, the fraction of the box volume into which atoms are
inserted or deleted.
|
getNominalFrequency, getTracker, setTracker
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toString
affectedAtoms, energyChange, getMu, getMuDimension, getPositionSource, getSpecies, lastMoveInsert, setMu, setPositionSource
protected int testMoleculeIndex
protected DoubleRange range
protected final int dim
protected boolean bothSides
public MyMCMove(IntegratorBox integrator, IRandom random, Space space, double zFraction, double sigma, int dim)
public void setBox(Box p)
MCMoveBox
setBox
in class MCMoveInsertDelete
public boolean doTrial()
doTrial
in class MCMoveInsertDelete
public double getChi(double temperature)
MCMove
getChi
in class MCMoveInsertDelete
temperature
- used to compute chipublic void rejectNotify()
MCMove
rejectNotify
in class MCMoveInsertDelete
public void acceptNotify()
MCMove
acceptNotify
in class MCMoveInsertDelete
public void setupActiveAtoms()
public void setZFraction(double zFraction, double zFractionMax)
public double getZFraction()
public void setSpecies(ISpecies s)
setSpecies
in class MCMoveInsertDelete