MemoSimagent-based modeling studio

Library/Health and life sciences

Microbial or cellular population interactions

This is an illustrative, uncalibrated agent-based model of a simple microbial ecosystem: - Bacteria (green) consume nutrient from the environment, grow, and divide when healthy.

Run in your browser Download .nlogox Get MemoSim verified in NetLogo Web · or open in MemoSim
Read the assumptions first. The model itself says it is illustrative and uncalibrated. Treat its output as a demonstration of a mechanism, not an estimate of a real system.

Category: Health and Life Sciences

What this model shows

This is an illustrative, uncalibrated agent-based model of a simple microbial ecosystem:

  • Bacteria (green) consume nutrient from the environment, grow, and divide when healthy.
  • Phages (red) are viruses that seek out and infect bacteria. On contact, the bacterium dies and releases new phages (burst).
  • Nutrient (patch color, green scale) regrows slowly, creating a carrying-capacity limit.

The model demonstrates classic predator–prey dynamics at the microbial scale: bacteria boom, phages follow, bacteria crash, and the cycle repeats.

Controls

| Widget | Meaning | Units | |---|---|---| | Initial bacteria | Number of bacteria at setup | count | | Initial phages | Number of phages at setup | count | | Nutrient regrowth | Probability (per tick) that a patch gains 1 nutrient | % | | Max population | Carrying-capacity ceiling for bacteria | count |

Mechanism (per tick)

1. Each bacterium loses 0.5 energy, gains up to 2 energy from its patch's nutrient, and divides if energy > 15 and population < max. 2. Each phage moves toward the nearest bacterium; on contact it kills the bacterium and releases 3 new phages, then dies. 3. Phages die after 30 ticks without a host. 4. Bacteria die from starvation (energy < 0) or old age (age > 60). 5. Patches regrow nutrient stochastically up to 10.

Assumptions & limitations

  • Spatial world is a 40×40 torus (wrapping).
  • No immune response, no mutation, no resistance.
  • All bacteria are identical; no strain structure.
  • Phage burst size is fixed at 3.
  • This model is illustrative only and is NOT calibrated to any real dataset. It is intended for teaching the qualitative dynamics of microbial population interactions.
Field
Health and life sciences
Model file
Microbial-or-cellular-population-interactions-b10a3f174ff5.nlogox · 39 KB
Controls
initial-bacteria, initial-phages, nutrient-regrowth, max-population
Reporters
none recorded
Procedures
setup, go, recolor
Experiment
none pinned in this file
Documentation
3/7 · 260 words in the Info tab