OpenSim.zip

Open Simulation Library

Explore simulations. Inspect the model. Run the code. Download the files.

OS-001 · monte-carlo-piOpen model
Points
10,000
Estimate
3.1464
Error
0.0048
Monte Carlo π: 4 × (fraction of points inside the quarter circle).
All 38 simulations
  1. 01Monte Carlo πEstimate π from random points in a unit square and watch the error shrink like 1/√n.interactiveJSPython.zip
  2. 02Random walkCoin-flip steps on a line or grid: distance grows like √n, and in 1-D and 2-D every walker comes back.interactiveJSPython.zip
  3. 03Markov chainA process that remembers only its current state: stationary distribution, mixing and absorption, live.interactiveJSPython.zip
  4. 04M/M/1 queueOne server, random arrivals, random service: why waits explode as utilization ρ = λ/μ approaches 1.interactiveJSPython.zip
  5. 05SIR modelSusceptible, infected, recovered: the three-compartment ODE behind epidemic curves and R₀.interactiveJSPython.zip
  6. 06Game of LifeTwo rules on a grid of cells: gliders, guns, oscillators and soups that settle or keep going.interactiveJSPython.zip
  7. 07Brownian motionParticles jiggle with Gaussian steps; their mean squared displacement grows as 4Dt, as Einstein predicted.interactiveJSPython.zip
  8. 08Predator–preyWolves, sheep and grass on a grid: noisy population cycles, a phase loop and the risk of extinction.interactiveJSPython.zip

Explore by field

Every model, four ways in

  1. Explore

    Change the parameters and watch the model respond. Stochastic models take a seed, so a run you like can be repeated exactly.

  2. Inspect

    Each page states the model: variables, equations or update rules, and what it deliberately leaves out.

  3. Run

    The code on the page is the code the page runs. The Python port uses the same generator and gives the same numbers.

  4. Download

    A .zip per model: README, model.json, simulation.js, simulation.py, example output, MIT license. Browse packages.

Methods behind the models

Learn