pytrax icon indicating copy to clipboard operation
pytrax copied to clipboard

Add ability to kill walkers

Open TomTranter opened this issue 5 years ago • 2 comments

This type of behavior can be used to simulate NMR data https://www.sciencedirect.com/science/article/pii/S1090780707001644 Would be relatively simple to implement but would mess up the MSD calculations so needs some thought might need new metrics

TomTranter avatar Jul 17 '19 10:07 TomTranter

Maybe this could be done as a post process? I'm thinking you could either find the steps in walker's path where it hit a wall, then apply a probability of being extinguished, then finding which collision event was it's last, and ignoring the rest of the walk.

I'm not sure, but I think you could find the collisions by finding steps where the walker position did not change? Or maybe we could find all coordinates in the image that is next to the wall, and find all steps where the walker assumed one of those positions. Or, just alter the code to all note at which steps the walk hit the wall.

jgostick avatar Jul 19 '19 14:07 jgostick

Wall hitting is identifiable so yeah you could definitely add another calculation to kill it or not and then record dead times as a mask or dead step then filter. Shouldn't be too hard

TomTranter avatar Jul 19 '19 15:07 TomTranter