Package ffx.algorithms.cli
Class ThermodynamicsOptions
java.lang.Object
ffx.algorithms.cli.ThermodynamicsOptions
Represents command line options for scripts that calculate thermodynamics.
- Since:
- 1.0
- Author:
- Michael J. Schnieders, Jacob M. Litman
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Represents categories of thermodynamics algorithms that must be handled differently. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the selected Thermodynamics algorithm as an enumerated type.long
The number of equilibration steps prior to production OST counts begin.long
getEquilSteps.boolean
Getter for the fieldresetNumSteps
.The algorithm to be used (e.g.boolean
Ignores steps detected in .lam lambda-restart files.runFixedAlchemy
(MolecularAssembly[] molecularAssemblies, CrystalPotential crystalPotential, DynamicsOptions dynamicsOptions, WriteoutOptions writeoutOptions, File dyn, AlgorithmListener algorithmListener) Run an alchemical free energy window.runNEQ
(MolecularAssembly[] molecularAssemblies, CrystalPotential crystalPotential, DynamicsOptions dynamicsOptions, WriteoutOptions writeoutOptions, File dyn, AlgorithmListener algorithmListener) Run a non-equilibrium alchemical free energy simulation.void
setEquilibrationSteps
(long equilibrationSteps) void
setResetNumSteps
(boolean resetNumSteps) void
setThermoAlgoString
(String thermoAlgoString)
-
Constructor Details
-
ThermodynamicsOptions
public ThermodynamicsOptions()
-
-
Method Details
-
getAlgorithm
Return the selected Thermodynamics algorithm as an enumerated type.- Returns:
- Corresponding thermodynamics algorithm
-
getEquilSteps
public long getEquilSteps()getEquilSteps.- Returns:
- The number of equilibration steps.
-
getResetNumSteps
public boolean getResetNumSteps()Getter for the fieldresetNumSteps
.- Returns:
- a boolean.
-
runFixedAlchemy
public MolecularDynamics runFixedAlchemy(MolecularAssembly[] molecularAssemblies, CrystalPotential crystalPotential, DynamicsOptions dynamicsOptions, WriteoutOptions writeoutOptions, File dyn, AlgorithmListener algorithmListener) Run an alchemical free energy window.- Parameters:
molecularAssemblies
- All involved MolecularAssemblies.crystalPotential
- The Potential to be sampled.dynamicsOptions
- DynamicsOptions.writeoutOptions
- WriteoutOptionsdyn
- MD restart filealgorithmListener
- AlgorithmListener- Returns:
- The MolecularDynamics object constructed.
-
runNEQ
public MolecularDynamics runNEQ(MolecularAssembly[] molecularAssemblies, CrystalPotential crystalPotential, DynamicsOptions dynamicsOptions, WriteoutOptions writeoutOptions, File dyn, AlgorithmListener algorithmListener) Run a non-equilibrium alchemical free energy simulation.- Parameters:
molecularAssemblies
- All involved MolecularAssemblies.crystalPotential
- The Potential to be sampled.dynamicsOptions
- DynamicsOptions.writeoutOptions
- WriteoutOptionsdyn
- MD restart filealgorithmListener
- AlgorithmListener- Returns:
- The MolecularDynamics object constructed.
-
getEquilibrationSteps
public long getEquilibrationSteps()The number of equilibration steps prior to production OST counts begin.- Returns:
- Returns the number of equilibration steps.
-
setEquilibrationSteps
public void setEquilibrationSteps(long equilibrationSteps) -
isResetNumSteps
public boolean isResetNumSteps()Ignores steps detected in .lam lambda-restart files.- Returns:
- Returns true if the number of steps is being reset.
-
setResetNumSteps
public void setResetNumSteps(boolean resetNumSteps) -
getThermoAlgoString
The algorithm to be used (e.g. OST, window-based methods, etc.).- Returns:
- Returns a String for requested algorithm.
-
setThermoAlgoString
-