Model packages
Every simulation on OpenSim.zip ships as a small .zip: the model code the page runs, a Python port that reproduces it, the parameters and an example result. 38 packages, 603.8 KB in total, MIT-licensed.
What is in a package
| File | Purpose |
|---|---|
README.md | What the model does, how to run it, parameter table, the example result, assumptions. |
model.json | Machine-readable parameters (type, range, default, unit), outputs, the random-number generator and the seed-42 result. |
simulation.js | The same model code the interactive page runs, with the generator inlined and a command-line runner. No dependencies; Node 18 or later. |
simulation.py | A Python 3.9+ port using only the standard library. |
example.csv | The result table from the example run, for models that produce a time series or distribution. |
LICENSE.txt | MIT License. |
Running a package
unzip random-walk.zip && cd random-walk
node simulation.js --help
python simulation.py --steps 500 --seed 7
python simulation.py --seed 7 --csv > walk.csvOptions mirror the controls on the model page. Output is JSON (parameters plus a summary) or, with --csv, the full result table. Stochastic models use a seeded xoshiro128** generator implemented identically in both languages, so --seed 7 in Node, in Python and in the browser describes the same run. The build checks this for every package; see the methodology.
All packages
Monte Carlo
| Package | Model | Files | Size | Download |
|---|---|---|---|---|
monte-carlo-pi.zip | Monte Carlo π | 6 | 9.6 KB | Download |
monte-carlo-integration.zip | Monte Carlo integration | 6 | 13.1 KB | Download |
buffons-needle.zip | Buffon's needle | 6 | 11.3 KB | Download |
option-pricing.zip | Monte Carlo option pricing | 6 | 14.3 KB | Download |
metropolis-hastings.zip | Metropolis–Hastings | 6 | 22.2 KB | Download |
Probability
| Package | Model | Files | Size | Download |
|---|---|---|---|---|
coin-flip.zip | Coin flip | 6 | 10.2 KB | Download |
dice-roll.zip | Dice roll | 6 | 9.0 KB | Download |
birthday-paradox.zip | Birthday paradox | 6 | 11.1 KB | Download |
monty-hall.zip | Monty Hall problem | 6 | 12.8 KB | Download |
galton-board.zip | Galton board | 6 | 8.9 KB | Download |
central-limit-theorem.zip | Central limit theorem | 6 | 11.7 KB | Download |
Stochastic processes
| Package | Model | Files | Size | Download |
|---|---|---|---|---|
random-walk.zip | Random walk | 6 | 16.1 KB | Download |
brownian-motion.zip | Brownian motion | 6 | 15.4 KB | Download |
markov-chain.zip | Markov chain | 6 | 17.2 KB | Download |
poisson-process.zip | Poisson process | 6 | 9.2 KB | Download |
gamblers-ruin.zip | Gambler's ruin | 6 | 12.0 KB | Download |
geometric-brownian-motion.zip | Geometric Brownian motion | 6 | 18.9 KB | Download |
Queueing & discrete-event
| Package | Model | Files | Size | Download |
|---|---|---|---|---|
mm1-queue.zip | M/M/1 queue | 6 | 12.2 KB | Download |
multi-server-queue.zip | M/M/c queue | 6 | 11.6 KB | Download |
littles-law.zip | Little's law | 6 | 15.2 KB | Download |
discrete-event-simulation.zip | Discrete-event simulation | 6 | 14.7 KB | Download |
Agents & cellular automata
| Package | Model | Files | Size | Download |
|---|---|---|---|---|
game-of-life.zip | Game of Life | 6 | 15.9 KB | Download |
elementary-cellular-automata.zip | Elementary cellular automata | 6 | 10.5 KB | Download |
schelling-segregation.zip | Schelling segregation | 6 | 10.4 KB | Download |
boids.zip | Boids flocking | 6 | 12.8 KB | Download |
forest-fire.zip | Forest fire model | 6 | 12.8 KB | Download |
predator-prey.zip | Predator–prey | 6 | 19.2 KB | Download |
Population & epidemics
| Package | Model | Files | Size | Download |
|---|---|---|---|---|
logistic-growth.zip | Logistic growth | 6 | 18.1 KB | Download |
sir-model.zip | SIR model | 6 | 14.0 KB | Download |
lotka-volterra.zip | Lotka–Volterra | 6 | 30.6 KB | Download |
Networks
| Package | Model | Files | Size | Download |
|---|---|---|---|---|
random-network.zip | Random network (Erdős–Rényi) | 6 | 10.0 KB | Download |
network-epidemic.zip | Epidemic on a network | 6 | 14.0 KB | Download |
pagerank.zip | PageRank | 6 | 10.4 KB | Download |
Physics
| Package | Model | Files | Size | Download |
|---|---|---|---|---|
projectile-motion.zip | Projectile motion | 6 | 18.7 KB | Download |
harmonic-oscillator.zip | Harmonic oscillator | 6 | 40.4 KB | Download |
double-pendulum.zip | Double pendulum | 6 | 64.4 KB | Download |
diffusion.zip | Diffusion | 6 | 12.2 KB | Download |
ising-model.zip | Ising model | 6 | 12.9 KB | Download |