BoxEventListener
, SpeciesAgentManager.AgentSource
IntegratorVelocityVerletRattle
public class IntegratorVelocityVerletShake extends IntegratorMD implements SpeciesAgentManager.AgentSource
Modifier and Type | Class | Description |
---|---|---|
static class |
IntegratorVelocityVerletShake.BondConstraints |
Integrator.Forcible, Integrator.Torquable
IntegratorMD.ThermostatType, IntegratorMD.VectorSource
Modifier and Type | Field | Description |
---|---|---|
protected AtomLeafAgentManager<Vector> |
agentManager |
|
protected IteratorDirective |
allAtoms |
|
protected Vector |
dr |
|
protected Vector[] |
drOld |
|
protected PotentialCalculationForceSum |
forceSum |
|
protected int |
maxIterations |
|
protected boolean[][] |
moved |
|
int |
printInterval |
|
protected SpeciesAgentManager |
shakeAgentManager |
|
protected double |
shakeTol |
|
protected Vector |
temp |
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 |
---|---|
IntegratorVelocityVerletShake(Simulation sim,
PotentialMaster potentialMaster,
Box box) |
|
IntegratorVelocityVerletShake(Simulation sim,
PotentialMaster potentialMaster,
IRandom random,
double timeStep,
double temperature,
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.
|
IntegratorVelocityVerletShake.BondConstraints |
getBondConstratins(ISpecies species) |
|
int |
getMaxIterations() |
|
SpeciesAgentManager |
getShakeAgentManager() |
|
double |
getShakeTolerance() |
|
java.lang.Object |
makeAgent(ISpecies a) |
Returns an agent for the given AtomType.
|
void |
releaseAgent(java.lang.Object agent,
ISpecies atom) |
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 |
setBondConstraints(ISpecies species,
int[][] bondedAtoms,
double[] bondLengths) |
|
void |
setForceSum(PotentialCalculationForceSum pc) |
|
void |
setMaxIterations(int newMaxIterations) |
|
void |
setShakeTolerance(double newShakeTol) |
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 SpeciesAgentManager shakeAgentManager
protected AtomLeafAgentManager<Vector> agentManager
protected final Vector dr
protected double shakeTol
protected int maxIterations
protected boolean[][] moved
protected Vector[] drOld
protected final Vector temp
public int printInterval
public IntegratorVelocityVerletShake(Simulation sim, PotentialMaster potentialMaster, Box box)
public IntegratorVelocityVerletShake(Simulation sim, PotentialMaster potentialMaster, IRandom random, double timeStep, double temperature, Box box)
public void setForceSum(PotentialCalculationForceSum pc)
public void setBondConstraints(ISpecies species, int[][] bondedAtoms, double[] bondLengths)
public IntegratorVelocityVerletShake.BondConstraints getBondConstratins(ISpecies species)
public SpeciesAgentManager getShakeAgentManager()
public void setShakeTolerance(double newShakeTol)
public double getShakeTolerance()
public int getMaxIterations()
public void setMaxIterations(int newMaxIterations)
protected void doStepInternal()
Integrator
doStepInternal
in class IntegratorMD
public void reset()
IntegratorBox
reset
in class IntegratorMD
public final java.lang.Object makeAgent(ISpecies a)
SpeciesAgentManager.AgentSource
makeAgent
in interface SpeciesAgentManager.AgentSource
public void releaseAgent(java.lang.Object agent, ISpecies atom)
SpeciesAgentManager.AgentSource
releaseAgent
in interface SpeciesAgentManager.AgentSource