Package ffx.algorithms
Interface AlgorithmFunctions
- All Superinterfaces:
PotentialsFunctions
- All Known Implementing Classes:
AlgorithmUtils
,UIUtils
AlgorithmFunctions, on top of the core functionality of PotentialsFunctions, describes additional
functionality such as molecular dynamics and L-BFGS local optimization.
This is implemented in two locations: UIUtils in the User Interfaces package, and in AlgorithmsUtils in the Algorithm package.
The UIUtils implementation is the default for Force Field X; on top of the core functionality, it also updates the FFX graphical user interface and tree structure.
The AlgorithmUtils implementation lacks the extra functionality of the UIUtils implementation, and simply accomplishes the required task. This is used by our tests, and is also potentially useful for third parties who would like to use FFX without its GUI.
- Author:
- Jacob M. Litman, Michael J. Schnieders
-
Field Summary
Fields inherited from interface ffx.potential.utils.PotentialsFunctions
logger
-
Method Summary
Modifier and TypeMethodDescriptiondefault AlgorithmListener
Returns a default Listener if available (null by default).void
md
(MolecularAssembly assembly, int nStep, double timeStep, double printInterval, double saveInterval, double temperature, boolean initVelocities, File dyn) Runs molecular dynamics on an assembly.minimize
(MolecularAssembly assembly, double eps) Relax the coordinates of a MolecularAssembly and minimize its potential energyMethods inherited from interface ffx.potential.utils.PotentialsFunctions
close, closeAll, energy, energy, getActiveAssembly, getArguments, getFilter, isLocal, open, open, openAll, openAll, openAll, returnEnergy, save, saveAsPDB, saveAsPDB, saveAsPDB, saveAsPDBinP1, saveAsXYZ, saveAsXYZasReplicates, saveAsXYZinP1, time, versionFile, versionFile
-
Method Details
-
getDefaultListener
Returns a default Listener if available (null by default).- Returns:
- An AlgorithmListener or null.
-
md
void md(MolecularAssembly assembly, int nStep, double timeStep, double printInterval, double saveInterval, double temperature, boolean initVelocities, File dyn) Runs molecular dynamics on an assembly.- Parameters:
assembly
- aMolecularAssembly
object.nStep
- TimestepstimeStep
- Time per stepprintInterval
- a double.saveInterval
- a double.temperature
- a double.initVelocities
- Initialize velocities from Maxwell-Boltzmann distributiondyn
- Dynamics file
-
minimize
Relax the coordinates of a MolecularAssembly and minimize its potential energy- Parameters:
assembly
- aMolecularAssembly
object.eps
- RMS gradient convergence criteria- Returns:
- A
Potential
-