Skip to content

Optimizing Grand Canonical Hybrid MCMD Simulations #1946

Answered by joaander
miramor asked this question in Support
Discussion options

You must be logged in to vote

There are C++ API calls to remove and add individual particles but these are not exposed to Python (#1535). I also don't think that these methods correctly handle removing the bonds/angles/... connected to the particles, but it has been many years since I looked at that code. There are no methods currently implemented to add/remove whole molecules.

set_snapshot triggers a full re-initialization of all particle/bond/angle/... data structures. It is therefore very expensive (10x or more the cost of evaluating the total energy of the system). This will also re-initialize the tags for every particle to match the index in the snapshot provided to set_snapshot. This should help explain the beha…

Replies: 3 comments 2 replies

Comment options

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

You must be logged in to vote
1 reply
@joaander
Comment options

Comment options

You must be logged in to vote
1 reply
@MartinGirard
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
3 participants