Skip to content

CPPTRAJ rdf byres1/2 commands seem to be using the geometric center and not the center of mass  #1148

@srtippner97

Description

@srtippner97

Hello,

I just encountered an issue using cpptraj.
When calculating the rdf between two molecules, I used the byres commands in order to calculate it between the centers of mass.
Additionally, I used the distance command to calculate the distances between the same centers. The histogram of the distances should resemble the rdf, which is not the case.
However, when using the geometric center (geom command) to calculate the distances, it matches perfectly with the rdf.
Therefore, I believe that byres1/2 is using the geometric center of mass and not the center of mass.

Best regards,
Simon

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions