Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a brownian_motion! function #46

Open
mastrof opened this issue May 15, 2023 · 1 comment
Open

Implement a brownian_motion! function #46

mastrof opened this issue May 15, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mastrof
Copy link
Owner

mastrof commented May 15, 2023

This function would simply move the agent randomly, with diffusivity defined by the Stokes-Einstein relationship
$$D = \dfrac{kT}{6\pi\eta r}$$
Properties of the medium (temperature and viscosity) can be added to the DEFAULT_ABM_PROPERTIES, defaulting to the values for water. Then brownian_motion!(microbe, model) would just use model.viscosity, model.temperature and microbe.radius to generate a random step.

@mastrof mastrof added the enhancement New feature or request label May 15, 2023
@mastrof mastrof added the good first issue Good for newcomers label Aug 6, 2023
@mastrof
Copy link
Owner Author

mastrof commented Mar 22, 2024

This is probably worth doing after #78 is done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant