pub struct DcBus {
pub idx: usize,
pub role: DcBusRole,
pub udc_fixed: f64,
pub voltage: f64,
pub shunt_g: f64,
}Fields§
§idx: usize§role: DcBusRole§udc_fixed: f64Fixed voltage for UdcSlack/Ground roles; ignored otherwise.
voltage: f64Working/solved voltage. For UdcSlack/Ground this is overwritten
with udc_fixed at the start of solve_dc_network; for other roles
it’s both the initial guess (0.0 means “let the solver pick one”) and,
after solving, the result.
shunt_g: f64Extra conductance to ground at this node (e.g. a DCShunt, which has
only one terminal so can’t be represented as a DcLine).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DcBus
impl RefUnwindSafe for DcBus
impl Send for DcBus
impl Sync for DcBus
impl Unpin for DcBus
impl UnsafeUnpin for DcBus
impl UnwindSafe for DcBus
Blanket Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more