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

FilePurpose
README.mdWhat the model does, how to run it, parameter table, the example result, assumptions.
model.jsonMachine-readable parameters (type, range, default, unit), outputs, the random-number generator and the seed-42 result.
simulation.jsThe same model code the interactive page runs, with the generator inlined and a command-line runner. No dependencies; Node 18 or later.
simulation.pyA Python 3.9+ port using only the standard library.
example.csvThe result table from the example run, for models that produce a time series or distribution.
LICENSE.txtMIT License.

Running a package

Shell
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.csv

Options 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

PackageModelFilesSizeDownload
monte-carlo-pi.zipMonte Carlo π69.6 KBDownload
monte-carlo-integration.zipMonte Carlo integration613.1 KBDownload
buffons-needle.zipBuffon's needle611.3 KBDownload
option-pricing.zipMonte Carlo option pricing614.3 KBDownload
metropolis-hastings.zipMetropolis–Hastings622.2 KBDownload

Probability

PackageModelFilesSizeDownload
coin-flip.zipCoin flip610.2 KBDownload
dice-roll.zipDice roll69.0 KBDownload
birthday-paradox.zipBirthday paradox611.1 KBDownload
monty-hall.zipMonty Hall problem612.8 KBDownload
galton-board.zipGalton board68.9 KBDownload
central-limit-theorem.zipCentral limit theorem611.7 KBDownload

Stochastic processes

PackageModelFilesSizeDownload
random-walk.zipRandom walk616.1 KBDownload
brownian-motion.zipBrownian motion615.4 KBDownload
markov-chain.zipMarkov chain617.2 KBDownload
poisson-process.zipPoisson process69.2 KBDownload
gamblers-ruin.zipGambler's ruin612.0 KBDownload
geometric-brownian-motion.zipGeometric Brownian motion618.9 KBDownload

Queueing & discrete-event

PackageModelFilesSizeDownload
mm1-queue.zipM/M/1 queue612.2 KBDownload
multi-server-queue.zipM/M/c queue611.6 KBDownload
littles-law.zipLittle's law615.2 KBDownload
discrete-event-simulation.zipDiscrete-event simulation614.7 KBDownload

Agents & cellular automata

PackageModelFilesSizeDownload
game-of-life.zipGame of Life615.9 KBDownload
elementary-cellular-automata.zipElementary cellular automata610.5 KBDownload
schelling-segregation.zipSchelling segregation610.4 KBDownload
boids.zipBoids flocking612.8 KBDownload
forest-fire.zipForest fire model612.8 KBDownload
predator-prey.zipPredator–prey619.2 KBDownload

Population & epidemics

PackageModelFilesSizeDownload
logistic-growth.zipLogistic growth618.1 KBDownload
sir-model.zipSIR model614.0 KBDownload
lotka-volterra.zipLotka–Volterra630.6 KBDownload

Networks

PackageModelFilesSizeDownload
random-network.zipRandom network (Erdős–Rényi)610.0 KBDownload
network-epidemic.zipEpidemic on a network614.0 KBDownload
pagerank.zipPageRank610.4 KBDownload

Physics

PackageModelFilesSizeDownload
projectile-motion.zipProjectile motion618.7 KBDownload
harmonic-oscillator.zipHarmonic oscillator640.4 KBDownload
double-pendulum.zipDouble pendulum664.4 KBDownload
diffusion.zipDiffusion612.2 KBDownload
ising-model.zipIsing model612.9 KBDownload