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 Link icon

  • Method Details Link icon

    • getEnergyChange Link icon

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

      public double getInitialKinetic()
    • getInitialPotential Link icon

      public double getInitialPotential()
    • getInitialTotal Link icon

      public double getInitialTotal()
    • getKineticEnergy Link icon

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

      public MolecularDynamics getMD()
    • getPotentialEnergy Link icon

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

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

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

      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 Link icon

      public void setMDIntervalSteps(int intervalSteps)
    • writeFilesForStep Link icon

      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.