GridCal.Engine.Simulations.Topology package¶
Submodules¶
GridCal.Engine.Simulations.Topology.topology_driver module¶
-
class
GridCal.Engine.Simulations.Topology.topology_driver.
TopologyReduction
(grid: GridCal.Engine.Core.multi_circuit.MultiCircuit, branch_indices)¶ Bases:
PySide2.QtCore.QThread
-
cancel
()¶ Cancel the simulation :return:
-
done_signal
= <PySide2.QtCore.Signal object>¶
-
progress_signal
= <PySide2.QtCore.Signal object>¶
-
progress_text
= <PySide2.QtCore.Signal object>¶
-
run
()¶ Run the monte carlo simulation @return:
-
staticMetaObject
= <PySide2.QtCore.QMetaObject object>¶
-
-
class
GridCal.Engine.Simulations.Topology.topology_driver.
TopologyReductionOptions
(rx_criteria=False, rx_threshold=1e-05, selected_types=<BranchType.Branch: ('branch', )>)¶ Bases:
object
-
GridCal.Engine.Simulations.Topology.topology_driver.
get_branches_of_bus
(B, j)¶ Get the indices of the branches connected to the bus j :param B: Branch-bus CSC matrix :param j: bus index :return: list of branches in the bus
-
GridCal.Engine.Simulations.Topology.topology_driver.
reduce_buses
(circuit: GridCal.Engine.Core.multi_circuit.MultiCircuit, buses_to_reduce: List[GridCal.Engine.Devices.bus.Bus])¶ Reduce the uses in the grid This function removes the buses but whenever a bus is removed, the devices connected to it are inherited by the bus of higher voltage that is connected. If the bus is isolated, those devices are lost. :param circuit: MultiCircuit instance :param buses_to_reduce: list of Bus objects :return: Nothing
-
GridCal.Engine.Simulations.Topology.topology_driver.
reduce_grid_brute
(circuit: GridCal.Engine.Core.multi_circuit.MultiCircuit, removed_br_idx)¶ Remove the first branch found to be removed. this function is meant to be called until it returns false Args:
circuit: Circuit to modify in-place removed_br_idx: branch indexReturns: Nothing
-
GridCal.Engine.Simulations.Topology.topology_driver.
select_branches_to_reduce
(circuit: GridCal.Engine.Core.multi_circuit.MultiCircuit, rx_criteria=True, rx_threshold=1e-05, selected_types=<BranchType.Branch: ('branch', )>)¶ Find branches to remove Args:
circuit: Circuit to modify in-place rx_criteria: use the r+x threshold to select branches? rx_threshold: r+x threshold selected_types: branch types to select