public class MCMoveClusterRingRegrow extends MCMoveBox
Modifier and Type | Field | Description |
---|---|---|
protected Vector |
com |
|
protected Vector |
com0 |
|
protected double |
fac |
|
protected AtomIteratorLeafAtoms |
leafIterator |
|
protected AtomArrayList |
myAtoms |
|
protected int |
nTrial |
|
protected Vector[][] |
oldPositions |
|
protected double[] |
pkl |
|
protected IRandom |
random |
|
protected Vector[] |
rTrial |
|
protected Space |
space |
|
protected int[][] |
tangledMolecules |
|
protected double |
weightNew |
|
protected double |
weightOld |
|
protected double |
wNew |
|
protected double |
wOld |
moveTracker, nominalFrequency, potential
box, perParticleFrequency
Constructor | Description |
---|---|
MCMoveClusterRingRegrow(IRandom random,
Space _space) |
|
MCMoveClusterRingRegrow(IRandom random,
Space _space,
int[][] tangledMolecules) |
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) |
Chi is the parameter within standard Metropolis Monte Carlo.
|
int |
getNumTrial() |
|
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 |
setEnergyFactor(double factor) |
sets the harmonic bond "energy" factor
The probability of the bond have length x is proportional to exp(-factor*x^2)
(there is no temperature involved here)
|
void |
setNumTrial(int newNumTrial) |
Sets the number of configurational bias trials
|
getNominalFrequency, getTracker, setTracker
affectedAtoms, energyChange, getBox, isNominallyPerParticleFrequency, toString
protected final Space space
protected final IRandom random
protected Vector[][] oldPositions
protected Vector[] rTrial
protected int nTrial
protected double[] pkl
protected double wOld
protected double wNew
protected double weightOld
protected double weightNew
protected final Vector com
protected final Vector com0
protected final AtomIteratorLeafAtoms leafIterator
protected double fac
protected final int[][] tangledMolecules
protected final AtomArrayList myAtoms
public void setNumTrial(int newNumTrial)
public int getNumTrial()
public void setEnergyFactor(double factor)
public void setBox(Box p)
MCMoveBox
public boolean doTrial()
MCMove
public double getChi(double temperature)
MCMove
public void rejectNotify()
MCMove
rejectNotify
in class MCMove
public void acceptNotify()
MCMove
acceptNotify
in class MCMove
public double energyChange()
energyChange
in class MCMoveBox
public AtomIterator affectedAtoms()
affectedAtoms
in class MCMoveBox