How manuvanegas/spatialrustmodel works
Project type and purpose
• This is an open-source, scientific agent-based simulation tool written in Julia, called SpatialRust.
• Its purpose is to simulate coffee leaf rust epidemics in agroforestry systems by integrating plant growth, shade trees, and disease spread.
File structure
• Top level:
• scripts/: installer and sample run launcher.
• src/: core Julia modules.
• Project.toml & Manifest.toml: package and dependency definitions.
• Inside src/:
• SpatialRust.jl: main entry point and CLI interface.
• QuickRuns.jl & QuickMetrics.jl: convenience wrappers for batch runs and metrics extraction.
• ABM/: all agent-based model components:
– MainSetup.jl & CreateABM.jl: initialize simulation parameters and domain.
– FarmMap.jl, ShadeMap.jl: spatial grid definitions for coffee plants and shade trees.
– MainStep.jl: orchestrates per-tick updates.
– CoffeeSteps.jl, CGrowerSteps.jl, ShadeSteps.jl, RustGrowth.jl, RustDispersal.jl: domain-specific update rules.
README for additional insights
• Confirms: spatially explicit, modular ABM, user-modifiable parameters.
• Workflow: install deps → run sample script → tweak parameters → inspect results/.
Detail
• Every module as a separate element to show the full structure.