public class MyMCMove extends MCMoveInsertDelete
Modifier and Type | Field | Description |
---|---|---|
protected int |
testMoleculeIndex |
moveTracker, nominalFrequency, potential
box, perParticleFrequency
affectedAtomIterator, atomTranslator, energyMeter, insert, mu, positionSource, random, reservoir, species, testMolecule, uNew, uOld
Constructor | Description |
---|---|
MyMCMove(IntegratorBox integrator,
IRandom random,
Space space,
double zFraction) |
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.
|
int |
getDeltaN() |
|
double |
getZFraction() |
Returns the zFraction.
|
void |
setBox(Box p) |
Sets the box on which this move acts.
|
void |
setSpecies(ISpecies s) |
|
void |
setupActiveAtoms() |
|
void |
setZFraction(double zFraction) |
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, rejectNotify, setMu, setPositionSource
public MyMCMove(IntegratorBox integrator, IRandom random, Space space, double zFraction)
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 acceptNotify()
MCMove
acceptNotify
in class MCMoveInsertDelete
public void setupActiveAtoms()
public int getDeltaN()
public double getZFraction()
public void setZFraction(double zFraction)
public void setSpecies(ISpecies s)
setSpecies
in class MCMoveInsertDelete