IntegratorTMMC
public class IntegratorMC extends IntegratorBox
MCMove
Integrator.Forcible, Integrator.Torquable
Modifier and Type | Field | Description |
---|---|---|
static boolean |
dodebug |
|
protected EventManager<MCMoveEvent> |
moveEventManager |
|
protected MCMoveManager |
moveManager |
|
protected IRandom |
random |
eventManager, initialized, interval, stepCount
box, currentPotentialEnergy, isothermal, meterPE, potentialMaster, space, temperature
Constructor | Description |
---|---|
IntegratorMC(PotentialMaster potentialMaster,
IRandom random,
double temperature,
Box box) |
|
IntegratorMC(Simulation sim,
PotentialMaster potentialMaster,
Box box) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
doStepInternal() |
Method to select and perform an elementary Monte Carlo move and decide acceptance.
|
EventManager<MCMoveEvent> |
getMoveEventManager() |
|
MCMoveManager |
getMoveManager() |
|
void |
notifyEnergyChange(double energyChange) |
Notifies the IntegratorMC that the energy changed allowing
the internal potential energy field to be updated.
|
void |
reset() |
Causes recalculation of move frequencies and zero of selection counts for
moves.
|
void |
setMoveManager(MCMoveManager newMoveManager) |
doStep, getEventInterval, getEventManager, getStepCount, isInitialized, resetStepCount, setEventInterval, setup
getBox, getMeterPotentialEnergy, getPotentialEnergy, getPotentialMaster, getTemperature, getTemperatureDimension, isIsothermal, setBox, setIsothermal, setMeterPotentialEnergy, setTemperature
public static boolean dodebug
protected final IRandom random
protected final EventManager<MCMoveEvent> moveEventManager
protected MCMoveManager moveManager
public IntegratorMC(Simulation sim, PotentialMaster potentialMaster, Box box)
sim
- Simulation where this integrator is usedpotentialMaster
- PotentialMaster instance used by moves to calculate the energypublic IntegratorMC(PotentialMaster potentialMaster, IRandom random, double temperature, Box box)
potentialMaster
- PotentialMaster instance used by moves to calculate the energyrandom
- random number generator used to select moves and decide acceptancetemperature
- temperature of the ensemblepublic MCMoveManager getMoveManager()
public void setMoveManager(MCMoveManager newMoveManager)
newMoveManager
- The moveManager to set.protected void doStepInternal()
doStepInternal
in class Integrator
public void notifyEnergyChange(double energyChange)
energyChange
- Change in the energypublic void reset()
reset
in class IntegratorBox
public EventManager<MCMoveEvent> getMoveEventManager()