EditConf
Module
viennaptm.gromacs.editconf
- class EditConf(input_gro: Path, output_gro: Path, **kwargs)
Bases:
GromacsCommandWrapper for the GROMACS
editconfcommand.This class constructs and executes a
gmx editconfcommand to center a structure, define a cubic simulation box, and apply a fixed distance between the solute and the box edge.The command is built using the configured GROMACS binary and produces a single output
.grofile.- Parameters:
input_gro (pathlib.Path) – Path to the input GRO structure file.
output_gro (pathlib.Path) – Path to the output GRO structure file.
kwargs (dict) – Additional keyword arguments forwarded to
GromacsCommand.
- build_gromacs_cmd()
Construct the
gmx editconfcommand invocation.The generated command centers the input structure, places it in a cubic simulation box, and enforces a fixed distance between the solute and the box boundary.
- Returns:
Command-line argument list suitable for execution.
- Return type:
list[str]
- expected_outputs()
Declare the files expected to be generated by this command.
This method is typically used by workflow or execution managers to validate successful command completion.
- Returns:
List containing the path to the generated output GRO file.
- Return type:
list[pathlib.Path]
Methods
|
Initialize a GROMACS command wrapper. |
|
Build the full command invocation. |
Construct the |
|
Declare the files expected to be generated by this command. |
|
|
Inspect command output for fatal GROMACS errors. |
|
Construct the MPI command prefix. |
|
Verify that expected output files were created. |
|
Execute the GROMACS command. |