MCMoveInsertDeleteBiased
, MyMCMove
, MyMCMove
, MyMCMove
public class MCMoveInsertDelete extends MCMoveBox
Modifier and Type | Field | Description |
---|---|---|
protected AtomIteratorArrayListSimple |
affectedAtomIterator |
|
protected MoleculeActionTranslateTo |
atomTranslator |
|
protected MeterPotentialEnergy |
energyMeter |
|
protected boolean |
insert |
|
protected IMoleculeList |
moleculeList |
|
protected double |
mu |
|
protected RandomPositionSource |
positionSource |
|
protected IRandom |
random |
|
protected MoleculeArrayList |
reservoir |
|
protected ISpecies |
species |
|
protected IMolecule |
testMolecule |
|
protected double |
uNew |
|
protected double |
uOld |
moveTracker, nominalFrequency, potential
box, perParticleFrequency
Constructor | Description |
---|---|
MCMoveInsertDelete(PotentialMaster potentialMaster,
IRandom random,
Space space) |
Constructs using default isPotentialHard = false
|
Modifier and Type | Method | Description |
---|---|---|
void |
acceptNotify() |
Method called by IntegratorMC in the event that the most recent trial is
accepted.
|
AtomIterator |
affectedAtoms() |
Returns an iterator giving molecule that is being added or deleted
in the current or most recent trial.
|
boolean |
doTrial() |
Chooses and performs with equal probability an elementary molecule insertion
or deletion.
|
double |
energyChange() |
|
double |
getChi(double temperature) |
Chi is the parameter within standard Metropolis Monte Carlo.
|
double |
getMu() |
Accessor method for the chemical potential of th insertion/deletion species.
|
Dimension |
getMuDimension() |
Indicates that chemical potential has dimensions of energy.
|
RandomPositionSource |
getPositionSource() |
Returns the RandomPositionSource used by this move.
|
ISpecies |
getSpecies() |
|
boolean |
lastMoveInsert() |
|
void |
rejectNotify() |
Method called by IntegratorMC in the event that the most recent trial
move is rejected.
|
void |
setBox(Box p) |
Sets the box on which this move acts.
|
void |
setMu(double mu) |
Mutator method for the chemical potential of the insertion/deletion species.
|
void |
setPositionSource(RandomPositionSource newPositionSource) |
Sets a new RandomPositionSource for this move to use.
|
void |
setSpecies(ISpecies s) |
getNominalFrequency, getTracker, setTracker
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toString
protected final MeterPotentialEnergy energyMeter
protected final AtomIteratorArrayListSimple affectedAtomIterator
protected final MoleculeArrayList reservoir
protected final MoleculeActionTranslateTo atomTranslator
protected double mu
protected ISpecies species
protected IMolecule testMolecule
protected double uOld
protected double uNew
protected boolean insert
protected IMoleculeList moleculeList
protected IRandom random
protected RandomPositionSource positionSource
public MCMoveInsertDelete(PotentialMaster potentialMaster, IRandom random, Space space)
potentialMaster
- used for calculation of energiesrandom
- random number generator used by the simulationspace
- governing space for the simulationpublic ISpecies getSpecies()
public void setSpecies(ISpecies s)
public void setBox(Box p)
MCMoveBox
public RandomPositionSource getPositionSource()
public void setPositionSource(RandomPositionSource newPositionSource)
public boolean doTrial()
public double getChi(double temperature)
MCMove
public void acceptNotify()
MCMove
acceptNotify
in class MCMove
public void rejectNotify()
MCMove
rejectNotify
in class MCMove
public double energyChange()
energyChange
in class MCMoveBox
public AtomIterator affectedAtoms()
affectedAtoms
in class MCMoveBox
public boolean lastMoveInsert()
public final double getMu()
public void setMu(double mu)
public final Dimension getMuDimension()