public class MCMoveGeometricCluster extends MCMoveBox
| Modifier and Type | Field | Description |
|---|---|---|
protected AtomIteratorArrayListSimple |
atomIterator |
|
protected AtomPair |
atomPair |
|
protected AtomArrayList |
atomPairs |
|
protected AtomSource |
atomSource |
|
protected java.util.HashSet<IAtom> |
clusterAtoms |
|
protected IntegratorMC |
integratorMC |
|
protected java.util.HashSet<IAtom> |
jNeighbors |
|
protected boolean |
mixedPM |
|
protected Api1ACell |
neighbors |
|
protected Vector |
oldPosition |
|
protected Vector |
pivot |
|
protected RandomPositionSource |
positionSource |
|
protected IPotentialAtomic[][] |
potentials |
|
protected IRandom |
random |
|
protected ISpecies |
solute |
moveTracker, nominalFrequency, potentialbox, perParticleFrequency| Constructor | Description |
|---|---|
MCMoveGeometricCluster(PotentialMaster potentialMaster,
Space space,
IRandom random,
IntegratorMC integratorMC,
ISpecies species) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
acceptNotify() |
Method called by IntegratorMC in the event that the most recent trial is
accepted.
|
AtomIterator |
affectedAtoms() |
|
boolean |
doTrial() |
Method to perform trial move.
|
double |
energyChange() |
|
double |
getChi(double temperature) |
Returns 1 because move is always accepted.
|
void |
rejectNotify() |
Method called by IntegratorMC in the event that the most recent trial
move is rejected.
|
void |
setBox(Box box) |
Sets the box on which this move acts.
|
void |
setPotential(AtomType type1,
AtomType type2,
IPotentialAtomic p2) |
Informs the move that p2 is the potential between type1 and type2.
|
getNominalFrequency, getTracker, setTrackeraffectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toStringprotected RandomPositionSource positionSource
protected AtomSource atomSource
protected final java.util.HashSet<IAtom> clusterAtoms
protected final java.util.HashSet<IAtom> jNeighbors
protected final Vector oldPosition
protected Vector pivot
protected Api1ACell neighbors
protected final AtomArrayList atomPairs
protected final IntegratorMC integratorMC
protected final IRandom random
protected IPotentialAtomic[][] potentials
protected final AtomPair atomPair
protected final AtomIteratorArrayListSimple atomIterator
protected final ISpecies solute
protected final boolean mixedPM
public MCMoveGeometricCluster(PotentialMaster potentialMaster, Space space, IRandom random, IntegratorMC integratorMC, ISpecies species)
potentialMaster - the PotentialMaster instance used by the simulation; this must have cell based neighbor list
which is used to identify interacting moleculesspace - simulation spacerandom - random number generatorintegratorMC - MC integrator that uses this move, needed to get the temperaturespecies - specifies the molecules that are selected for the initial trial move; may be null, in which case
any molecule in the box could be used for initial trialpublic AtomIterator affectedAtoms()
affectedAtoms in class MCMoveBoxpublic double energyChange()
energyChange in class MCMoveBoxpublic boolean doTrial()
MCMovepublic void setPotential(AtomType type1, AtomType type2, IPotentialAtomic p2)
type1 - the first atom typetype2 - the second atom typep2 - the potential between type1 and type2public void setBox(Box box)
MCMoveBoxpublic double getChi(double temperature)
public void acceptNotify()
MCMoveacceptNotify in class MCMovepublic void rejectNotify()
MCMoverejectNotify in class MCMove