Skip to content

Comments

Add a pseudo diffusivity to the model#3

Merged
mdpiper merged 7 commits intomainfrom
mdpiper/add-diffusivity
Apr 17, 2025
Merged

Add a pseudo diffusivity to the model#3
mdpiper merged 7 commits intomainfrom
mdpiper/add-diffusivity

Conversation

@mdpiper
Copy link
Member

@mdpiper mdpiper commented Mar 21, 2025

This PR adds a "diffusivity" to the model--a weight, favoring remaining in place, to the random displacement of a particle in a time step. The diffusivity is a model parameter set in the configuration file. It's a positive integer. Increasing the value of this "diffusivity" decreases the chance of a particle staying in place.

To use weights, I'm using random.choices instead of random.choice.

@mdpiper mdpiper mentioned this pull request Mar 21, 2025
7 tasks
@mdpiper mdpiper marked this pull request as ready for review April 16, 2025 21:11
@mdpiper mdpiper merged commit 1154fba into main Apr 17, 2025
@mdpiper mdpiper deleted the mdpiper/add-diffusivity branch April 17, 2025 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant