MCMoveStepDependentMCMoveAtomDimer, MCMoveAtomInRegion, MCMoveAtomMonomer, MCMoveAtomNbr, MCMoveAtomNoSmer, MCMoveAtomNPath, MCMoveAtomSmer, MCMoveClusterAtom, MCMoveClusterAtomChainHSTail, MCMoveClusterAtomDiscrete, MCMoveClusterAtomHSChain, MCMoveClusterAtomHSRing, MCMoveClusterAtomHSTree, MCMoveClusterAtomInBox, MCMoveClusterAtomMulti, MCMoveClusterAtomQ, MCMoveClusterAtomRotateMulti, MCMoveClusterPolyhedraChain, MCMoveClusterPolyhedraTree, MCMoveRotate, MCMoveRotateAssociatedpublic class MCMoveAtom extends MCMoveBoxStep
| Modifier and Type | Field | Description |
|---|---|---|
protected AtomIteratorSinglet |
affectedAtomIterator |
|
protected IAtom |
atom |
|
protected AtomSource |
atomSource |
|
protected MeterPotentialEnergy |
energyMeter |
|
protected boolean |
fixOverlap |
|
protected IRandom |
random |
|
protected Space |
space |
|
protected Vector |
translationVector |
|
protected double |
uNew |
|
protected double |
uOld |
moveTracker, nominalFrequency, potentialbox, perParticleFrequencystepSize, stepSizeMax, stepSizeMin| Constructor | Description |
|---|---|
MCMoveAtom(IRandom random,
PotentialMaster potentialMaster,
Space space) |
Constructs the move with default stepSize = 1.0, stepSizeMax = 15.0, fixOverlap = false
|
MCMoveAtom(IRandom random,
PotentialMaster potentialMaster,
Space space,
double stepSize,
double stepSizeMax,
boolean fixOverlap) |
|
MCMoveAtom(IRandom random,
PotentialMaster potentialMaster,
Space space,
double stepSize,
double stepSizeMax,
boolean fixOverlap,
MeterPotentialEnergy meterPE) |
Constructs with specification of special-purpose energy meter.
|
| 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() |
|
AtomSource |
getAtomSource() |
The AtomSource is used to select the atom at the beginning of the trial
|
double |
getChi(double temperature) |
Chi is the parameter within standard Metropolis Monte Carlo.
|
void |
rejectNotify() |
Method called by IntegratorMC in the event that the most recent trial
move is rejected.
|
void |
setAtomSource(AtomSource source) |
|
void |
setBox(Box p) |
Sets the box on which this move acts.
|
getNominalFrequency, getTracker, setTrackeraffectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toStringgetStepSize, getStepSizeDimension, getStepSizeMax, getStepSizeMaxDimension, getStepSizeMin, getStepSizeMinDimension, setStepSize, setStepSizeMax, setStepSizeMinprotected final AtomIteratorSinglet affectedAtomIterator
protected final MeterPotentialEnergy energyMeter
protected final Vector translationVector
protected final IRandom random
protected final boolean fixOverlap
protected final Space space
protected IAtom atom
protected double uOld
protected double uNew
protected AtomSource atomSource
public MCMoveAtom(IRandom random, PotentialMaster potentialMaster, Space space)
random - random number generator used to select the atom and its displacementpotentialMaster - used to construct MeterPotentialEnergy required by full constructorspace - space of the simulationpublic MCMoveAtom(IRandom random, PotentialMaster potentialMaster, Space space, double stepSize, double stepSizeMax, boolean fixOverlap)
random - random number generator used to select the atom and its displacementpotentialMaster - used to construct MeterPotentialEnergy required by full constructorspace - space of the simulationstepSize - starting step size for the trialstepSizeMax - maximum allowable value of stepSizefixOverlap - flag specifying whether trial throws an exception if the configuration
at the start of the trial has an overlappublic MCMoveAtom(IRandom random, PotentialMaster potentialMaster, Space space, double stepSize, double stepSizeMax, boolean fixOverlap, MeterPotentialEnergy meterPE)
random - random number generator used to select the atom and its displacementpotentialMaster - not directly usedspace - space of the simulationstepSize - starting step size for the trialstepSizeMax - maximum allowable value of stepSizefixOverlap - if false, throws an exception if the configuration
at the start of the trial has an overlapmeterPE - used to compute energies before and after displacementpublic boolean doTrial()
MCMovepublic double getChi(double temperature)
MCMovepublic double energyChange()
energyChange in class MCMoveBoxpublic void acceptNotify()
MCMoveacceptNotify in class MCMovepublic void rejectNotify()
MCMoverejectNotify in class MCMovepublic AtomIterator affectedAtoms()
affectedAtoms in class MCMoveBoxpublic void setBox(Box p)
MCMoveBoxpublic AtomSource getAtomSource()
public void setAtomSource(AtomSource source)
source - The atomSource to set.