MCMoveMoleculeExchangeVLE
public class MCMoveMoleculeExchange extends MCMove
Modifier and Type | Field | Description |
---|---|---|
protected Box |
box1 |
|
protected Box |
box2 |
|
protected IntegratorBox |
integrator1 |
|
protected IntegratorBox |
integrator2 |
|
protected RandomPositionSource |
positionSource |
moveTracker, nominalFrequency, potential
Constructor | Description |
---|---|
MCMoveMoleculeExchange(PotentialMaster potentialMaster,
IRandom random,
Space space,
IntegratorBox integrator1,
IntegratorBox integrator2) |
Modifier and Type | Method | Description |
---|---|---|
void |
acceptNotify() |
Method called by IntegratorMC in the event that the most recent trial is
accepted.
|
AtomIterator |
affectedAtoms(Box box) |
Returns an iterator that yields the atoms that were affected by the trial
move the last time doTrial was invoked (regardless of whether the move
was accepted).
|
boolean |
doTrial() |
Method to perform trial move.
|
double |
energyChange(Box box) |
Returns the change in the energy of the given box that results from the
trial move.
|
IMoleculePositionDefinition |
getAtomPositionDefinition() |
|
double |
getChi(double temperature) |
Chi is the parameter within standard Metropolis Monte Carlo.
|
MoleculeSource |
getMoleculeSource() |
Returns the AtomSource this class uses to pick molecules to delete.
|
RandomPositionSource |
getPositionSource() |
Returns the RandomPositionSource used by this move.
|
void |
rejectNotify() |
Method called by IntegratorMC in the event that the most recent trial
move is rejected.
|
void |
setAtomPositionDefinition(IMoleculePositionDefinition atomPositionDefinition) |
|
void |
setMoleculeSource(MoleculeSource newMoleculeSource) |
Sets the AtomSource this class uses to pick molecules to delete.
|
void |
setPositionSource(RandomPositionSource newPositionSource) |
Sets a new RandomPositionSource for this move to use.
|
getNominalFrequency, getTracker, setTracker, toString
protected Box box1
protected Box box2
protected final IntegratorBox integrator1
protected final IntegratorBox integrator2
protected RandomPositionSource positionSource
public MCMoveMoleculeExchange(PotentialMaster potentialMaster, IRandom random, Space space, IntegratorBox integrator1, IntegratorBox integrator2)
public boolean doTrial()
MCMove
public void setPositionSource(RandomPositionSource newPositionSource)
public RandomPositionSource getPositionSource()
public void setMoleculeSource(MoleculeSource newMoleculeSource)
public MoleculeSource getMoleculeSource()
public double getChi(double temperature)
MCMove
public void acceptNotify()
MCMove
acceptNotify
in class MCMove
public void rejectNotify()
MCMove
rejectNotify
in class MCMove
public final AtomIterator affectedAtoms(Box box)
MCMove
affectedAtoms
in class MCMove
public double energyChange(Box box)
MCMove
energyChange
in class MCMove
public IMoleculePositionDefinition getAtomPositionDefinition()
public void setAtomPositionDefinition(IMoleculePositionDefinition atomPositionDefinition)
atomPositionDefinition
- The atomPositionDefinition to set.