IListenerpublic class MCMoveInsertDeleteVacancy extends MCMoveInsertDeleteBiased implements IListener
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.List<java.lang.Integer> |
deleteCandidates |
|
protected java.util.Set<java.lang.Integer> |
deleteCandidateSet |
|
protected int[] |
deleteCandidateTimes |
|
protected Vector |
dest |
|
protected boolean |
dirty |
|
protected Vector |
dr |
|
protected int |
forced |
|
protected java.util.List<java.lang.Integer> |
insertCandidates |
|
protected Integrator |
integrator |
|
protected long |
lastStepCount |
|
protected double |
maxDistance |
|
protected double |
maxInsertDistance |
|
protected double |
minDistance |
|
protected double |
newLnA |
|
protected int[] |
numDeleteCandidateNbrs |
|
protected int[] |
numNeighborCandidatesOnDelete |
|
protected int[] |
numNeighbors |
|
protected int |
numNewDeleteCandidates |
|
protected double |
oldB |
|
protected double |
oldLnA |
|
protected Vector |
oldPosition |
|
protected PotentialMasterList |
potentialMaster |
|
protected int |
totalDeleteCandidateTimes |
moveTracker, nominalFrequency, potentialbox, perParticleFrequencyaffectedAtomIterator, atomTranslator, energyMeter, insert, moleculeList, mu, positionSource, random, reservoir, species, testMolecule, uNew, uOldlnbias, maxN, minN| Constructor | Description |
|---|---|
MCMoveInsertDeleteVacancy(PotentialMaster potentialMaster,
IRandom random,
Space _space,
Integrator integrator,
double nbrDistance,
int maxN,
int maxVacancy) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
actionPerformed(IEvent event) |
|
boolean |
doTrial() |
Chooses and performs with equal probability an elementary molecule insertion
or deletion.
|
protected void |
findCandidates() |
|
double |
getChi(double temperature) |
Chi is the parameter within standard Metropolis Monte Carlo.
|
double |
getMaxDistance() |
|
void |
myAcceptNotify() |
|
void |
reset() |
|
void |
setMaxDistance(double maxDistance) |
|
void |
setMaxInsertDistance(double maxInsertDistance) |
|
void |
setMinDistance(double minDistance) |
getNominalFrequency, getTracker, setTrackeraffectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toStringaffectedAtoms, energyChange, getMu, getMuDimension, getPositionSource, getSpecies, lastMoveInsert, setPositionSource, setSpeciesacceptNotify, getLnBias, getLnBiasDiff, myRejectNotify, rejectNotify, setBox, setLnBias, setMinMax, setMuprotected final Vector dest
protected final Vector dr
protected Integrator integrator
protected long lastStepCount
protected boolean dirty
protected double minDistance
protected double maxDistance
protected double maxInsertDistance
protected java.util.List<java.lang.Integer> insertCandidates
protected java.util.List<java.lang.Integer> deleteCandidates
protected java.util.Set<java.lang.Integer> deleteCandidateSet
protected int[] numNeighbors
protected int[] numNeighborCandidatesOnDelete
protected int[] deleteCandidateTimes
protected int[] numDeleteCandidateNbrs
protected int totalDeleteCandidateTimes
protected PotentialMasterList potentialMaster
protected int numNewDeleteCandidates
protected int forced
protected double oldLnA
protected double oldB
protected double newLnA
protected final Vector oldPosition
public MCMoveInsertDeleteVacancy(PotentialMaster potentialMaster, IRandom random, Space _space, Integrator integrator, double nbrDistance, int maxN, int maxVacancy)
public void setMinDistance(double minDistance)
public void setMaxDistance(double maxDistance)
public double getMaxDistance()
public void setMaxInsertDistance(double maxInsertDistance)
public void reset()
public boolean doTrial()
MCMoveInsertDeletedoTrial in class MCMoveInsertDeleteprotected void findCandidates()
public double getChi(double temperature)
MCMovegetChi in class MCMoveInsertDeleteBiasedtemperature - used to compute chipublic void myAcceptNotify()
myAcceptNotify in class MCMoveInsertDeleteBiasedpublic void actionPerformed(IEvent event)
actionPerformed in interface IListener