#[non_exhaustive]pub struct HvdcTerminalPowers {
pub p_from: f64,
pub q_from: f64,
pub p_to: f64,
pub q_to: f64,
}Expand description
The bus-to-device terminal powers of one HVDC line: at each end, active
and reactive power positive from that end’s AC bus into the HVDC system
(both converters and the DC line taken as one device). Build it with
Hvdc::calc_bus_to_device_powers.
The from and to ends name the line’s orientation, not which end sends: a
line transferring power from its to end has a negative p_from and a
positive p_to. Powers are in the network’s unit, MW and MVAr, or per
unit for a normalized network.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.p_from: f64Active power from the from bus into the HVDC system.
q_from: f64Reactive power from the from bus into the HVDC system; positive when the from converter absorbs reactive power.
p_to: f64Active power from the to bus into the HVDC system; negative when the line delivers power to the to bus.
q_to: f64Reactive power from the to bus into the HVDC system; positive when the to converter absorbs reactive power.
Implementations§
Source§impl HvdcTerminalPowers
impl HvdcTerminalPowers
Sourcepub fn calc_active_loss(&self) -> f64
pub fn calc_active_loss(&self) -> f64
The active power the line and its converters lose, p_from + p_to:
what enters the HVDC system at both ends together.
Sourcepub fn calc_bus_injections(&self) -> [(f64, f64); 2]
pub fn calc_bus_injections(&self) -> [(f64, f64); 2]
The injections these terminal powers make into the two AC buses,
[(p, q) at the from bus, (p, q) at the to bus]: each end’s terminal
power negated. This is the one place a terminal power becomes a bus
injection; Hvdc::calc_terminal_injections goes through it, and a
calculation that replaces a terminal power (an LCC converter’s bridge
reactive demand, say) negates the replaced value here too.
Trait Implementations§
Source§impl Clone for HvdcTerminalPowers
impl Clone for HvdcTerminalPowers
Source§fn clone(&self) -> HvdcTerminalPowers
fn clone(&self) -> HvdcTerminalPowers
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more