Skip to main content

Module network

Module network 

Source
Expand description

Balanced network records and the public network and geographic submodules. Derived indexes, normalization data, solver tables, and component error types remain available from powerio-tx rather than being duplicated at the facade root. Format neutral balanced network model.

Readers map source formats into a BalancedNetwork, and writers map a network to target formats. Loads and shunts have separate tables, so formats can retain several elements at one bus. MATPOWER demand and shunt fields become those records during parsing. IndexedNetwork provides the dense analysis view used by matrix builders.

A network can retain its source bytes and SourceFormat for same format writing. Each element also has an Extras map for source fields not named by the typed model.

Formats represent different data. Cross format writers report unsupported fields rather than claiming an exact conversion.

Structs§

ActivePowerControl
Active power control settings for a generator or storage device.
Area
An area record: the area’s scheduled net interchange and its swing bus.
BalancedNetwork
A balanced network with stable source bus IDs and separate element tables: an immutable cheap to clone owning handle over private shared tables.
BoundaryLine
One PowSybl boundary line retained beside the balanced calculation view.
BoundaryLineGeneration
Optional generation attached to a PowSybl boundary line.
Branch
BranchCharging
Per terminal branch shunt admittance in p.u. This is the canonical physical branch shunt model when present.
BranchCurrentRatings
Current limits for a branch, in source units.
BranchRatingSet
Extra branch MVA rating set beyond the canonical A/B/C columns.
BranchSolution
Solved branch terminal flows in MW/MVAr.
Bus
BusBreakerBus
One configured bus in a bus breaker voltage level and the energized bus it contributes to in the balanced calculation view.
BusId
A source bus ID, preserved from the input format.
BusbarSection
A busbar section attached to a node breaker connectivity node.
CalculatedBus
One calculated bus explicitly recorded in node breaker topology.
CaseMetadata
Source neutral case metadata recorded by a grid exchange format.
ComponentAlias
An alternate name for a component, with the optional source supplied alias type.
ComponentMetadata
Source neutral metadata attached to one stable PowerIO component identity.
ConnectivityNode
One connectivity node in a node breaker voltage level.
DcBusbar
A CGMES DC busbar.
DcConverterUnit
A CGMES DC converter unit and its substation containment.
DcGround
A connection from one DC node to ground.
DcLine
A line segment between two DC nodes.
DcNode
A physical node in a DC network.
DcSeriesDevice
A CGMES DC series device.
DcSwitch
A switch between two DC nodes.
DcTerminal
One terminal of DC conducting equipment.
DcTopologicalNode
An energized connectivity node in a CGMES DC network.
DetailedConnectivity
Source neutral hierarchy and detailed connectivity retained beside the balanced calculation view.
DroopCurve
DC voltage droop segments for an AC/DC converter.
DroopCurveSegment
One segment of an AC/DC converter’s DC voltage droop curve.
EquipmentReactiveLimits
Reactive limits retained for equipment whose balanced calculation row carries only the limits evaluated at its current active power assignment.
ExternalIdentifier
An identifier assigned by another data system or authority.
GenCost
A generator cost curve (mpc.gencost row).
Generator
Hvdc
HvdcConverter
One AC terminal converter station of an HVDC line.
Impedance
A series impedance with the MVA base it is expressed on. Used pairwise by Transformer3W; a self-contained unit so the base travels with the value instead of being implied by position.
InternalConnection
A permanent connection between two node breaker connectivity nodes.
Junction
A CIM junction and its conducting equipment identity.
LineCommutatedConverter
A line commutated converter connected to an AC voltage level and two DC nodes.
Load
LoadingLimits
A permanent loading limit and its named temporary limits.
MinMaxReactiveLimits
Reactive power limits that do not vary with active power.
OmittedField
A field that was absent from a source representation.
OperationalLimitGroup
One named set of loading limits at an equipment terminal.
ReactiveCapabilityCurve
Reactive power limits that vary with active power.
ReactiveCapabilityCurvePoint
One point of a reactive capability curve.
Shunt
ShuntBlock
One block of a switched shunt: steps equal admittance increments.
SolverParams
Solver / solution-control metadata: the Newton tolerance and iteration cap, the zero-impedance threshold, and the per-quantity adjustment-enable flags.
StaticVarCompensator
A static VAR compensator connected to one balanced network bus.
Storage
Subnetwork
One PowSybl subnetwork contained directly by a balanced network.
Substation
A substation containing one or more voltage levels.
Switch
A transmission switch. Closed switches are preserved as data; matrix builders do not lower them into zero impedance branches.
SwitchedShuntControl
Switching-control data for a switched shunt (Shunt::control): the mode, the regulated voltage band and bus, the reactive-range percentage, and the adjustable susceptance blocks. The shunt’s b is the initial value within the blocks’ total range.
TapChanger
A ratio or phase tap changer attached to one transformer winding.
TapChangerStep
One transformer tap changer step.
TemporaryLimit
One temporary loading limit inside an OperationalLimitGroup.
Terminal
One equipment terminal and its bus breaker or node breaker connection.
TerminalReference
A reference to one numbered terminal of an equipment record.
TieLine
A PowSybl tie line and the two boundary lines that define it.
TopologySwitch
A switch in the authoritative bus breaker or node breaker topology.
Transformer3W
A three winding transformer with three terminal buses joined at a star point.
TransformerControl
Automatic-control data for a regulating transformer (Branch::control).
VoltageLevel
A voltage level and its voltage limits in kV.
VoltageSourceConverter
A voltage source converter connected to an AC voltage level and two DC nodes.
Winding
One winding of a Transformer3W: its terminal bus, off-nominal ratio, phase shift, nominal voltage, and thermal ratings.

