Skip to content

Add particles and bonds after simulation is initialized #1858

Answered by yliu6677
yliu6677 asked this question in Support
Discussion options

You must be logged in to vote

Here is my solution:

Create a gsd frame by 'frame = gsd.hoomd.Frame()'.

Copy the current snapshot to this frame.

Add particles etc to this frame.

Create a new simulation with the state from this frame.

Please leave your solution if you have a better one.

Replies: 2 comments 3 replies

Comment options

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

@joaander
Comment options

@yliu6677
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by yliu6677
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