Grompp
Module
viennaptm.gromacs.grompp
- class Grompp(mdp: Path, structure: Path, topology: Path, tpr: Path, **kwargs)
Bases:
GromacsCommandWrapper for the GROMACS
grompppreprocessor command.This command preprocesses a molecular dynamics parameter file, structure, and topology to generate a binary run input file (
.tpr) for subsequent simulation steps.Common warnings are tolerated by allowing a fixed maximum number of warnings during preprocessing.
- Parameters:
mdp (pathlib.Path) – Path to the molecular dynamics parameter (MDP) file.
structure (pathlib.Path) – Path to the input structure file (e.g.
.gro).topology (pathlib.Path) – Path to the topology file (e.g.
.top).tpr (pathlib.Path) – Path to the output binary run input file (
.tpr).kwargs (dict) – Additional keyword arguments forwarded to
GromacsCommand.
- build_gromacs_cmd()
Construct the
gmx gromppcommand invocation.This method assembles the command-line arguments required to preprocess input files and generate a
.tprfile.- Returns:
Command-line argument list suitable for execution.
- Return type:
list[str]
- expected_outputs()
Declare the files expected to be generated by this command.
- Returns:
List containing the generated
.tprfile path.- 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. |