Gromacs
2026.0-dev-20241121-c76fa1e
|
#include <gromacs/applied_forces/qmmm/qmmminputgenerator.h>
Class that takes QMMMParameters, Coordinates, Point charges, Box dimensions, pbcType. Generates QM/MM sample input parameters and pdb-style coordinates for CP2K. Input are generated as std::string objects which can be stored in tpr KVT and/or flushed into the files.
Public Member Functions | |
QMMMInputGenerator (const QMMMParameters ¶meters, PbcType pbcType, const matrix box, ArrayRef< const real > q, ArrayRef< const RVec > x) | |
Construct QMMMInputGenerator from its parameters. More... | |
std::string | generateCP2KInput () const |
Generates sample CP2K input file. More... | |
std::string | generateCP2KPdb () const |
Generates PDB file suitable for usage with CP2K. In that PDB file Point Charges of MM atoms are provided with Extended Beta field. | |
const matrix & | qmBox () const |
Returns computed QM box dimensions. | |
const RVec & | qmTrans () const |
Returns computed translation vector in order to center QM atoms inside QM box. | |
gmx::QMMMInputGenerator::QMMMInputGenerator | ( | const QMMMParameters & | parameters, |
PbcType | pbcType, | ||
const matrix | box, | ||
ArrayRef< const real > | q, | ||
ArrayRef< const RVec > | x | ||
) |
Construct QMMMInputGenerator from its parameters.
[in] | parameters | Structure with QMMM parameters |
[in] | pbcType | Periodic boundary conditions |
[in] | box | Matrix with full box of the system |
[in] | q | Point charges of each atom in the system |
[in] | x | Coordinates of each atom in the system |
std::string gmx::QMMMInputGenerator::generateCP2KInput | ( | ) | const |
Generates sample CP2K input file.