IListener
public 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, potential
box, perParticleFrequency
affectedAtomIterator, atomTranslator, energyMeter, insert, moleculeList, mu, positionSource, random, reservoir, species, testMolecule, uNew, uOld
lnbias, 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, setTracker
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toString
affectedAtoms, energyChange, getMu, getMuDimension, getPositionSource, getSpecies, lastMoveInsert, setPositionSource, setSpecies
acceptNotify, getLnBias, getLnBiasDiff, myRejectNotify, rejectNotify, setBox, setLnBias, setMinMax, setMu
protected 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()
MCMoveInsertDelete
doTrial
in class MCMoveInsertDelete
protected void findCandidates()
public double getChi(double temperature)
MCMove
getChi
in class MCMoveInsertDeleteBiased
temperature
- used to compute chipublic void myAcceptNotify()
myAcceptNotify
in class MCMoveInsertDeleteBiased
public void actionPerformed(IEvent event)
actionPerformed
in interface IListener