Skip to content

This project simulates the ecosystem of Rossumøya, modeling animal life cycles and interactions across different landscapes to study long-term species viability and ecosystem stability.

License

Notifications You must be signed in to change notification settings

mahrin/bioSim_simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BioSim Simulation

Description

This project simulates the ecosystem of Rossumøya, an island inhabited by herbivores and carnivores. The simulation models their yearly life cycle—feeding, migration, aging, weight loss, and death—based on probabilities and resource availability. Herbivores rely on plants in lowlands and highlands, while carnivores hunt herbivores. The island is divided into cells with four landscape types (lowland, highland, desert, water), each defining food availability and livability. The model is used to study species viability and ecosystem stability over time.

Feature example

Contents

  • Source Code
    📂 src/biosim

    • animal_kingdom.py
    • landscape_structure.py
    • island_manager.py
    • simulation.py
    • visualization.py
  • Tests

    tox test results

  • Extra Features

    • Population statistics in the visualisation
    • Animal count showing total population
  • Examples

    • 📂 Usage examples are available in the examples folder.
      • experiment_01.py: Simulates 500 herbivores for 40 years, then 50 carnivores for 60 years; outputs MP4, GIF, and PDF, repeated over multiple seeds.
      • experiment_02.py: Simulates herbivores on Desert-Low-Island for 20 years, then adds carnivores for 40 years, repeated over 3 seeds.
      • updated_check_sim_1000years.py: Simulates 1000 years: 150 herbivores initially, with 40 carnivores introduced after 300 years.
      • migration_check.py: Test file to verify migration: with probability set to 1, animals form a chess-like pattern if migration works correctly.
      • animal_landscape_check_carn_with_delta15.ipynb: This file helps us understand whether the Animal and Landscape class works properly or not.

About

This project simulates the ecosystem of Rossumøya, modeling animal life cycles and interactions across different landscapes to study long-term species viability and ecosystem stability.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published