Microgrid#

class relsad.network.systems.Microgrid(distribution_network: relsad.network.systems.Distribution.Distribution, connected_line: relsad.network.components.Line.Line, mode: relsad.network.components.MicrogridController.MicrogridMode = MicrogridMode.SURVIVAL)[source]#

Class defining a microgrid network type

name#

Name of the microgrid

Type

str

mode#

Which mode the microgrid follows

Type

str

buses#

List with the buses in the microgrid

Type

list

ev_parks#

List containing the EV parks in the microgrid

Type

list

batteries#

List containing the batteries in the microgrid

Type

list

productions#

List containing the generation units in the microgrid

Type

list

lines#

List with the lines in the microgrid

Type

list

sensors#

List containing the sensors in the microgrid

Type

list

circuitbreaker#

List containing the circuit breakers in the microgrid

Type

list

disconnectors#

List containing the disconnectors in the microgrid

Type

list

intelligent_switches#

List containing the intelligent switches in the microgrid

Type

list

controller#

The controller for the microgrid

Type

MicrogridController

comp_list#

List containing the components in the microgrid

Type

list

comp_dict#

Dictionary containing the components in the microgrid

Type

dict

distribution_network#

The distribution network the microgrid is connected to

Type

PowerNetwork

failed_line#

Boolean value stating whether or not the network includes a failed line

Type

Bool

connected_line#

Line that connects the microgrid to the distribution network

Type

Line

circuitbreaker#

The circuitbreaker connected to the line

Type

CircuitBreaker

p_energy_shed#

Shedded active power in the microgrid

Type

float

acc_p_energy_shed#

The accumulated shedded active power in the microgrid

Type

float

q_energy_shed#

Shedded reactive power in the microgrid

Type

float

acc_q_energy_shed#

The accumulated shedded reactive power in the microgrid

Type

float

sections#

The sections in the microgrid

Type

Section

history#

Dictionary containing the history variables of the network

Type

dict

monte_carlo_history#

Dictionary containing the history variables from the monte carlo simulation

Type

dict

add_connected_line(connected_line, mode)[source]#

Sets the line connecting the microgrid to overlying network

add_bus(bus)[source]#

Adding a bus including elements on the bus (battery, generation unit, EV park) to the microgrid

add_buses(buses)[source]#

Adding buses to the microgrid

add_line(line)[source]#

Adding a line including elements on the line (sensor, circuit breaker, disconnector) to the microgrid

add_lines(lines)[source]#

Adding lines to the microgrid

get_lines()[source]#

Returns the lines in the microgrid

connect(self)[source]#

Connects the microgrid to the parent distribution network by closing the disconnectors on the microgrid lines

disconnect()[source]#

Disconnects the microgrid from the parent distribution network by opening the disconnectors on the microgrid lines

reset_slack_bus()[source]#

Resets the slack bus attribute of the buses in the microgrid

get_max_load()[source]#

Get the maximum load of the microgrid form the entire load history and returns the max load

get_monte_carlo_history(attribute)[source]#

Returns the specified history variable from the Monte Carlo simulation

get_history(attribute)[source]#

Returns the specified history variable

get_system_load()[source]#

Returns the system load in the microgrid at the current time in MW and MVar

reset_energy_shed_variables()[source]#

Resets the energy.shed variables

Microgrid.add_bus(bus)

Adding a bus including elements on the bus (battery, generation unit, EV park) to the microgrid

Microgrid.add_buses(buses)

Adding buses to the microgrid

Microgrid.add_connected_line(connected_line, ...)

Sets the line connecting the microgrid to overlying network

Microgrid.add_line(line)

Adding a line and the components connected to the line to the microgrid

Microgrid.add_lines(lines)

Adding lines to the microgrid

Microgrid.connect()

Connects the microgrid to the parent distribution network by closing the disconnectors on the microgrid lines

Microgrid.disconnect()

Disconnects the microgrid from the parent distribution network by opening the disconnectors on the microgrid lines

Microgrid.get_history(attribute)

Returns the specified history variable

Microgrid.get_lines()

Returns the lines in the microgrid

Microgrid.get_max_load()

Get the maximum load of the microgrid for the entire load history and returns the max load

Microgrid.get_monte_carlo_history(attribute)

Returns the specified history variable from the Monte Carlo simulation

Microgrid.get_system_load()

Returns the system load in the microgrid at the current time in MW and MVar

Microgrid.reset_energy_shed_variables()

Resets the energy.shed variables

Microgrid.reset_slack_bus()

Resets the slack bus attribute of the buses in the microgrid

Microgrid.buses

Microgrid.color

Microgrid.counter

Microgrid.lines

Microgrid.sections