ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
ComInfo Struct Reference

Center of mass information for a molecule. More...

Public Member Functions

template<class Archive >
void serialize (Archive &ar, unsigned int const version)
 

Public Attributes

double total_mass = 0.
 Sum of the masses of all constituent particles.
 
Utils::Vector3d weighted_position = {0., 0., 0.}
 Sum of (mass * position) for all constituent particles.
 

Friends

class boost::serialization::access
 

Detailed Description

Center of mass information for a molecule.

Hold the total mass and the mass-weighted position sum for a molecule, used in center of mass calculations and MPI communication.

Definition at line 73 of file com.cpp.

Member Function Documentation

◆ serialize()

template<class Archive >
void ComInfo::serialize ( Archive ar,
unsigned int const  version 
)
inline

Definition at line 81 of file com.cpp.

References stream, total_mass, and weighted_position.

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 79 of file com.cpp.

Member Data Documentation

◆ total_mass

double ComInfo::total_mass = 0.

Sum of the masses of all constituent particles.

Definition at line 75 of file com.cpp.

Referenced by serialize().

◆ weighted_position

Utils::Vector3d ComInfo::weighted_position = {0., 0., 0.}

Sum of (mass * position) for all constituent particles.

Definition at line 77 of file com.cpp.

Referenced by serialize().


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