#[non_exhaustive]pub struct Hvdc {Show 20 fields
pub from: BusId,
pub to: BusId,
pub in_service: bool,
pub pf: f64,
pub pt: f64,
pub qf: f64,
pub qt: f64,
pub vf: f64,
pub vt: f64,
pub pmin: f64,
pub pmax: f64,
pub qminf: f64,
pub qmaxf: f64,
pub qmint: f64,
pub qmaxt: f64,
pub loss0: f64,
pub loss1: f64,
pub cost: Option<GenCost>,
pub uid: Option<String>,
pub extras: Extras,
}Expand description
A two-terminal HVDC line (MATPOWER dcline).
pf/pt/qf/qt are stored in MATPOWER’s sign convention regardless of
source: the PowerModels reader un-flips pt/qf/qt on the way in, and the
PowerModels writer re-flips them on the way out (PowerModels.jl uses the
opposite sign). The flip is a format-boundary translation, so a derived view
like to_normalized keeps the MATPOWER convention and only scales to per unit.
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.from: BusId§to: BusId§in_service: bool§pf: f64§pt: f64§qf: f64§qt: f64§vf: f64§vt: f64§pmin: f64§pmax: f64§qminf: f64§qmaxf: f64§qmint: f64§qmaxt: f64§loss0: f64§loss1: f64§cost: Option<GenCost>§uid: Option<String>Stable row identity; see Bus::uid.
extras: ExtrasImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hvdc
impl<'de> Deserialize<'de> for Hvdc
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Hvdc
impl RefUnwindSafe for Hvdc
impl Send for Hvdc
impl Sync for Hvdc
impl Unpin for Hvdc
impl UnsafeUnpin for Hvdc
impl UnwindSafe for Hvdc
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