Gromacs  2026.0-dev-20251105-11eb1db
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::NNPotTopologyPreprocessor Class Reference

#include <gromacs/applied_forces/nnpot/nnpottopologypreprocessor.h>

Inherits QMMMTopologyPreprocessor.

Description

Class responsible for all modifications of the topology during input pre-processing.

Inherits from QMMMTopologyPreprocessor and performs the following modifications for a scheme analoguous to mechanical embedding in QMMM: 1) Split molecules containing NNP input atoms from other molecules in blocks 2) Exclude non-bonded interactions between NNP atoms. 3) Build vector with atomic numbers of all atoms. 4) Make InteractionFunction::ConnectBonds between atoms within NNP region. 5) Remove angles and settles containing 2 or more NNP atoms. 6) Remove dihedrals containing 3 or more NNP atoms.

Public Member Functions

 NNPotTopologyPreprocessor (ArrayRef< const Index > inputIndices)
 Constructor for NNPotTopologyPreprocessor from its parameters. More...
 
void preprocess (gmx_mtop_t *mtop, const MDLogger &logger, WarningHandler *wi)
 Process mtop topology containing information about topology modifications. More...
 

Constructor & Destructor Documentation

gmx::NNPotTopologyPreprocessor::NNPotTopologyPreprocessor ( ArrayRef< const Index inputIndices)

Constructor for NNPotTopologyPreprocessor from its parameters.

Parameters
[in]inputIndicesArray with global indices of NN input atoms

Member Function Documentation

void gmx::NNPotTopologyPreprocessor::preprocess ( gmx_mtop_t *  mtop,
const MDLogger &  logger,
WarningHandler wi 
)

Process mtop topology containing information about topology modifications.

Parameters
[in,out]mtopTopology that needs to be modified
[in]loggerMDLogger for logging info about modifications
[in]wiWarningHandler for handling warnings

The documentation for this class was generated from the following files: