AtomLeafAgentManager.AgentSource<Vector>
, BoxEventListener
IntegratorFixedWall
, IntegratorImageHarmonicMD
, IntegratorImageMultistepMD
, IntegratorMDHarmonicMC
, IntegratorVelocityVerletSAM
public class IntegratorVelocityVerlet extends IntegratorMD implements AtomLeafAgentManager.AgentSource<Vector>
Integrator.Forcible, Integrator.Torquable
IntegratorMD.ThermostatType, IntegratorMD.VectorSource
Modifier and Type | Field | Description |
---|---|---|
protected AtomLeafAgentManager<Vector> |
agentManager |
|
protected IteratorDirective |
allAtoms |
|
protected PotentialCalculationForceSum |
forceSum |
|
protected Tensor |
pressureTensor |
|
protected Tensor |
workTensor |
eventManager, initialized, interval, stepCount
box, currentPotentialEnergy, isothermal, meterPE, potentialMaster, space, temperature
alwaysScaleMomenta, atomActionRandomizeVelocity, currentKineticEnergy, currentTime, integratorMC, mcSteps, meterKE, meterTemperature, momentum, nAccepted, nRejected, oldEnergy, oldPositionAgentManager, oldPotentialEnergy, random, temperatureVec, thermostat, thermostatCount, thermostatInterval, thermostatNoDrift, thermostatting, timeStep
Constructor | Description |
---|---|
IntegratorVelocityVerlet(PotentialMaster potentialMaster,
IRandom random,
double timeStep,
double temperature,
Box box) |
|
IntegratorVelocityVerlet(Simulation sim,
PotentialMaster potentialMaster,
Box box) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
doStepInternal() |
Performs the elementary integration step, such as a molecular dynamics
time step, or a Monte Carlo trial.
|
AtomLeafAgentManager<Vector> |
getAgentManager() |
|
PotentialCalculationForceSum |
getForceSum() |
|
Tensor |
getPressureTensor() |
Returns the pressure tensor based on the forces calculated during the
last time step.
|
Vector |
makeAgent(IAtom a,
Box agentBox) |
Returns an agent for the given Atom.
|
void |
releaseAgent(Vector agent,
IAtom atom,
Box agentBox) |
This informs the agent source that the agent is going away and that
the agent source should disconnect the agent from other elements.
|
void |
reset() |
Performs superclass reset actions and recalculated currentPotentialEnergy
|
void |
setForceSum(PotentialCalculationForceSum pc) |
doStep, getEventInterval, getEventManager, getStepCount, isInitialized, setEventInterval
getBox, getMeterPotentialEnergy, getPotentialEnergy, getPotentialMaster, getTemperature, getTemperatureDimension, isIsothermal, setBox, setMeterPotentialEnergy
boxAtomLeafIndexChanged, boxGlobalAtomLeafIndexChanged, boxMoleculeAdded, boxMoleculeIndexChanged, boxMoleculeRemoved, boxNumberMolecules, doThermostat, doThermostatInternal, getAlwaysScaleRandomizedMomenta, getCurrentTime, getHybridAcceptance, getIntegratorMC, getKineticEnergy, getMeterTemperature, getThermostat, getThermostatInterval, getTimeStep, isThermostatNoDrift, randomizeMomenta, randomizeMomentum, randomizeTotalKE, resetHybridAcceptance, resetStepCount, scaleMomenta, scaleMomenta, setAlwaysScaleRandomizedMomenta, setIntegratorMC, setIsothermal, setMeterTemperature, setTemperature, setThermostat, setThermostatInterval, setThermostatNoDrift, setTimeStep, setup, shiftMomenta
protected PotentialCalculationForceSum forceSum
protected final IteratorDirective allAtoms
protected final Tensor pressureTensor
protected final Tensor workTensor
protected AtomLeafAgentManager<Vector> agentManager
public IntegratorVelocityVerlet(Simulation sim, PotentialMaster potentialMaster, Box box)
public IntegratorVelocityVerlet(PotentialMaster potentialMaster, IRandom random, double timeStep, double temperature, Box box)
public PotentialCalculationForceSum getForceSum()
public AtomLeafAgentManager<Vector> getAgentManager()
public void setForceSum(PotentialCalculationForceSum pc)
protected void doStepInternal()
Integrator
doStepInternal
in class IntegratorMD
public Tensor getPressureTensor()
public void reset()
IntegratorBox
reset
in class IntegratorMD
public Vector makeAgent(IAtom a, Box agentBox)
AtomLeafAgentManager.AgentSource
makeAgent
in interface AtomLeafAgentManager.AgentSource<Vector>
agentBox
- TODOpublic void releaseAgent(Vector agent, IAtom atom, Box agentBox)
AtomLeafAgentManager.AgentSource
releaseAgent
in interface AtomLeafAgentManager.AgentSource<Vector>