Skip to content

c-jordi/Antwork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Antwork:

Welcome! Antwork is a brownian agent simulation tool that was developed in the context of a Semester Project during my Masters.

Preview

Antwork Preview

Folder Structure

├── 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
└── ...

Simulation engine starting template

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
}

Running the interactive dashboard

Installation

  1. Check if nodejs is installed.
node -v

If not you can install from here.

  1. Install yarn package manager
npm install --global yarn

Getting started

To run the dashboard with the interactive visualization

yarn install
yarn start

Author

Jordi Campos: MSc Physics at the ETH Zurich.

License

MIT LICENSE

About

Antwork is brownian agent simulation tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published