Welcome! Antwork is a brownian agent simulation tool that was developed in the context of a Semester Project during my Masters.
├── build
├── public
├── src
│..├── Documentation # Contains text and images that are rendered on the about page.
│..└── Simulation
│....├─── context # Provides the context for the interface
│....└─── logic # Contains the logic of the simulation
└── ...
The scripts used to run the simulation engine are located in src/Simulation/logic
.
const nodes = new Nodes().default();
const envir = new Environment({
alpha: 1,
k: 0.03,
beta: 0.2,
epsilon: 0.5,
s0: 10000,
framerate: 1,
layout: {},
nodes,
});
const walkers = new WalkingSquad(500, envir, "rand", "rand", 0);
const database = new Database("Walker Metrics");
const analysis = new Analysis(envir, walkers, nodes, database);
const engine = new Engine(envir, walkers, "euler", database, analysis);
engine.running = true;
for (var i = 0; i < 100; i++) {
engine.next(); // Advances the simulation by a single step
analysis.run(); // Computes metrics on the existing fields
}
- Check if nodejs is installed.
node -v
If not you can install from here.
- Install yarn package manager
npm install --global yarn
To run the dashboard with the interactive visualization
yarn install
yarn start
Jordi Campos: MSc Physics at the ETH Zurich.
MIT LICENSE