Skip to content

eckara/glm-plotter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

An interactive visualization app for power system networks described in Gridlab-D Model files. Back-end uses Flask and front-end uses D3's force layout.

Example

Here is a screen shot from a visualisation of the IEEE 123-node test feeder. The corresponding .glm file is in the example folder. Alt text

Usage - see install.txt for command-line commands

  • Install python packages (version 3.5 was used for development) - see install.txt.
  • From the command line, change directory to the directory glm-plotter located in this repository. cd path-to-repo/glm-plotter
  • If the python packages were installed in a virtual environment, activate the virtual environment
  • Run the glm-plotter.py file. python glm-plotter.py
  • Open a browser and go to http://localhost:5000.

Description

This app parses a .glm (GridLab-D Model) file and displays the corresponding network. The visualization uses the D3 force layout algorithm by Mike Bostock. Hovering over a node or link will display its class. The nodes can be dragged to locations. Once they have been dragged, they are fixed. They can be released again with a double-click.

Available options

  • Export the position of the nodes (in the html svg component) to a csv.
  • Export the position of the fixed nodes to a csv.
  • Remove a prefix in the names (in some glm files there will be a common prefix that makes visualization cumbersome).
  • Load a csv file (typically one you have exported as above) with positions for the nodes. Those nodes will now be fixed to the required positions.

About

Interactive visualization app for Gridlab-D Model files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 48.4%
  • JavaScript 31.2%
  • HTML 10.4%
  • CSS 10.0%