Enums§

AcDcConverterControlMode
Control quantity assigned to an AC/DC converter.
BusType
Bus type per MATPOWER convention: 1=PQ, 2=PV, 3=ref/slack, 4=isolated.
CurveStyle
CIM CurveStyle for a reactive capability curve.
DcConverterOperatingMode
The operating arrangement of one CGMES DC converter unit.
DcPolarity
Polarity assigned to an AC/DC converter DC terminal.
DcSwitchKind
Physical kind of a DC switch.
GeneratorEnergySource
Primary energy source used by generating equipment.
HvdcConverterKind
Converter technology used at both ends of one HVDC line.
HvdcConvertersMode
A two-terminal HVDC line (MATPOWER dcline).
LineCommutatedConverterOperatingMode
Rectifier or inverter operation assigned to a line commutated converter.
LineCommutatedConverterReactiveModel
Reactive power model used by a line commutated converter.
LoadVoltageModel
Voltage dependence for a transmission load.
OmittedFieldName
The name of a field omitted by a source representation.
ReactiveLimits
The two reactive limit forms carried by XIIDM equipment.
SourceFormat
Which format a BalancedNetwork was read from. Drives the same format byte exact echo on write.
StaticVarCompensatorRegulationMode
The controlled quantity of a static VAR compensator.
SwitchKind
Physical kind of a breaker topology switch.
SwitchedShuntMode
How a switched shunt adjusts its susceptance. Maps to the PSS/E MODSW code.
TapChangerKind
Whether a transformer tap changer controls voltage ratio or phase angle.
TapChangerRegulationMode
The electrical quantity regulated by a transformer tap changer.
TopologyEndpoint
One endpoint of a detailed topology switch.
TopologyKind
The connectivity representation used inside a voltage level.
TransformerControlMode
What a regulating transformer’s tap (or phase shift) automatically controls. Maps to the PSS/E control code COD and the PSLF transformer type.

Constants§

DEFAULT_BASE_FREQUENCY
System base frequency in hertz when a format records none. Power networks run at 50 or 60 Hz; 60 is the default for the formats (MATPOWER, PowerModels, egret) that carry no frequency field.

Functions§

calc_series_admittance_of
The series admittance (g, b) of an impedance, guarded.
repair_values
Clamp every out-of-domain value of a parsed module to its repaired value and record the pass: one Repair history entry naming each change in its parameters, and one VALIDATE.BALANCED.VALUE_DOMAIN finding per repaired field. The retained source is severed — the value no longer matches the bytes, so a same format write serializes the repaired network rather than echoing the input. A module already in domain comes back unchanged.

Type Aliases§

Extras
Source format fields the neutral model does not name, kept for round trips and cross format conversion. Keys are field names; values are JSON scalars.
GenCaps
A generator’s capability / ramp columns, one slot per GEN_EXTRA_KEYS name.