pub struct OltcControl {
pub branch_index: usize,
pub bus_regulated: usize,
pub v_target: f64,
pub v_band: f64,
pub tap_min: f64,
pub tap_max: f64,
pub tap_step: f64,
}Expand description
On-Load Tap Changer (OLTC) control data for a transformer branch.
An OLTC regulates the voltage at a remote (or local) bus by stepping its tap ratio in discrete increments. After Newton-Raphson converges, the solver checks each OLTC transformer:
- If
|vm[bus_regulated] - v_target| > v_band / 2, tap is stepped toward the target and NR is re-solved. - Steps are bounded by
[tap_min, tap_max]. - The loop terminates when all regulated bus voltages are within band or
oltc_max_iterouter iterations are exhausted.
The branch_index field refers to the 0-based index into
PowerNetwork::branches. The tap adjustment modifies
branches[branch_index].tap in place before each NR re-solve.
Fields§
§branch_index: usize0-based index into Network::branches for the transformer being controlled.
bus_regulated: usize0-based index into Network::buses for the bus whose voltage is regulated.
May differ from the transformer’s from/to bus for remote voltage control.
v_target: f64Voltage target in per-unit.
v_band: f64Dead-band half-width in per-unit (control activates when |V - v_target| > v_band / 2).
tap_min: f64Minimum allowable tap ratio in per-unit (e.g. 0.9).
tap_max: f64Maximum allowable tap ratio in per-unit (e.g. 1.1).
tap_step: f64Discrete tap step size in per-unit (e.g. 0.00625 = 1/160, typical 16-step OLTC).
Implementations§
Source§impl OltcControl
impl OltcControl
Trait Implementations§
Source§impl Clone for OltcControl
impl Clone for OltcControl
Source§fn clone(&self) -> OltcControl
fn clone(&self) -> OltcControl
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more