Commit 7546f518 authored by Stefan Scherfke's avatar Stefan Scherfke
Browse files

Added config file for the web visualization.

parent bd2a3ef5
{
"merge_types": ["Branch", "Transformer"],
"etypes": {
"House": {
"cls": "load",
"attr": "P_out",
"unit": "P [W]",
"min": 0,
"max": 3000
},
"PV": {
"cls": "gen",
"attr": "P",
"unit": "P [W]",
"min": -10000,
"max": 0
},
"PQBus": {
"cls": "pqbus",
"attr": "Vm",
"unit": "U [V]",
"min": 220,
"max": 240
},
"RefBus": {
"cls": "refbus",
"attr": "P",
"unit": "P [W]",
"min": 0,
"max": 30000
}
}
}
......@@ -24,6 +24,7 @@ PV_DATA = 'data/pv_10kw.csv'
PROFILE_FILE = 'data/profiles.data.gz'
GRID_NAME = 'demo_lv_grid'
GRID_FILE = 'data/%s.json' % GRID_NAME
WEBVIS_CONF = 'data/webvis_conf.json'
def main():
......@@ -37,7 +38,7 @@ def create_scenario(world):
pypower = world.start('PyPower', step_size=15*60)
hhsim = world.start('HouseholdSim')
pvsim = world.start('CSV', sim_start=START, datafile=PV_DATA)
webvis = world.start('WebVis', step_size=15*60)
webvis = world.start('WebVis', step_size=15*60, config_file=WEBVIS_CONF)
# Instantiate models
grid = pypower.Grid(gridfile=GRID_FILE)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment