espressomd / espresso

The ESPResSo package
https://espressomd.org
GNU General Public License v3.0
225 stars 183 forks source link

Implement manual trigger of bond breakage (for use with Lees-Edwards) #4665

Open RudolfWeeber opened 1 year ago

RudolfWeeber commented 1 year ago

@bindgens1

Temporary "solution": rewind the LE offset change applied in the last time step before stress measurement, measure stress, re-apply LE offset.

The proper solution is to introduce a script interface call to manually trigger the bond breakage. I'd hesitate to put this into the analysis routines, because analysis shouldn't actually modify the system.

Steps

Core

Script interface

Python

RudolfWeeber commented 1 year ago

See the test case testsuite/python/bond_breakage.py

And the doc of the feature: https://espressomd.github.io/doc/advanced_methods.html#deleting-bonds-when-particles-are-pulled-apart

RudolfWeeber commented 1 year ago

This ticket is suitable for early/new contributors, when it comes to the core implementation. An experienced dev can help with the script interface bindings.

RudolfWeeber commented 1 year ago

@bindgens1 Is this still needed. As far as I understnad, the crashes were caused by sth else?

bindgens1 commented 1 year ago

@RudolfWeeber I could run my simulations in the end, but I still think that this is needed in features that utilize Lees-Edwards. I do not need it for my specific use case.