Package ffx.potential.commands
Class Energy
java.lang.Object
ffx.utilities.FFXCommand
ffx.potential.cli.PotentialCommand
ffx.potential.commands.Energy
The Energy script evaluates the energy of a system.
Usage:
ffxc Energy <filename>
Usage:
ffxc Energy <filename>
-
Field Summary
Fields inherited from class ffx.potential.cli.PotentialCommand
activeAssembly, baseDir, potentialFunctions
Fields inherited from class ffx.utilities.FFXCommand
args, color, help, logger, parseResult, version
-
Constructor Summary
ConstructorDescriptionEnergy()
Energy constructor.Energy
(FFXContext ffxContext) Energy constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns a List of all Potential objects associated with this script.static void
This entry point is being used to test GraalVM ahead-of-time compilation.run()
Execute the script.void
setAtomSelectionOptions
(AtomSelectionOptions atomSelectionOptions) Methods inherited from class ffx.potential.cli.PotentialCommand
destroyPotentials, getActiveAssemblies, getActiveAssembly, getBaseDirString, init, setActiveAssembly
Methods inherited from class ffx.utilities.FFXCommand
getCommand, getFfxContext, helpString, listCommands
-
Field Details
-
energy
public double energy -
forceFieldEnergy
-
-
Constructor Details
-
Energy
public Energy()Energy constructor. -
Energy
Energy constructor.- Parameters:
ffxContext
- The FFXContext to use.
-
-
Method Details
-
run
Execute the script.- Overrides:
run
in classFFXCommand
- Returns:
- a
FFXCommand
object
-
getPotentials
Description copied from class:PotentialCommand
Returns a List of all Potential objects associated with this script. Should be written to tolerate nulls, as many tests run help() and exit without instantiating their Potentials.- Overrides:
getPotentials
in classPotentialCommand
- Returns:
- All Potentials. Sometimes empty, never null.
-
main
This entry point is being used to test GraalVM ahead-of-time compilation.- Parameters:
args
- Command line arguments.
-
getAtomSelectionOptions
-
setAtomSelectionOptions
-