public class MyMCMove extends MCMoveInsertDelete
Modifier and Type | Field | Description |
---|---|---|
long |
nReservoirTrials |
|
long |
nReservoirTrialsAccepted |
|
protected IPotentialMolecular |
p1 |
|
protected IMolecule |
resevoirMolecule |
|
protected double |
temperature |
|
protected int |
testMoleculeIndex |
moveTracker, nominalFrequency, potential
box, perParticleFrequency
affectedAtomIterator, atomTranslator, energyMeter, insert, mu, positionSource, random, reservoir, species, testMolecule, uNew, uOld
Constructor | Description |
---|---|
MyMCMove(IntegratorBox integrator,
IRandom random,
Space space,
double zFraction) |
Modifier and Type | Method | Description |
---|---|---|
void |
acceptNotify() |
Method called by IntegratorMC in the event that the most recent trial is
accepted.
|
boolean |
doTrial() |
Chooses and performs with equal probability an elementary molecule insertion
or deletion.
|
double |
getChi(double temperature) |
Chi is the parameter within standard Metropolis Monte Carlo.
|
int |
getDeltaN() |
|
double |
getZFraction() |
Returns the zFraction.
|
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 |
setSpecies(ISpecies s) |
|
void |
setSpecies(ISpecies s,
double temperature,
IPotentialMolecular p1) |
|
void |
setupActiveAtoms() |
|
void |
setZFraction(double zFraction) |
Sets the zFraction, the fraction of the box volume into which atoms are
inserted or deleted.
|
getNominalFrequency, getTracker, setTracker
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toString
affectedAtoms, energyChange, getMu, getMuDimension, getPositionSource, getSpecies, lastMoveInsert, setMu, setPositionSource
protected int testMoleculeIndex
protected double temperature
protected IPotentialMolecular p1
protected IMolecule resevoirMolecule
public long nReservoirTrials
public long nReservoirTrialsAccepted
public MyMCMove(IntegratorBox integrator, IRandom random, Space space, double zFraction)
public void setBox(Box p)
MCMoveBox
setBox
in class MCMoveInsertDelete
public void setSpecies(ISpecies s, double temperature, IPotentialMolecular p1)
public boolean doTrial()
doTrial
in class MCMoveInsertDelete
public double getChi(double temperature)
MCMove
getChi
in class MCMoveInsertDelete
temperature
- used to compute chipublic void rejectNotify()
MCMove
rejectNotify
in class MCMoveInsertDelete
public void acceptNotify()
MCMove
acceptNotify
in class MCMoveInsertDelete
public void setupActiveAtoms()
public int getDeltaN()
public double getZFraction()
public void setZFraction(double zFraction)
public void setSpecies(ISpecies s)
setSpecies
in class MCMoveInsertDelete