Package ffx.potential.commands
Class MoveIntoUnitCell
java.lang.Object
ffx.utilities.FFXCommand
ffx.potential.cli.PotentialCommand
ffx.potential.commands.MoveIntoUnitCell
Move the center of mass of each molecule into the unit cell.
Usage:
ffxc MoveIntoUnitCell <filename>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MolecularAssembly[]Save a reference to the MolecularAssembly instances to destroy their potentials.double[][]Original Cartesian coordinates before moving into the unit cell.double[][]Cartesian coordinates after moving into the unit cell.Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a List of all Potential objects associated with this command.run()Execute this Command.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
-
molecularAssemblies
Save a reference to the MolecularAssembly instances to destroy their potentials. -
origCoordinates
public double[][] origCoordinatesOriginal Cartesian coordinates before moving into the unit cell. -
unitCellCoordinates
public double[][] unitCellCoordinatesCartesian coordinates after moving into the unit cell.
-
-
Constructor Details
-
MoveIntoUnitCell
public MoveIntoUnitCell() -
MoveIntoUnitCell
-
MoveIntoUnitCell
-
-
Method Details
-
run
Description copied from class:FFXCommandExecute this Command.- 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.
-