DCBus

Struct DCBus 

Source
pub struct DCBus {
    pub idc: BusNum,
    pub ib: BusNum,
    pub ia: AreaNum,
    pub zone: ZoneNum,
    pub name: ArrayString<15>,
    pub idc2: BusNum,
    pub rgrnd: f64,
    pub owner: OwnerNum,
}

Fields§

§idc: BusNum

DC bus number (1 to NDCBS). The DC buses are used internally within each multi-terminal DC line and must be numbered 1 through ndcbs. no default.

§ib: BusNum

AC converter bus number, or extended bus name enclosed in single quotes, or zero. Each converter station bus specified in a converter record must be specified as ib in exactly one DC bus record. DC buses that are connected only to other DC buses by DC links and not to any AC converter buses must have a zero specified for ib. A DC bus specified as idc2 on one or more other DC bus records must have a zero specified for ib on its own DC bus record. ib = 0 by default.

§ia: AreaNum

Area number (1 through the maximum number of areas at the current size level). ia = 1 by default.

§zone: ZoneNum

Zone number (1 through the maximum number of zones at the current size level). zone = 1 by default.

§name: ArrayString<15>

Alphanumeric identifier assigned to DC bus idc. The name may be up to twelve characters and must be enclosed in single quotes. name may contain any combination of blanks, uppercase letters, numbers, and special characters. name is twelve blanks by default.

§idc2: BusNum§rgrnd: f64

Second DC bus to which converter ib is connected, or zero if the converter is connected directly to ground.

  • For voltage controlling converters, this is the DC bus with the lower DC voltage magnitude and setvl specifies the voltage difference between buses idc and idc2.
  • For rectifiers, DC buses should be specified such that power flows from bus idc2 to bus idc.
  • For inverters, DC buses should be specified such that power flows from bus idc to bus idc2. idc2 is ignored on those dc bus records that have ib specified as zero. idc2 = 0 by default.
§owner: OwnerNum

Owner number (1 through the maximum number of owners at the current size level). owner = 1 by default.

Trait Implementations§

Source§

impl Clone for DCBus

Source§

fn clone(&self) -> DCBus

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

Auto Trait Implementations§

§

impl Freeze for DCBus

§

impl RefUnwindSafe for DCBus

§

impl Send for DCBus

§

impl Sync for DCBus

§

impl Unpin for DCBus

§

impl UnwindSafe for DCBus

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> 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.