Skip to main content

pio_balanced_network_islands

Function pio_balanced_network_islands 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pio_balanced_network_islands( network: *const PioBalancedNetwork, error: *mut *mut PioError, ) -> *mut PioIslands
Expand description

Partition a balanced network into AC islands, as the Rust BalancedNetwork::calc_islands does. Two buses share an island when a path of in service branches, closed switches, and in service three winding transformer windings joins them; HVDC lines do not join islands. Buses typed isolated belong to no island and are listed by pio_islands_isolated_bus_ids. Islands come largest first, ties in ascending order of their smallest bus id; buses within an island in ascending id order. Release with pio_islands_release.

ยงSafety

Pointers and handles must satisfy the crate-level safety requirements.