Skip to content

Setting molecules as rigid bodies #1779

Answered by joaander
amruthesht asked this question in Support
Discussion options

You must be logged in to vote

This has been asked for many times over the years. I always encourage those interested to contribute a general code to the community that does this. For example, one could write a script that

  • Reads an input file where molecules are tagged.
  • Writes a GSD file properly formatted with central and constituent particles.
  • Also writes a json, pickle, or some other file type with the body type definitions for use by a HOOMD-blue script.

A general tool would:

  • Discover all types of unique molecules in the input.
  • For each type: Form the body definition in the local coordinate system.
  • Diagonalize (if desired).
  • Determine the final body positions and orientations.
  • Create rigid body types and central …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by amruthesht
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants