midas.core.powergrid.model package¶
Submodules¶
midas.core.powergrid.model.static module¶
This module contains a wrapper for pandapower grids.
-
class
midas.core.powergrid.model.static.PandapowerGrid¶ Bases:
objectA model for pandapower grids.
-
_get_buses()¶ Create entities for buses.
-
_get_lines()¶ Create entities for lines.
-
_get_loads()¶ Create entities for loads.
-
_get_sgens()¶ Create entities for sgens.
-
_get_slack()¶ Create an entity for the slack bus.
-
_get_switches()¶ Create entities for switches.
-
_get_trafos()¶ Create entities for trafos.
-
_load_case(gridfile)¶ Load the pandapower grid specified by the gridfile.
gridfile can be either the name of a grid or a path to a json file containing the grid.
- Parameters
gridfile (str) – Specifies the grid to load
-
_load_entity_map()¶ Load the entity map for the mosaik simulator.
-
_load_grid_ids()¶ Create a dictionary containing the names of the components.
Use generic names and map to actual names?
-
get_outputs()¶ Gather all outputs for other simulators.
-
run_powerflow()¶ Run the powerflow calculation.
-
set_inputs(etype, idx, data)¶ Set input from other simulators.
-
setup(gridfile, grid_idx)¶ Set up the grid model.
-