ManualMainController#

class relsad.network.components.ManualMainController(name: str, sectioning_time: relsad.Time.Time)[source]#

Common class for manual main controller

name#

Name of the manual main controller

Type

string

sectioning_time#

The average sectioning time of the system

Type

Time

power_system#

The associated power system

Type

PowerSystem

distribution_controllers#

List of controllers from the distribution systems in the power system

Type

list

microgrid_controllers#

List of controllers from the microgrids in the power system

Type

list

add_distribution_controller(controller)[source]#

Adds distribution controllers from connected distribution systems to a list and sets the manual sectioning time for the controller

add_microgrid_controller(controller)[source]#

Adds microgird controllers from connected microgrids to a list and sets the manual sectioning time for the controller

run_control_loop(curr_time, dt)[source]#

Runs the manual control loop for the distribution system controllers and the microgird controllers

update_fail_status(dt)[source]#

Updates the failure status

update_history(prev_time, curr_time, save_flag)[source]#

Updates the history variables

get_history(attribute)[source]#

Returns the history variables of an attribute

add_random_instance(random_gen)[source]#

Adds global random seed

print_status()[source]#

Prints the status

reset_status(save_flag)[source]#

Resets and sets the status of the class parameters

initialize_history()[source]#

Initializes the history variables

ManualMainController.add_distribution_controller(...)

Adds distribution controllers from connected distribution systems to a list and sets the manual sectioning time for the controller

ManualMainController.add_microgrid_controller(...)

Adds microgird controllers from connected microgrids to a list and sets the manual sectioning time for the controller

ManualMainController.add_random_instance(...)

Adds global random seed

ManualMainController.get_history(attribute)

Returns the history variables of an attribute

ManualMainController.initialize_history()

Initializes the history variables

ManualMainController.print_status()

Prints the status

ManualMainController.reset_status(save_flag)

Resets and sets the status of the class parameters

ManualMainController.run_control_loop(...)

Runs the manual control loop for the distribution system controllers and the microgird controllers

ManualMainController.update_fail_status(dt)

Updates the failure status

ManualMainController.update_history(...)

Updates the history variables