Mdrun
Module
viennaptm.gromacs.mdrun
- class Mdrun(deffnm: str, **kwargs)
Bases:
GromacsCommandWrapper for the GROMACS
mdrunexecution command.This class runs a molecular dynamics simulation using a prepared run input file (
.tpr) identified by a default filename prefix. All standard GROMACS output files are generated using this prefix.- Parameters:
deffnm (str) – Default filename prefix for input and output files.
kwargs (dict) – Additional keyword arguments forwarded to
GromacsCommand.
- build_gromacs_cmd()
Construct the
gmx mdruncommand invocation.The command uses the default filename prefix to locate the input
.tprfile and generate all simulation output files.- Returns:
Command-line argument list suitable for execution.
- Return type:
list[str]
- expected_outputs()
Declare the primary output files expected from the simulation.
The output structure file (
.gro) is resolved relative to the working directory if one is configured.- Returns:
List containing the generated output structure file path.
- Return type:
list[pathlib.Path]
Methods
|
Initialize a GROMACS command wrapper. |
|
Build the full command invocation. |
Construct the |
|
Declare the primary output files expected from the simulation. |
|
|
Inspect command output for fatal GROMACS errors. |
|
Construct the MPI command prefix. |
|
Verify that expected output files were created. |
|
Execute the GROMACS command. |