midas.core.powergrid package¶
Subpackages¶
Submodules¶
midas.core.powergrid.meta module¶
This module contains the mosaik meta definition for the pandapower simulator.
midas.core.powergrid.simulator module¶
This module implements the mosaik simulator API for the pandapower model.
-
class
midas.core.powergrid.simulator.
PandapowerSimulator
¶ Bases:
mosaik_api.Simulator
The pandapower simulator.
-
create
(num, model, **model_params)¶ Initialize the simulation model instance (entity)
- Returns
A list with information on the created entity.
- Return type
list
-
get_data
(outputs)¶ Return the requested outputs (if feasible).
- Parameters
outputs (dict) – A dict containing requested outputs of each entity.
- Returns
A dict containing the values of the requested outputs.
- Return type
dict
-
init
(sid, **sim_params)¶ Called exactly ones after the simulator has been started.
- Parameters
sid (str) – Simulator ID for this simulator.
step_size (int, optional) – Step size for this simulator. Defaults to 900.
- Returns
The meta dict (set by mosaik_api.Simulator)
- Return type
dict
-
step
(time, inputs)¶ Perform a simulation step.
- Parameters
time (int) – The current simulation step (by convention in seconds since simulation start.
inputs (dict) – A dict containing inputs for entities of this simulator.
- Returns
The next step this simulator wants to be stepped.
- Return type
int
-