Gromacs
2024.3
|
#include "gmxpre.h"
#include "gromacs/pbcutil/com.h"
#include <algorithm>
#include <vector>
#include "gromacs/pbcutil/pbc.h"
#include "gromacs/topology/mtop_util.h"
#include "gromacs/topology/topology.h"
#include "gromacs/utility/range.h"
Implements helper methods to place particle COM in boxes.
Functions | |
RVec | gmx::anonymous_namespace{com.cpp}::evaluateShiftToBox (const RVec &position, const matrix box, const PbcType &pbcType, const UnitCellType &unitCellType, const CenteringType ¢erType) |
Calculates shift to place COM into a box. More... | |
RVec | gmx::anonymous_namespace{com.cpp}::calculateCOM (ArrayRef< const RVec > x, const gmx_moltype_t &moltype, const int atomOffset=0) |
Calculates the COM for each collection of atoms. More... | |
void | gmx::shiftAtoms (const RVec &shift, ArrayRef< RVec > x) |
Shift all coordinates. More... | |
void | gmx::placeCoordinatesWithCOMInBox (const PbcType &pbcType, UnitCellType unitCellType, CenteringType centerType, const matrix box, ArrayRef< RVec > x, const gmx_mtop_t &mtop, COMShiftType comShiftType) |
Moves collection of atoms along the center of mass into a box. More... | |