Package ffx.potential.commands
Class PhEnergy
java.lang.Object
ffx.utilities.FFXCommand
ffx.potential.cli.PotentialCommand
ffx.potential.commands.PhEnergy
The Energy script evaluates the energy of a system.
Usage:
ffxc PhEnergy <filename>
Usage:
ffxc PhEnergy <filename>
-
Field Summary
FieldsFields inherited from class ffx.potential.cli.PotentialCommand
activeAssembly, baseDir, potentialFunctionsFields inherited from class ffx.utilities.FFXCommand
args, binding, color, help, logger, parseResult, version -
Constructor Summary
ConstructorsConstructorDescriptionPhEnergy()Energy constructor.PhEnergy(FFXBinding binding) Energy constructor.PhEnergy constructor that sets the command line arguments. -
Method Summary
Modifier and TypeMethodDescriptionReturns a List of all Potential objects associated with this command.run()Execute the script.static voidsetESVLambda(double lambda, ExtendedSystem extendedSystem) Sets lambda values for the extended system.static voidsetESVTautomer(double tautomer, ExtendedSystem extendedSystem) Sets tautomer values for the extended system.Methods inherited from class ffx.potential.cli.PotentialCommand
createOutputFile, destroyPotentials, getActiveAssemblies, getActiveAssembly, getActiveAssembly, getBaseDirString, getPotentialsFromAssemblies, init, parseFilePath, saveByExtension, saveByExtension, saveByOriginalExtension, saveByOriginalExtension, setActiveAssemblyMethods inherited from class ffx.utilities.FFXCommand
getCommand, helpString, listCommands, setBinding
-
Field Details
-
energy
public double energy -
forceFieldEnergy
-
-
Constructor Details
-
PhEnergy
public PhEnergy()Energy constructor. -
PhEnergy
Energy constructor.- Parameters:
binding- The Binding to use.
-
PhEnergy
PhEnergy constructor that sets the command line arguments.- Parameters:
args- Command line arguments.
-
-
Method Details
-
run
Execute the script.- Overrides:
runin classFFXCommand- Returns:
- The current FFXCommand.
-
getPotentials
Description copied from class:PotentialCommandReturns a List of all Potential objects associated with this command. Should be written to tolerate nulls, as many tests run help() and exit without instantiating their Potentials.- Overrides:
getPotentialsin classPotentialCommand- Returns:
- All Potentials. Sometimes empty, never null.
-
setESVLambda
Sets lambda values for the extended system. Note that it is expected that the tautomer is set correctly from dynamics.- Parameters:
lambda- The lambda value.extendedSystem- The extended system.
-
setESVTautomer
Sets tautomer values for the extended system. Note that it is expected that the lambda is set correctly from dynamics.- Parameters:
tautomer- The value of the tautomer.extendedSystem- The extended system instance.
-