Giter VIP home page Giter VIP logo

gridappsd / gridappsd-viz Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 5.0 6.23 MB

GridAPPS-D’s visualization application displays the topology of selected distribution model with highlighted capacitors and regulators. It also include tables with current values for capacitor status (OPEN or CLOSED), regulator voltage, and feeder power. For current release cycle we are using IEEE 8500-Node system model.

Home Page: http://gridappsd.readthedocs.io/

HTML 0.02% JavaScript 0.93% TypeScript 82.80% Shell 0.46% Dockerfile 0.05% SCSS 15.75%
javascript react gridappsd grid example goss

gridappsd-viz's Introduction

Make sure that NodeJS is installed (https://nodejs.org/en/)

For development

Bootstrapping the client

  • cd client
  • npm install
  • npm start (Or npm start disable-css-hmr to disable CSS hot reload, theme toggle only works with this option disabled)
  • Go to http://localhost:3000

Bootstrapping the server

  • cd server
  • npm install
  • npm run nodemon to start an HTTP server with hot-loading and TypeScript server in watch mode

For deployment

Building the front-end code

  • cd client
  • npm install
  • npm run build

Building the server code

  • cd server
  • npm install
  • npm run build
  • npm start

Running the platform

Application Code Architecture

The application is organized using a feature module based approach with smart/dumb component architecture. Each new feature will result in a new directory being created, directly under the feature module's directory, a component should be created, this component will become the only smart component of this feature. Inside the feature module directory, appropriate child directories should be added, and they are:

  • services Contains all the Angular services that the module uses
  • models Contains all of the required data structures and/or type declarations that describe the data models used within the module only
  • views Contains components that handle rendering only, components inside views directory should not perform any network calls, these tasks should be delegated to the root component (The only smart component of the module) of the module, through the use of callback props.

Smart components are only responsible for data modeling and network calls, and this smart component will use the child components declared inside views directory to render all the necessary data that it handles, this creates a single of truth which makes it extremely easy to debug if the rendered data doesn't match expectations.

gridappsd-viz's People

Contributors

aandersn avatar babybeet avatar bibiraju avatar craig8 avatar poorva1209 avatar shpoudel avatar shuhaobai avatar tdtalbot avatar tonya1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gridappsd-viz's Issues

Update Viz to include field mode display

This tasks include a series of sub-task.

Notes:

  • Should simulation and real field be simultaneously available?
    No, Viz should have only one option. Select the mode at login screen.

Tasks that are needed later :

  • Add a menu to start/stop apps and services in field mode
  • Show Field Hierarchy: drop down to select to feeder -> Switch areas -> Secondary areas
    equipment from topology -> take the mrid from model dict -> get the location from symbols
  • Add a menu to add test configuration in field mode

In ieee8500 node system, only the uncontrollable capacitors are displayed

Problem

The IEEE 8500 node system has 4 capacitor banks, but only one bank is displayed.

Probable cause

The capacitors that are displayed are cap_capbank3. This is the only capacitor bank that cannot be remotely controlled. In the GridLAB-D model, it's defined as only one object:

object capacitor {
  name "cap_capbank3";
  parent "r18242";
  phases ABCN;
  phases_connected ABCN;
  cap_nominal_voltage 7200.20;
  capacitor_A 300000.00;
  switchA CLOSED;
  capacitor_B 300000.00;
  switchB CLOSED;
  capacitor_C 300000.00;
  switchC CLOSED;
}

The controllable capacitors have an object definition for every phase, like so (x3):

object capacitor {
  name "cap_capbank2c";
  parent "r20185";
  phases CN;
  phases_connected CN;
  cap_nominal_voltage 7200.00;
  capacitor_C 300000.00;
  switchC CLOSED;
  control MANUAL; // VAR;
  VAr_set_low -225000.00;
  VAr_set_high 150000.00;
	remote_sense "line_cap_1c";
  pt_phase C;
	control_level BANK;
  dwell_time 102.00;
}

@poorva1209 @bibiraju

GLD limits no model_id in creating field view

Getting the below error while trying to launch field mode viz:

2023-07-22 00:18:28,973 Thread-46 INFO [gov.pnnl.goss.gridappsd.log.LogManagerImpl] - 1689985108934|gov.pnnl.goss.gridappsd.configuration.CIMSymbolsConfigurationHandler|207762244|RUNNING|system|INFO
Generating Symbols GridLAB-D configuration file using parameters: {gridlabd.interface=h
Exception in thread "Thread-56" java.lang.NullPointerException
at pnnl.goss.core.client.GossClient$1.run(GossClient.java:381)
at java.lang.Thread.run(Thread.java:750)
2023-07-22 00:18:30,282 Thread-46 INFO [gov.pnnl.goss.gridappsd.log.LogManagerImpl] - 1689985110279|gov.pnnl.goss.gridappsd.configuration.CIMSymbolsConfigurationHandler|207762244|RUNNING|system|INFO
Finished generating Symbols GridLAB-D configuration file.

2023-07-22 00:18:30,323 Thread-46 INFO [gov.pnnl.goss.gridappsd.log.LogManagerImpl] - 1689985110284|gov.pnnl.goss.gridappsd.process.ProcessEvent|1162299782|RUNNING|system|INFO
New process id generated with new process type

2023-07-22 00:18:30,426 Thread-46 INFO [gov.pnnl.goss.gridappsd.log.LogManagerImpl] - 1689985110424|gov.pnnl.goss.gridappsd.process.ProcessEvent|338468325|RUNNING|system|INFO
New process id generated with new process type

2023-07-22 00:18:30,467 Thread-46 INFO [gov.pnnl.goss.gridappsd.log.LogManagerImpl] - 1689985110425|gov.pnnl.goss.gridappsd.configuration.GLDLimitsConfigurationHandler|338468325|RUNNING|system|INFO
Generating limits file using parameters: {gridlabd.interface=helics}

2023-07-22 00:18:30,470 Thread-46 ERROR [gov.pnnl.goss.gridappsd.log.LogManagerImpl] - 1689985110426|gov.pnnl.goss.gridappsd.configuration.GLDLimitsConfigurationHandler|338468325|ERROR|system|ERROR
No model_id parameter provided

2023-07-22 00:18:30,473 Thread-46 ERROR [gov.pnnl.goss.gridappsd.log.LogManagerImpl] - 1689985110427|gov.pnnl.goss.gridappsd.process.ProcessEvent|338468325|ERROR|system|ERROR
java.lang.Exception: Missing parameter model_id
at gov.pnnl.goss.gridappsd.configuration.GLDLimitsConfigurationHandler.generateConfig(GLDLimitsConfigurationHandler.java:143)
at gov.pnnl.goss.gridappsd.configuration.ConfigurationManagerImpl.generateConfiguration(ConfigurationManagerImpl.java:166)
at gov.pnnl.goss.gridappsd.process.ProcessEvent.onMessage(ProcessEvent.java:311)
at pnnl.goss.core.client.GossClient$1.run(GossClient.java:398)
at java.lang.Thread.run(Thread.java:750)

Alarm UI Update

The fields in the the alarm tab should be modified to show timestamp as opposed to MRID.

npm run webpack

npm ERR! missing script: webpack

package.json do not contain script
"webpack": anything

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.