tkv

module
v0.0.0-...-cd9892f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2021 License: MIT

README

10 0000

Go Report Card Godoc

This code is the implementation of the "10 000" concept (see https://10ktblog.wordpress.com/a-propos/ for a description of the concept).

You can check the end product at https://tenktorg.appspot.com/. Zoom in the top area (france). Click, get your territory and check the twin territory in Haïti.

This reopository programs related

  • the "extractor" program that turns an open source density file from a country into a country body file at initial configuration
  • the "simulation" programm that simulates the spreading of bodies (it takes a country body file and output a new one with updated positions)
  • the "runtime" 10 000 web server for the end user who need to find his territory in france among the 10 000 territories and the sister territory in Haiti. This program take a 2 country body files (one at init and one at the end of the simulation)

The 10000 runtime server

Running the web server with go command tool

Have go (golang.org) (>= v1.16) installed

go run runtime_server/runtime_server.go

a vscode configuration is available to run and debug the server.

Running the web client

launch your browser at http://localhost:8002/10000.html

On the top panel, zoom to your place of interest (it is currently limited to france). Left click. You terrritory appears as well as the matching territory in Haiti.

The extractor program

You can run with default parameters

cd grump-reader
go run grump-reader.go -tkvdata="C:\Users\peugeot\tkv-data"

to see the execution flags

cd grump-reader
go run grump-reader.go -help

depending on the input country the program exectutes in less that a minute

The simulation server

cd sim_server
go run sim_server.go -sourceCountry=hti -sourceCountryNbBodies=82990

you can monitor sim_server progress running by opening the file tkv-client/tkv-monitor.html in your favorite browser

The "movie" program

This program generates a movie from the simulation steps

cd sim-movie
go run sim-movie.go <some flags to be completed>

Directories

Path Synopsis
Package barnes-hut is a modified barnes-hut simulation algorithm witg concurrent computation.
Package barnes-hut is a modified barnes-hut simulation algorithm witg concurrent computation.
Package countryspecs country codes and lat/long coordinates of enclosing square as well as total population (from GRUMP).
Package countryspecs country codes and lat/long coordinates of enclosing square as well as total population (from GRUMP).
Package main of gao_tkv contains code for the runtime server that is deployed on the google application engine (gae) as well as the html / javascript / css files of the web site.
Package main of gao_tkv contains code for the runtime server that is deployed on the google application engine (gae) as well as the html / javascript / css files of the web site.
Package grump contains function to process data of a GRUMP file describing the country density into a body file that can be fed into the simulator.
Package grump contains function to process data of a GRUMP file describing the country density into a body file that can be fed into the simulator.
Package grumpreader is the main package for the "extractor program" that parses a country file in the GRUMP format and generates a config file of bodies For each cell of the country specifc file, this program generate bodies per cells according to the population count in the cell The arrangement of circle in each cell is taken from a outsite source (csq something) up to 200 circles
Package grumpreader is the main package for the "extractor program" that parses a country file in the GRUMP format and generates a config file of bodies For each cell of the country specifc file, this program generate bodies per cells according to the population count in the cell The arrangement of circle in each cell is taken from a outsite source (csq something) up to 200 circles
Package handler contains all the function that are handled by the 10000 runtime server
Package handler contains all the function that are handled by the 10000 runtime server
PAckage shape provide function for processing a shape file from landscan into a body file for the sim server
PAckage shape provide function for processing a shape file from landscan into a body file for the sim server
Package quadtree is a compact implementation of a static 2D quadtree.
Package quadtree is a compact implementation of a static 2D quadtree.
Package main contains code for running the 10000 web server as a standalone server (no need for the cloud)
Package main contains code for running the 10000 web server as a standalone server (no need for the cloud)
Package server containts definition of the loggers for all tkv servers
Package server containts definition of the loggers for all tkv servers
Contains the main package for the sim-movie programm.
Contains the main package for the sim-movie programm.
Contains the main package for the simulation server.
Contains the main package for the simulation server.
Package monitor contains the html / javascript / css files that are uploaded by the simulation server for monitoring purposes
Package monitor contains the html / javascript / css files that are uploaded by the simulation server for monitoring purposes
Code for a web site that generates Scalable Vector Graphics (SVG).
Code for a web site that generates Scalable Vector Graphics (SVG).
Package translation provides functions for managing a translation between two countries.
Package translation provides functions for managing a translation between two countries.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL