Skip to content

Simulating Rigid Bodies with charged constituents #1789

Answered by joaander
amruthesht asked this question in Support
Discussion options

You must be logged in to vote

Unlike the other keys in body (type, position, and orientation): constrain.Rigid has never automatically set charges on constituents on every time step. Moving the dictionary to create_bodies reflects the actual behavior. When you call create_bodies, it will set the charges on the constituent particles that once.

GSD does store information on the constituent particles (including the charge). When you load the system state from a GSD file containing constituent particles, there is no need to call create_bodies - it is a convenience method to place particles that you could also place by other means.

To restate: If you are migrating from a previous version of HOOMD-blue, then there is no cha…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@amruthesht
Comment options

@joaander
Comment options

@amruthesht
Comment options

Answer selected by amruthesht
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