Difference between revisions of "Example WebKit Models"

From Numerus
Jump to navigation Jump to search
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
These models illustrate the Numerus WebKit modeling technology. To use, load the model into your browser and click '''Connect''' to initialize the model. This will enable the other 4 buttons: '''Disconnect''', '''Reset''', '''Step''' and '''Start'''. Use the '''Start/Stop''' button to run the program continuously. '''Step''' single-steps the program. '''Reset''' returns to the beginning. A '''Double-Reset''' reinitializes the simulation. You can also reinitialize with '''Disconnect/Connect''', or simply reloading the web page. See the [[WebKit Users Guide]] for complete documentation.
Be aware of the side panel, which you open and close by clicking on the side panel icon, [[File:sideicon.png]], and adjust using the purple stripe. This panel contains documentation, preset control and RAM access.
NetLogo is an established platform for implementing agent-based models. Numerus WebKit uses an API analogous to that of NetLogo, keeping the "Patches" and "Turtles" nomenclature and making the translation from NetLogo the WebKit straightforward. Many of the agent-based models in this collection were derived from the NetLogo model library. All such examples include NetLogo documentation, which for now serves to describe the model but may not totally match the WebKit implementation.
===Numerus Originals===
* [https://www.cs.oberlin.edu/~rms/wk/egol3/index.html Three State Extended Game of Life]
:A 3-state extended version of Conway's Game of Life (GoL). The mathematical equations behind this GoL are described in a paper that can be downloaded at [https://www.biorxiv.org/content/10.1101/2022.08.30.505937v1 mathRxiv]. Click through the 8 presets to view different starting configurations, and feel free to save your own interesting discoveries in unused presets. This model is a focus of the [[WebKit Users Guide]] as an example that makes extensive use of the RAM and preset features.
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/sirsdet/index.html SIRS WebKit App]
:Fully developed platform for teaching the SIRS Model. Documented extensively [https://e56600a52a1b6dbf8d29-34f1371aa433cd9fb9d20baa556ed72a.ssl.cf1.rackcdn.com/webapps/webkit/EPI_LESSONS.pdf here].
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/sirsdtvdet/index.html Deterministic SIRS with Vaccinations]
:A mass-action SIRS model with vaccinations described in the publication [https://doi.org/10.1101/2022.02.09.22270752 Simulation Platforms to Support Teaching and Research in Epidemiological Dynamics]. This app was merged into the previous example to create a fully developed platform for teaching the SIRS model.
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/sirsdtvsto/index.html Stochastic SIRS with Vaccinations]
:A stochastic version of the previous model. See [https://doi.org/10.1101/2022.02.09.22270752 Simulation Platforms to Support Teaching and Research in Epidemiological Dynamics]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/sdsir/index.html SD SIR]
:A simple mass-action SIR model demonstrating the WebKit Sensitivity analysis platform.
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/sdnumml1/index.html SD User Defined]
:An app in which the user programs the model. Discussed extensively in the [[WebKit Users Guide]].
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/agents/index.html Agents]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/agents/index.html Agents]
:Simple agent motion.
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/ani2/index.html Animover 2]
: '''Animover''' is a model of a group of agents foraging in an area for a food resource. Animover 2 is a preliminary version. It is the most complex WebKit simulation to date, with several thousand lines of code required to implement the model logic.
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/forest/index.html Forest]
:Cell automata model depicting a forest fire.
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/life/index.html Life]]
:Conway's Game of Life. Enough said. See the [[WebKit Users Guide]] to learn how to initialize the starting configuration.
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/lifeagents/index.html Life Agents]
:Game of Life with agent motion. An agent passing over a live cell colors the cell with the agent's color.
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/lorenz/index.html Lorenz Attractor]
:The Lorenz system is a system of ordinary differential equations first studied by mathematician and meteorologist Edward Lorenz. It is notable for having chaotic solutions for certain parameter values and initial conditions. The term "butterfly effect" in popular media may stem from the real-world implications of the Lorenz attractor, namely that tiny changes in initial conditions evolve to completely different trajectories.
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/lotka/index.html Lotka-Volterra Model]
:Shows both time and phase graphs.
===NetLogo Translations===
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/antz/index.html Ants]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/antz/index.html Ants]
:NetLogo model. A colony of ants forages for food. Though each ant follows a set of simple rules, the colony as a whole acts in a sophisticated way.
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/diffuse/index.html Diffusion]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/diffuse/index.html Diffusion]
:NetLogo diffusion example. Diffusion Graphics is unlike most other NetLogo models, in that it really doesn’t ‘model’ anything. It simply explores the power behind an interesting patch primitive: ‘diffuse’.
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/dla/index.html Diffusion Limited Aggregration]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/dla/index.html Diffusion Limited Aggregration]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/exgrowth/index.html Exponential Growth]
:This model demonstrates diffusion-limited aggregation, in which randomly moving (diffusing) particles stick together (aggregate) to form beautiful treelike branching fractal structures. There are many patterns found in nature that resemble the patterns produced by this model: crystals, coral, fungi, lightning, and so on.
 
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/fng/index.html Fungal Growth]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/fng/index.html Fungal Growth]
:NetLogo model showing the spread of fungal hyphae throughout a section of earth in which moisture is spreading.
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/follower/index.html Follower]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/follower/index.html Follower]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/forest/index.html Forest]
:NetLogo model. In Follower, turtles attempt to “connect” with other turtles, forming long chains according to a small set of simple rules.
 
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/fworks/index.html Fireworks]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/fworks/index.html Fireworks]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/life/index.html Life]
:NetLogo model. This program models the action of fireworks. Rockets begin at the bottom of the view, shoot upwards into the sky and then explode, emitting showers of falling sparks. Works best at lower speed.
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/lifeagents/index.html Life Agents]
 
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/lotka/index.html Lotka-Volterra Model]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/mongoose/index.html Mongoose]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/river/index.html Meandering River]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/river/index.html Meandering River]
:Netlogo Model. This model demonstrates the meandering of a river along its “middle course”, where the gradient of the landscape is gradual and the river runs within a U-shaped river valley. The evolution of the shape of the river is governed by the path of its highest-velocity flow, as well as erosion and deposition.
:This example has documentation extracted from the Netlogo version. Click the icon on the top-right of the page.
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/rps/index.html Rock Paper Scissors]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/rps/index.html Rock Paper Scissors]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/wvmach/index.html Wave Machine]
:NetLogo Model. This model explores the role of movement and space in a three species ecosystem. The system consists of three species, represented by red patches, green patches, and blue patches, which compete over space. The interactions between the species are based on the game Rock-Paper-Scissors. That is, red beats green, green beats blue, and blue beats red. Organisms compete with their neighbors, move throughout the environment, and reproduce. These interactions result in spiral patterns whose size and stability depends on the movement rate of the organisms.
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/wolfsheep/index.html Wolf Sheep Predation];**** [
* [https://www.cs.oberlin.edu/~rms/wk/egol3/index.html Three State Extended Game of Life]
:A 3-state extended version of Conway's Game of Life (GoL). The mathematical equations behind this GoL are described in a paper that can be downloaded at [https://www.biorxiv.org/content/10.1101/2022.08.30.505937v1 mathRxiv]. Click through the 8 presets to view different starting configurations, and feel free to save your own interesting discoveries in unused presets.


*[https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/sirsdet/index.html Deterministic SIRS]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/wolfsheep/index.html Wolf Sheep Predation]
:A mass-action SIRS model described in the publication [https://doi.org/10.1101/2022.02.09.22270752 Simulation Platforms to Support Teaching and Research in Epidemiological Dynamics].
:NetLogo Model. A population of sheep that wander around the landscape. For each step the sheep take it costs them some energy and if there energy gets too low they die. However, the sheep can eat grass in the environment to regain energy and the grass regrows over time. If the energy of the sheep gets above a certain level then they can reproduce. There are also wolves that have the same behaviors as sheep except for eating; rather than grass, they eat sheep.


*[https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/sirsdtvdet/index.html Deterministic SIRS with Vaccinations]
* [https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/wvmach/index.html Wave Machine]
:A mass-action SIRS model with vaccinations described in the publication [https://doi.org/10.1101/2022.02.09.22270752 Simulation Platforms to Support Teaching and Research in Epidemiological Dynamics].
:Netlogo Model. This model simulates wave motion in a membrane. The four edges of the membrane are fixed to a frame. A green rectangular area represents a driver plate that moves up and down, exhibiting sinusoidal motion.
 
*[https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/sirsdtvsto/index.html Stochastic SIRS with Vaccinations]
:A stochastic version of the previous model. See [https://doi.org/10.1101/2022.02.09.22270752 Simulation Platforms to Support Teaching and Research in Epidemiological Dynamics]
 
*[https://94803ca8ae7275c8ec82-af69fe8046cb86ce613bfe795f3569f4.ssl.cf1.rackcdn.com/NumerusOL/WebKit/sdsir/index.html SD SIR]
:A simple mass-action SIR model demonstrating the WebKit Sensitivity analysis platform.

Latest revision as of 16:11, 13 November 2025

These models illustrate the Numerus WebKit modeling technology. To use, load the model into your browser and click Connect to initialize the model. This will enable the other 4 buttons: Disconnect, Reset, Step and Start. Use the Start/Stop button to run the program continuously. Step single-steps the program. Reset returns to the beginning. A Double-Reset reinitializes the simulation. You can also reinitialize with Disconnect/Connect, or simply reloading the web page. See the WebKit Users Guide for complete documentation.

Be aware of the side panel, which you open and close by clicking on the side panel icon, Sideicon.png, and adjust using the purple stripe. This panel contains documentation, preset control and RAM access.

NetLogo is an established platform for implementing agent-based models. Numerus WebKit uses an API analogous to that of NetLogo, keeping the "Patches" and "Turtles" nomenclature and making the translation from NetLogo the WebKit straightforward. Many of the agent-based models in this collection were derived from the NetLogo model library. All such examples include NetLogo documentation, which for now serves to describe the model but may not totally match the WebKit implementation.

Numerus Originals

A 3-state extended version of Conway's Game of Life (GoL). The mathematical equations behind this GoL are described in a paper that can be downloaded at mathRxiv. Click through the 8 presets to view different starting configurations, and feel free to save your own interesting discoveries in unused presets. This model is a focus of the WebKit Users Guide as an example that makes extensive use of the RAM and preset features.
Fully developed platform for teaching the SIRS Model. Documented extensively here.
A mass-action SIRS model with vaccinations described in the publication Simulation Platforms to Support Teaching and Research in Epidemiological Dynamics. This app was merged into the previous example to create a fully developed platform for teaching the SIRS model.
A stochastic version of the previous model. See Simulation Platforms to Support Teaching and Research in Epidemiological Dynamics
A simple mass-action SIR model demonstrating the WebKit Sensitivity analysis platform.
An app in which the user programs the model. Discussed extensively in the WebKit Users Guide.
Simple agent motion.
Animover is a model of a group of agents foraging in an area for a food resource. Animover 2 is a preliminary version. It is the most complex WebKit simulation to date, with several thousand lines of code required to implement the model logic.
Cell automata model depicting a forest fire.
Conway's Game of Life. Enough said. See the WebKit Users Guide to learn how to initialize the starting configuration.
Game of Life with agent motion. An agent passing over a live cell colors the cell with the agent's color.
The Lorenz system is a system of ordinary differential equations first studied by mathematician and meteorologist Edward Lorenz. It is notable for having chaotic solutions for certain parameter values and initial conditions. The term "butterfly effect" in popular media may stem from the real-world implications of the Lorenz attractor, namely that tiny changes in initial conditions evolve to completely different trajectories.
Shows both time and phase graphs.

NetLogo Translations

NetLogo model. A colony of ants forages for food. Though each ant follows a set of simple rules, the colony as a whole acts in a sophisticated way.
NetLogo diffusion example. Diffusion Graphics is unlike most other NetLogo models, in that it really doesn’t ‘model’ anything. It simply explores the power behind an interesting patch primitive: ‘diffuse’.
This model demonstrates diffusion-limited aggregation, in which randomly moving (diffusing) particles stick together (aggregate) to form beautiful treelike branching fractal structures. There are many patterns found in nature that resemble the patterns produced by this model: crystals, coral, fungi, lightning, and so on.
NetLogo model showing the spread of fungal hyphae throughout a section of earth in which moisture is spreading.
NetLogo model. In Follower, turtles attempt to “connect” with other turtles, forming long chains according to a small set of simple rules.
NetLogo model. This program models the action of fireworks. Rockets begin at the bottom of the view, shoot upwards into the sky and then explode, emitting showers of falling sparks. Works best at lower speed.
Netlogo Model. This model demonstrates the meandering of a river along its “middle course”, where the gradient of the landscape is gradual and the river runs within a U-shaped river valley. The evolution of the shape of the river is governed by the path of its highest-velocity flow, as well as erosion and deposition.
This example has documentation extracted from the Netlogo version. Click the icon on the top-right of the page.
NetLogo Model. This model explores the role of movement and space in a three species ecosystem. The system consists of three species, represented by red patches, green patches, and blue patches, which compete over space. The interactions between the species are based on the game Rock-Paper-Scissors. That is, red beats green, green beats blue, and blue beats red. Organisms compete with their neighbors, move throughout the environment, and reproduce. These interactions result in spiral patterns whose size and stability depends on the movement rate of the organisms.
NetLogo Model. A population of sheep that wander around the landscape. For each step the sheep take it costs them some energy and if there energy gets too low they die. However, the sheep can eat grass in the environment to regain energy and the grass regrows over time. If the energy of the sheep gets above a certain level then they can reproduce. There are also wolves that have the same behaviors as sheep except for eating; rather than grass, they eat sheep.
Netlogo Model. This model simulates wave motion in a membrane. The four edges of the membrane are fixed to a frame. A green rectangular area represents a driver plate that moves up and down, exhibiting sinusoidal motion.