Gromacs  2021-beta2-UNCHECKED
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Enumerations | Functions | Variables
vsite.h File Reference
#include <memory>
#include "gromacs/math/vectypes.h"
#include "gromacs/topology/idef.h"
#include "gromacs/utility/arrayref.h"
#include "gromacs/utility/basedefinitions.h"
#include "gromacs/utility/classhelpers.h"
#include "gromacs/utility/real.h"
+ Include dependency graph for vsite.h:
+ This graph shows which files directly or indirectly include this file:


Declares the VirtualSitesHandler class and vsite standalone functions.

Berk Hess


class  gmx::VirtualSitesHandler
 Class that handles construction of vsites and spreading of vsite forces. More...


typedef std::array
< std::vector< int >
, c_ftypeVsiteEnd-c_ftypeVsiteStart > 
 Type for storing PBC atom information for all vsite types in the system.


enum  gmx::VirtualSiteVirialHandling : int { gmx::VirtualSiteVirialHandling::None, gmx::VirtualSiteVirialHandling::Pbc, gmx::VirtualSiteVirialHandling::NonLinear }
 Tells how to handle virial contributions due to virtual sites. More...


void gmx::constructVirtualSites (ArrayRef< RVec > x, ArrayRef< const t_iparams > ip, ArrayRef< const InteractionList > ilist)
 Create positions of vsite atoms based for the local system. More...
void gmx::constructVirtualSitesGlobal (const gmx_mtop_t &mtop, ArrayRef< RVec > x)
 Create positions of vsite atoms for the whole system assuming all molecules are wholex. More...
int gmx::countNonlinearVsites (const gmx_mtop_t &mtop)
 Return the number of non-linear virtual site constructions in the system.
int gmx::countInterUpdategroupVsites (const gmx_mtop_t &mtop, ArrayRef< const RangePartitioning > updateGroupingPerMoleculetype)
 Return the number of virtual sites that cross update groups. More...
< VirtualSitesHandler > 
gmx::makeVirtualSitesHandler (const gmx_mtop_t &mtop, const t_commrec *cr, PbcType pbcType)
 Create the virtual site handler. More...


static constexpr int gmx::c_ftypeVsiteStart = F_VSITE1
 The start value of the vsite indices in the ftype enum. More...
static constexpr int gmx::c_ftypeVsiteEnd = F_VSITEN + 1
 The start and end value of the vsite indices in the ftype enum.