Disconnector
Disconnector#
- class relsad.network.components.Disconnector(name: str, line: relsad.network.components.Line.Line, bus: relsad.network.components.Bus.Bus, is_open: bool = False, fail_rate: float = 0.014, outage_time: relsad.Time.Time = HOUR_1)[source]#
Common base class for disconnectors
…
- name#
Name of the disconnector
- Type
string
- coordinate#
The coordinate of the disconnector
- Type
list
- initial_state#
The initial state of the disconnector (open or colsed)
- Type
bool
- is_open#
Tells if the switch is open (True) or closed (False)
- Type
bool
- failed#
True if the disconnector is in a failed state, False if not
- Type
bool
- fail_rate#
The failure rate of the disconnector [no. of fails per year]
- Type
float
- intelligent_switch#
Returns the intelligent switch connected to the disconnector if any
- Type
- history#
Dictonary attribute that stores the historic variables
- Type
dict
- reset_status(save_falg)[source]#
Resets and sets the status of the system parameters
Disconnector.add_random_instance(random_gen)Adds global random seed
Disconnector.close()Closes the disconnector
Disconnector.fail()Sets the disconnector to failed and opens the disconnector
Disconnector.get_history(attribute)Returns the history variables of an attribute
Disconnector.initialize_history()Initializes the history variables
Disconnector.not_fail()Sets the disconnector to not failed and closes the disconnector
Disconnector.open()Opens the disconnector
Disconnector.print_status()- rtype
None
Disconnector.reset_status(save_flag)Resets and sets the status of the class parameters
Disconnector.update_fail_status(dt)- param dt
The current time step
Disconnector.update_history(prev_time, ...)Updates the history variables
Disconnector.colorDisconnector.edgecolorDisconnector.handleDisconnector.lineDisconnector.markerDisconnector.ps_randomDisconnector.size