PatchSim documentation#
PatchSim is a configuration-driven framework for compartmental epidemiology on one or more connected patches. The CLI loads YAML and CSV inputs, runs either LSODA-based ODE integration or deterministic explicit Euler, and writes a time-series CSV, a plot, and a run log.
PatchSim is under active development. Use the documentation for the installed version, and validate every configuration before running it.
Start here#
Getting started: create, validate, and run a real project.
Configuration: field names, file contracts, and expressions.
CLI reference: commands, output streams, and exit behavior.
Mathematical model: transition and network equations.
Group stratification: custom groups and interaction matrices.
Contact generation: spatial kernels, units, and validation.
Simulation workflow: solver steps, Sobol analysis, and calibration examples.
Results: output paths, column naming, and rerun behavior.
Documentation conventions#
Commands use
patchsimas installed from a package. From a source checkout, useuv run patchsiminstead.Relative paths in a configuration file are resolved from that file’s directory, not from the shell’s current directory.
YAML field names and compartment names are case-sensitive unless a page says otherwise.
Output columns such as
I_0use the zero-based row order fromPatchFile; the suffix is not the patch identifier.Examples describe behavior in the current code. Planned plugin features are not documented as available.