PowerSystem
PowerSystem#
- class relsad.network.systems.PowerSystem(controller)[source]#
Class defining a power system type
…
- name#
Name of the power system
- Type
str
- p_energy_shed#
The active power energy.shed in the power system
- Type
float
- acc_p_energy_shed#
The accumulated active power energy.shedding in the power system
- Type
float
- q_energy_shed#
The reactive power energy.shed in the power system
- Type
float
- acc_q_energy_shed#
The accumulated reactive power energy.shedding in the power system
- Type
float
- sub_systems#
List of all sub systems in the power system
- Type
list
- buses#
List of all buses in the power system
- Type
list
- ev_parks#
List of all EV parks in the power system
- Type
list
- batteries#
List of all batteries in the power system
- Type
list
- production#
List of all generation units in the power system
- Type
list
- ict_nodes#
List of all ICT nodes in the power system
- Type
list
- lines#
List of all lines in the power system
- Type
list
- sensors#
List of all sensors in the power system
- Type
list
- circuitbreaker#
List of all circuit breakers in the power system
- Type
list
- disconnectors#
List of all disconnectors in the power system
- Type
list
- intelligent_switch#
List of all intelligent switches in the power system
- Type
list
- ict_lines#
List of all ICT lines in the power system
- Type
list
- controller#
The controller for the power system, either MainController or ManualMainController
- Type
- comp_list#
List containing the components in the power system
- Type
list
- comp_dict#
Dictionary containing the components in the power system
- Type
dict
- child_network_list#
List containing all the networks in the power system
- Type
list
- history#
Dictionary containing the history variables of the power system
- Type
dict
- monte_carlo_history#
Dictionary containing the history variables from the monte carlo simulation
- Type
dict
- add_bus(bus)[source]#
Adding a bus including elements on the bus (battery, generation unit, EV park) to the power system
- add_line(line)[source]#
Adding a line including elements on the line (sensor, circuit breaker, disconnector) to the power system
- update_ev_parks(fail_duration, dt, start_time, curr_time)[source]#
Updates the EV parks in the power system
- update_fail_status(dt)[source]#
Updates the failure status for each component that can fail in the power system
- prepare_prod_data(time_indices)[source]#
Prepares the production data for the production components in the power system
- set_load_and_cost(inc_idx)[source]#
Sets the bus load and cost in MW based on load and cost profiles in the current increment for the power system
- set_prod(inc_idx)[source]#
Sets the generation (generation units, batteries, EV parks) at the buses in the power system
- failes_comp()#
Returns True if the power system contains a failed compoent, False otherwise
- full_batteries()[source]#
Returns True if the batteries in the power system are full, and False otherwise
- get_monte_carlo_history(attribute)[source]#
Returns the specified history variable from the Monte Carlo simulation
- initialize_sequence_history()[source]#
Initializes the dictionaries used for sequence history variables
- initialize_monte_carlo_history()[source]#
Initializes the lists used for history variable from the Monte Carlo simulation
- update_monte_carlo_history()[source]#
Updates the history dictionary from the Monte Carlo simulation
- update_monte_carlo_child_network_history()[source]#
Updates the history dictionary for the child networks in the Monte Carlo simulation
- update_monte_carlo_comp_history()[source]#
Updates the component values for the system from the Monte Carlo simulation
- verify_component_setup()[source]#
Verifies the component setup in the power system
PowerSystem.add_bus(bus)Adding a bus including elements on the bus (battery, generation unit, EV park) to the power system
PowerSystem.add_buses(buses)Adding buses to the power system
PowerSystem.add_child_network(network)Adding child network to the power system
PowerSystem.add_ict_line(ict_line)Adding an ICT line to the power system
PowerSystem.add_ict_node(ict_node)Adding an ICT node to the power system
PowerSystem.add_line(line)Adding a line including elements on the line (sensor, circuit breaker, disconnector) to the power system
PowerSystem.add_lines(lines)Adding lines to the power system
PowerSystem.create_sections()Creates sections in the power system
PowerSystem.failed_comp()Returns True if the power system contains a failed component, False otherwise
PowerSystem.full_batteries()Returns True if the batteries in the power system are full, and False otherwise
PowerSystem.get_comp(name)Returns component based on given name
PowerSystem.get_comp_list()Returns list of the components in the power system
PowerSystem.get_history(attribute)Returns the specified history variable
PowerSystem.get_lines()Returns the lines in the power system
PowerSystem.get_monte_carlo_history(attribute)Returns the specified history variable
PowerSystem.get_system_load()Returns the system load at the current time in MW and MVar
PowerSystem.get_system_load_balance()Returns the load balance of the system in MW and MVar
PowerSystem.initialize_monte_carlo_history()Initializes the lists used for history variables from the Monte Carlo simulation
PowerSystem.initialize_sequence_history()Initializes the dictionaries used for sequence history variables
PowerSystem.prepare_load_data(time_indices)Prepares the load data for the buses in the power system
PowerSystem.prepare_prod_data(time_indices)Prepares the production data for the production components in the power system
PowerSystem.print_status()Prints the status of the buses and lines in the power system
PowerSystem.reset_energy_shed_variables()Resets the energy.shed variables
PowerSystem.reset_load_flow_data()Reset the variables used in the load flow analysis
PowerSystem.reset_slack_bus()Resets the slack bus of the child networks
PowerSystem.set_load_and_cost(inc_idx)Sets the bus load and cost in MW based on load and cost profiles in the current increment for the power system
PowerSystem.set_prod(inc_idx)Sets the generation (generation units, batteries, EV parks) at the buses in the power system
PowerSystem.update_batteries(fail_duration, dt)Updates the batteries in the power system
PowerSystem.update_ev_parks(fail_duration, ...)Updates the EV parks in the power system
PowerSystem.update_fail_status(dt)Updates the failure status for each component that can fail in the power system
PowerSystem.update_monte_carlo_child_network_history(it, ...)Updates the history dictionary for the child networks in the Monte Carlo simulation
PowerSystem.update_monte_carlo_comp_history(it, ...)Updates the component values for the system from the Monte Carlo simulation
PowerSystem.update_monte_carlo_history(it, ...)Updates the history dictionary from the Monte Carlo simulation
PowerSystem.update_sequence_history(...)Updates the sequence history variables of the power system
PowerSystem.verify_component_setup()Verifies the component setup in the power system
PowerSystem.busesPowerSystem.colorPowerSystem.counterPowerSystem.linesPowerSystem.sectionsPowerSystem.shed_configs