pub struct Hvdc {Show 18 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 extras: BTreeMap<String, Value>,
}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§
§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§extras: BTreeMap<String, Value>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hvdc
impl<'de> Deserialize<'de> for Hvdc
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Hvdc, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Hvdc, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Hvdc
impl Serialize for Hvdc
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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