Skip to main content

write_psse_rev

Function write_psse_rev 

Source
pub fn write_psse_rev(net: &Network, rev: u32) -> Conversion
Expand description

Serialize net to PSS/E .raw at rev (33, 34, or 35).

Revisions 34 and 35 add the expanded system-wide header with its end-of-system-wide-data marker, the named 12-rating branch record, the 12-rating transformer winding line (COD at 15, NODE after CONT), and the load distributed-generation / load-type trailing columns; 35 also inserts the generator NREG/BASLOD columns and the switched shunt ID/NREG columns with (S, N, B) step triples. The reader keys each layout off the header revision. Any other rev falls back to the 33 layout. Same-format byte-exact echo still rides the retained source (see crate::write_as); this serializer is the cross-format path.