public class MyMCMove extends MCMoveInsertDelete
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
bothSides |
|
protected int |
dim |
|
protected DoubleRange |
range |
|
protected int |
testMoleculeIndex |
moveTracker, nominalFrequency, potentialbox, perParticleFrequencyaffectedAtomIterator, 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, setTrackeraffectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toStringaffectedAtoms, energyChange, getMu, getMuDimension, getPositionSource, getSpecies, lastMoveInsert, setMu, setPositionSourceprotected 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)
MCMoveBoxsetBox in class MCMoveInsertDeletepublic boolean doTrial()
doTrial in class MCMoveInsertDeletepublic double getChi(double temperature)
MCMovegetChi in class MCMoveInsertDeletetemperature - used to compute chipublic void rejectNotify()
MCMoverejectNotify in class MCMoveInsertDeletepublic void acceptNotify()
MCMoveacceptNotify in class MCMoveInsertDeletepublic void setupActiveAtoms()
public void setZFraction(double zFraction,
double zFractionMax)
public double getZFraction()
public void setSpecies(ISpecies s)
setSpecies in class MCMoveInsertDelete