# Implement dispersal module for spatial ATN model#2
Merged
Conversation
stkaren92
approved these changes
May 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
diffuse) and density-dependent (diffuse_density_dependent) dispersal functions on a 2D grid, based on Ryser et al. (2021)What was implemented
Functions (experiments/dispersal_experiments_design/functions/)
diffuse.r— density-independent dispersaldiffuse_density_dependent.r— density-dependent dispersal scaling with metabolism and net growth rate (Ryser formulation)run_diffusion_simulation.r— wrapper to run multi-step simulationsenforce_boundary_conditions.r— reflective boundary handlingTests (experiments/dispersal_experiments_design/tests/)
All tests simulate biomass spreading from a single central cell on a 51×51 grid over 50 time steps. The invasion front is tracked as the farthest cell above a threshold.
diffuseproduces a sublinear distance-time relationshipdiffuseanddiffuse_density_dependentagree whenb=0andmax_disp_rate/2 = disp_ratea(0.8) disperse further than species with lowa(0.2)Documentation and data (experiments/dispersal_experiments_design/data/)
a_calibration_formula.md— formulas to calibrate the maximum dispersal rate parameterafrom species traitsexternal_data_needs.md— required external data (species traits, allometric coefficients)SpeciesTraitsFull.csv— species trait datasetcontext/ryser2021_dispersal_summary.md— summary of the Ryser et al. (2021) dispersal modelAGENTS.md— integration guidance for other teamsTo review