Emergent is a swarm chemistry simulation for the iPad. Using a simple set of kinetic rules, Emergents particles react and self organise into patterns reminscent of bacteria or amoeba.
Swarm chemistry was developed by Hiroki Sayama at Binghamton University.
Emergent allows swarm chemistry recipes to be saved and reloaded and the built in email support allows users to share recipes with other Emergent users.
My version is written in Apples Swift language and uses the Metal framework to calculate the particles on the GPU. Metal offers phenomenal performance and allows me to create a particle system containing 4,096 particles - each interacting with every other. Thats 16,777,216 particle interactions per frame and on my iPad Air 2, Emergent runs over 30 frames per second.
Please note that although Emergent will run on older A7 based iPads, its been optimised for the A8 processor and for best results should be run on an iPad Air 2.
Emergent is an open source project and the code is available at my GitHub repository: https://github.com/FlexMonkey/MetalParticles/tree/Swarm-Chemistry