Class MDMove

java.lang.Object
ffx.algorithms.mc.MDMove
All Implemented Interfaces:
MCMove

public class MDMove extends Object implements MCMove
Use MD as a coordinate based MC move.
Author:
Mallory R. Tollefson
  • Constructor Details

  • Method Details

    • getEnergyChange

      public double getEnergyChange()
      Get the total energy change for the current move.
      Returns:
      Total energy change.
    • getInitialKinetic

      public double getInitialKinetic()
    • getInitialPotential

      public double getInitialPotential()
    • getInitialTotal

      public double getInitialTotal()
    • getKineticEnergy

      public double getKineticEnergy()
      getKineticEnergy.
      Returns:
      a double.
    • getMD

      public MolecularDynamics getMD()
    • getPotentialEnergy

      public double getPotentialEnergy()
      getPotentialEnergy.
      Returns:
      a double.
    • move

      public void move()
      Performs the move associated with this MCMove.
      Specified by:
      move in interface MCMove
    • move

      public void move(MDVerbosity verbosityLevel)
      Performs an MDMove.
      Parameters:
      verbosityLevel - How verbose to be.
    • revertMove

      public void revertMove()
      Reverts the last applied move() call. Returns the same energy change as described above (with the same sign).
      Specified by:
      revertMove in interface MCMove
    • setMDIntervalSteps

      public void setMDIntervalSteps(int intervalSteps)
    • writeFilesForStep

      public EnumSet<MDWriteAction> writeFilesForStep(long mdStep, boolean trySnapshot, boolean tryRestart)
      Write restart and trajectory files if the provided step matches the frequency.
      Parameters:
      mdStep - MD step (not MC cycle number) to write files (if any) for.
      trySnapshot - If false, do not write snapshot even if the time step is correct.
      tryRestart - If false, do not write a restart file even if the time step is correct.
      Returns:
      Returns the write actions.