IListener
public class MCMoveInsertDeleteLatticeVacancy extends MCMoveInsertDeleteBiased implements IListener
Modifier and Type | Class | Description |
---|---|---|
static class |
MCMoveInsertDeleteLatticeVacancy.AtomIteratorBruteForce |
|
static class |
MCMoveInsertDeleteLatticeVacancy.AtomIteratorNbr |
|
static class |
MCMoveInsertDeleteLatticeVacancy.AtomIteratorNbrCell |
Modifier and Type | Field | Description |
---|---|---|
protected AtomIteratorAtomDependent |
atomIterator |
|
protected java.util.List<java.lang.Integer> |
deleteCandidates |
|
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 |
nbrDistance |
|
protected Vector[] |
nbrVectors |
|
protected double |
newLnA |
|
protected int[] |
numDeleteCandidateNbrs |
|
protected int[] |
numNeighborCandidatesOnDelete |
|
protected int[] |
numNeighbors |
|
protected int |
numNewDeleteCandidates |
|
protected double |
oldB |
|
protected double |
oldBoxSize |
|
protected double |
oldLnA |
|
protected Vector |
oldPosition |
|
protected PotentialMasterNbr |
potentialMaster |
|
protected Space |
space |
|
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 |
---|---|
MCMoveInsertDeleteLatticeVacancy(PotentialMasterNbr potentialMaster,
IRandom random,
Space _space,
Integrator integrator,
double maxDistance,
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 |
makeFccVectors(double newNbrDistance) |
|
void |
makeHcpVectors(double newNbrDistance) |
|
void |
myAcceptNotify() |
|
void |
reset() |
|
void |
setBox(Box box) |
Sets the box on which this move acts.
|
void |
setFluidNbrDistance(double newNbrDistance) |
|
void |
setLnBias(int n,
double nBias) |
|
void |
setMaxDistance(double maxDistance) |
|
void |
setMaxInsertDistance(double maxInsertDistance) |
getNominalFrequency, getTracker, setTracker
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toString
affectedAtoms, energyChange, getMu, getMuDimension, getPositionSource, getSpecies, lastMoveInsert, setPositionSource, setSpecies
acceptNotify, getLnBias, getLnBiasDiff, myRejectNotify, rejectNotify, setMinMax, setMu
protected final Vector dest
protected final Vector dr
protected Integrator integrator
protected long lastStepCount
protected boolean dirty
protected double maxDistance
protected double maxInsertDistance
protected double nbrDistance
protected java.util.List<java.lang.Integer> insertCandidates
protected java.util.List<java.lang.Integer> deleteCandidates
protected int[] numNeighbors
protected int[] numNeighborCandidatesOnDelete
protected int[] deleteCandidateTimes
protected int[] numDeleteCandidateNbrs
protected int totalDeleteCandidateTimes
protected PotentialMasterNbr potentialMaster
protected int numNewDeleteCandidates
protected int forced
protected double oldLnA
protected double oldB
protected double newLnA
protected final Vector oldPosition
protected Vector[] nbrVectors
protected final Space space
protected double oldBoxSize
protected AtomIteratorAtomDependent atomIterator
public MCMoveInsertDeleteLatticeVacancy(PotentialMasterNbr potentialMaster, IRandom random, Space _space, Integrator integrator, double maxDistance, int maxN, int maxVacancy)
public void setBox(Box box)
MCMoveBox
setBox
in class MCMoveInsertDeleteBiased
public void setFluidNbrDistance(double newNbrDistance)
public void makeFccVectors(double newNbrDistance)
public void makeHcpVectors(double newNbrDistance)
public void setMaxDistance(double maxDistance)
public double getMaxDistance()
public void setMaxInsertDistance(double maxInsertDistance)
public void reset()
public void setLnBias(int n, double nBias)
setLnBias
in class MCMoveInsertDeleteBiased
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