3 stable releases

2.0.0 May 14, 2024
1.0.1 Apr 20, 2021
1.0.0 Apr 19, 2021

#174 in Science

Download history 5/week @ 2024-09-20 34/week @ 2024-09-27 6/week @ 2024-10-04 3/week @ 2024-10-11

144 downloads per month

AGPL-3.0

110KB
2K SLoC

crates.io Documentation Documentation for Python bindings DOI Funding provided by DFG WI 4170/3-1

sir_ddft - A Rust implementation of the SIR-DDFT model

This repository contains a numerical implementation of the SIR-DDFT model as described in the article

te Vrugt, M., Bickmann, J. & Wittkowski, R. Effects of social distancing and isolation on epidemic spreading modeled via dynamical density functional theory. Nat. Commun. 11, 5576 (2020)

For comparison an implementation of the standard SIR model and a spatial SIR model with diffusion are included as well.

Bindings

Bindings of this library to Python and JavaScript/WebAssembly exist in their respective crates sir_ddft_py and sir_ddft_js within this repository.

Examples and demo

Examples of the usage of this library and its bindings can be found in the examples subfolder of the corresponding crate.

For ease of use we also include a web-based demonstration which is suitable for small scale / low resolution simulations. For more advanced usage, we recommend using the Rust or Python API.

License

All code in this repository is license under the GNU Affero General Public License Version 3 with the exception of the code in sir_ddft_js/www/lib, which is licensed under the MIT License. We gratefully acknowledge the copyright holders of these libraries:

  • Plotly.js: Copyright (c) 2021 Plotly, Inc
  • Micromodal.js Copyright (c) 2017 Indrashish Ghosh

Dependencies

~3.5MB
~66K SLoC