liuqx315 / PS-Resilience-in-Ecosystems

Repository from Github https://github.comliuqx315/PS-Resilience-in-EcosystemsRepository from Github https://github.comliuqx315/PS-Resilience-in-Ecosystems

PS-Resilience-in-Ecosystems

This is a repository for the paper "Phase-separation physics underlies new theory for the resilience of patchy ecosystems" by Koen Siteur, Quan-Xing Liu*, Vivi Rotschafer, Tjisse van der Heide, Max Rietkerk, Arjen Doelman, Christoffer Bostrom, and Johan van de Koppel*. 2023 PNAS 120(2): e2202683120. DOI: 10.1073/pnas.220268312 .

  1. Py_Opencl for spatial 2D phase separation patterns (Equation (3); Fig. 4 in main text)
  2. Spinodal region of phase separation occur in Fig. 5A.
  3. Within Figure 3 fold, 'DDA Model_LS.ipynb' and 'SDF Model_LS.ipynb‘ for the data generate on coarsening laws of Figure S12.
  4. Figure S12 is codes and data for distictive coarsening behavior presented in Fig. S12.

Abbr DDA: density-depedent aggregation model; SDF: scale-dependent feedbacks model

Note: please setup the corrected DevinceNr for you computer! "DeviceNr = 2" the number dependent on your graphic card number and setup.

Please contact Quan-Xing Liu, qxliu@sklec.ecnu.edu.cn (or liuqx315@gmail.com) if you have any questions on the model simulation.

About

License:MIT License


Languages

Language:Jupyter Notebook 99.8%Language:C 0.1%Language:R 0.1%Language:MATLAB 0.1%