Gromacs  2026.0-dev-20241213-9ac17bb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
ComSumContents Struct Reference
+ Collaboration diagram for ComSumContents:

Description

Struct containing the quantities calculated by sumComForRestraints.

Public Member Functions

gmx::RVec com () const
 Return the COM or returns zero when the sum of masses is zero.
 

Public Attributes

int numAtoms = 0
 Number of restrained atoms.
 
gmx::DVec sumCoordinateMasses = { 0.0, 0.0, 0.0 }
 Sum of position*mass of all restrained atoms.
 
double sumMass = 0.0
 Sum of the mass of all restrained mass atoms.
 

The documentation for this struct was generated from the following file: