pub struct ParSpec {
pub from_bus: u32,
pub to_bus: u32,
pub circuit: String,
pub monitored_from_bus: u32,
pub monitored_to_bus: u32,
pub monitored_circuit: String,
pub p_target_mw: f64,
pub p_band_mw: f64,
pub angle_min_deg: f64,
pub angle_max_deg: f64,
pub ang_step_deg: f64,
}Expand description
Phase Angle Regulator (PAR) specification stored in the network model.
Populated by the PSS/E parser from transformer control fields (COD1 = 3).
At solve time the NR wrapper converts each ParSpec to a ParControl
(0-indexed) so the discrete-control outer loop can act on it.
The PAR adjusts its phase-shift angle (ANG, degrees) in discrete steps to
drive active power flow on the monitored branch toward a target band
[p_target_mw − p_band_mw/2, p_target_mw + p_band_mw/2].
Fields§
§from_bus: u32External bus number of the PAR transformer from-bus.
to_bus: u32External bus number of the PAR transformer to-bus.
circuit: StringCircuit identifier string.
monitored_from_bus: u32External bus number of the monitored branch from-bus (0 = monitor the PAR branch itself).
monitored_to_bus: u32External bus number of the monitored branch to-bus (0 = monitor the PAR branch itself).
monitored_circuit: StringCircuit of the monitored branch (used when monitored branch ≠ PAR branch).
p_target_mw: f64Target active power flow in MW (midpoint of control band).
p_band_mw: f64Dead-band full-width in MW.
angle_min_deg: f64Minimum phase-angle shift in degrees.
angle_max_deg: f64Maximum phase-angle shift in degrees.
ang_step_deg: f64Discrete step size in degrees.