Skip to main content

Hvdc

Struct Hvdc 

Source
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 Clone for Hvdc

Source§

fn clone(&self) -> Hvdc

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Hvdc

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Hvdc

Source§

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

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,