![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
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 |
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 81 of file com.cpp.
References stream, total_mass, and weighted_position.
| double ComInfo::total_mass = 0. |
Sum of the masses of all constituent particles.
Definition at line 75 of file com.cpp.
Referenced by serialize().
| 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().