Skip to main content

gridfm_record_batches

Function gridfm_record_batches 

Source
pub fn gridfm_record_batches(
    net: &Network,
    scenario: i64,
    opts: &GridfmOptions,
) -> Result<GridfmTables>
Expand description

Build the four gridfm tables for one network, stamping scenario into the id columns. Pure (no I/O). A thin wrapper over gridfm_record_batches_batch for one snapshot.

§Errors

Error::ReferenceBusCount unless the case has exactly one reference bus (graphkit needs a slack), Error::NormalizedGridfmSnapshot for a normalized input, Error::NonFiniteGridfmValue for a NaN/Inf physical quantity (or a NaN limit — ±Inf limits are the valid unbounded sentinel) that would reach Parquet, Error::NonFiniteSusceptance if a finite branch impedance still yields a non-finite admittance, and Error::UnknownBus if a generator or branch references a bus the network doesn’t define.