public class MyMCMove extends MCMoveInsertDelete
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
testMoleculeIndex |
moveTracker, nominalFrequency, potentialbox, perParticleFrequencyaffectedAtomIterator, 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, setTrackeraffectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toStringaffectedAtoms, energyChange, getMu, getMuDimension, getPositionSource, getSpecies, lastMoveInsert, rejectNotify, setMu, setPositionSourcepublic MyMCMove(IntegratorBox integrator, IRandom random, Space space, double zFraction)
public void setBox(Box p)
MCMoveBoxsetBox in class MCMoveInsertDeletepublic boolean doTrial()
doTrial in class MCMoveInsertDeletepublic double getChi(double temperature)
MCMovegetChi in class MCMoveInsertDeletetemperature - used to compute chipublic void acceptNotify()
MCMoveacceptNotify in class MCMoveInsertDeletepublic void setupActiveAtoms()
public int getDeltaN()
public double getZFraction()
public void setZFraction(double zFraction)
public void setSpecies(ISpecies s)
setSpecies in class MCMoveInsertDelete