pub struct DcBranch {
pub index: usize,
pub from: usize,
pub to: usize,
pub b: f64,
pub shift: f64,
}Expand description
One series branch reduced to the two numbers the DC model needs.
Branches with no series path at all — a half-open self-loop line, a
transformer with an open terminal — produce no DcBranch: they contribute
nothing to B and carry no DC flow. Their flat indices show up in
DcSolution::ignored_branches instead.
Fields§
§index: usizeFlat branch index — lines first, then transformers. This is the
crate-wide branch index space that branch_flow::branch_params and
pgm::PgmNetwork::branch_idx also use, so a DcBranch and a
BranchParams with the same index are the same physical branch.
from: usize§to: usize§b: f64Susceptance entering B, already divided by the off-nominal ratio
k. Positive for every ordinary inductive branch.
shift: f64Phase shift α = tap.arg(), radians. Always 0 for a Line.
Trait Implementations§
impl Copy for DcBranch
impl StructuralPartialEq for DcBranch
Auto Trait Implementations§
impl Freeze for DcBranch
impl RefUnwindSafe for DcBranch
impl Send for DcBranch
impl Sync for DcBranch
impl Unpin for DcBranch
impl UnsafeUnpin for DcBranch
impl UnwindSafe for DcBranch
Blanket Implementations§
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
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