#[non_exhaustive]pub struct StatedBusMismatch {
pub bus: BusId,
pub island: Option<usize>,
pub p_mw: f64,
pub q_mvar: f64,
pub flags: StatedBusFlags,
}Expand description
The balance at one bus.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bus: BusId§island: Option<usize>Index into StatedStateMismatch::islands. None for a bus the case
types as isolated, which has no balance equation.
p_mw: f64Active mismatch, MW: drawn by the network minus stated injection.
q_mvar: f64Reactive mismatch, MVAr, same sign.
flags: StatedBusFlagsImplementations§
Source§impl StatedBusMismatch
impl StatedBusMismatch
Sourcepub fn calc_magnitude_mva(&self) -> f64
pub fn calc_magnitude_mva(&self) -> f64
|ΔP + jΔQ|, MVA.
Trait Implementations§
Source§impl Clone for StatedBusMismatch
impl Clone for StatedBusMismatch
impl Copy for StatedBusMismatch
Source§impl Debug for StatedBusMismatch
impl Debug for StatedBusMismatch
Source§impl PartialEq for StatedBusMismatch
impl PartialEq for StatedBusMismatch
impl StructuralPartialEq for StatedBusMismatch
Auto Trait Implementations§
impl Freeze for StatedBusMismatch
impl RefUnwindSafe for StatedBusMismatch
impl Send for StatedBusMismatch
impl Sync for StatedBusMismatch
impl Unpin for StatedBusMismatch
impl UnsafeUnpin for StatedBusMismatch
impl UnwindSafe for StatedBusMismatch
Blanket Implementations§
impl<T> Allocation for T
impl<T> Boilerplate for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more