Gromacs
2021.4
|
#include <gromacs/mdlib/wholemoleculetransform.h>
This class manages a coordinate buffer with molecules not split over periodic boundary conditions for use in force calculations which require whole molecules.
Note: This class should not be used for computation of forces which have virial contributions through shift forces.
Public Member Functions | |
WholeMoleculeTransform (const gmx_mtop_t &mtop, PbcType pbcType) | |
Constructor. | |
void | updateForAtomPbcJumps (ArrayRef< const RVec > x, const matrix box) |
Updates the graph when atoms have been shifted by periodic vectors. | |
ArrayRef< const RVec > | wholeMoleculeCoordinates (ArrayRef< const RVec > x, const matrix box) |
Create and return coordinates with whole molecules for input coordinates x . More... | |
ArrayRef< const RVec > gmx::WholeMoleculeTransform::wholeMoleculeCoordinates | ( | ArrayRef< const RVec > | x, |
const matrix | box | ||
) |
Create and return coordinates with whole molecules for input coordinates x
.
[in] | x | Input coordinates, should not have periodic displacement compared with the coordinates passed in the last call to updateForAtomPbcJumps() . |
[in] | box | The current periodic image vectors |
Note: this operation is not free. If you need whole molecules coordinates more than once during the force calculation, store the result and reuse it.