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.
PSS/E contingency description files (.con).
A .con file names the outages a contingency analysis runs. It is free
format text: optional header comments, then named cases, automatic
specifications that expand against a subsystem, SKIP rules that exclude
elements from that expansion, and solver-specific lines that only the tool
that wrote them interprets.
CONTINGENCY 'L_000001ODES'
OPEN LINE FROM BUS 1001 TO BUS 1064 CIRCUIT 1
END
SINGLE BRANCH IN SUBSYSTEM 'WOA'
ENDContingencySet::parse reads UTF-8 text and touches no filesystem.
Statements outside the grammar below keep their line, with surrounding
whitespace dropped, and are reported, so a file reads completely rather
than failing on the first line a tool wrote for itself. ContingencySet::to_con writes the set back in
one canonical spelling. Only a case that never closes, a case that starts
inside another, and a block left open at end of input are errors.
The grammar, its evidence, and the writer’s spellings are in FORMAT.md
next to this file. Reading holds what the file states and touches no
network. ContingencySet::resolve is the separate step that binds a set
to the elements of a crate::network::BalancedNetwork; resolve.rs
holds it.
The other two files a contingency analysis reads have their own modules
beside this one: sub.rs for the subsystem description file
(SubsystemSet) and mon.rs for the monitored element file
(MonitoredSet). ContingencySet::expand turns this file’s automatic
specifications into explicit cases against a network and a subsystem set;
expand.rs holds it.
Modules§
Structs§
- Automatic
Spec - A specification that expands into one case per element of a subsystem.
- Branch
Ref - One branch named by its terminal buses and circuit id.
- Change
- How much a load or generation statement moves, and in what unit.
- Contingency
Case - One named case: every action applies together.
- Contingency
Parsed - Output of a tolerant contingency read: the set plus the reader’s notes on statements it kept as text.
- Contingency
Resolution - What a whole contingency set bound to.
- Contingency
Set - One contingency description file.
- Expanded
- Output of an expansion: the set with its automatic specifications turned into cases, plus the notes on the specifications that produced no case.
- Interface
Member - One branch of an interface, and how the statement stated it against the stored row.
- Monitored
Parsed - Output of a tolerant monitored element read.
- Monitored
Resolution - What a whole monitored element set bound to. Rows are positions in the tables of the network the set was resolved against.
- Monitored
Set - One monitored element file.
- Psse
Equipment Index - The PSS/E id every element of a network would carry in a RAW file written
from it, with the lookups a
.constatement needs. - Resolved
Case - What one case bound to.
- Resolved
Component - One network element a case’s action bound to.
- Resolved
Interface - One interface and the branches its flow sums over.
- Resolved
Voltage Scope - One voltage statement’s buses and limits.
highis absent for a deviation statement that names one value. - Retained
Statement - A file level statement outside the grammar, kept as text.
- Selector
Group - One group of selectors whose bus sets intersect across selector types.
- Skip
Rule - One branch an automatic expansion leaves alone.
- Subsystem
- One named subsystem: the union of its selector groups.
- Subsystem
Parsed - Output of a tolerant subsystem read: the set plus the reader’s notes on statements it kept as text.
- Subsystem
Set - One subsystem description file.
- Unresolved
Action - One action that bound to nothing, kept with the reason.
- Unresolved
Monitor - One statement that named nothing, kept with the reason.
Enums§
- Automatic
Order - How many elements an automatic specification outages at a time.
- Automatic
Target - The element family an automatic specification expands over.
- Change
Op - Whether a change adds to, subtracts from, or replaces the present value.
- Change
Unit - The unit a change is stated in.
- Contingency
Action - One statement inside a case.
- Join
Name - What a
JOINstatement stated after the keyword. - Monitor
Scope - The buses a voltage statement applies to.
- Monitor
Statement - One monitor statement.
- Subsystem
Selector - One bus selector. A statement naming a single value reads as a range whose
fromandtoare equal; both ends are inclusive. - Unresolved
Monitor Reason - Why a monitor statement named nothing.
- Unresolved
Reason - Why an action bound to nothing.