#[non_exhaustive]pub enum DcBusSpecification {
NetActivePower {
p_mw: f64,
},
Reference {
va_degrees: f64,
},
Isolated,
}Expand description
The calculation types used by solver consumers. The full problem
vocabulary lives in powerio_prob; these types sit at the facade root so
a consumer does not need a second PowerIO dependency to name its boundary.
One bus of a DC power flow problem: what the calculation is told, never
what it solves.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NetActivePower
The net active power injection the bus states, MW (generation minus demand over in service elements).
Reference
A reference bus with its stated voltage angle, degrees.
Isolated
An isolated bus: no equation.
Trait Implementations§
Source§impl Clone for DcBusSpecification
impl Clone for DcBusSpecification
Source§fn clone(&self) -> DcBusSpecification
fn clone(&self) -> DcBusSpecification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DcBusSpecification
Source§impl Debug for DcBusSpecification
impl Debug for DcBusSpecification
Source§impl<'de> Deserialize<'de> for DcBusSpecification
impl<'de> Deserialize<'de> for DcBusSpecification
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DcBusSpecification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DcBusSpecification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DcBusSpecification
impl PartialEq for DcBusSpecification
Source§fn eq(&self, other: &DcBusSpecification) -> bool
fn eq(&self, other: &DcBusSpecification) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DcBusSpecification
impl Serialize for DcBusSpecification
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
impl StructuralPartialEq for DcBusSpecification
Auto Trait Implementations§
impl Freeze for DcBusSpecification
impl RefUnwindSafe for DcBusSpecification
impl Send for DcBusSpecification
impl Sync for DcBusSpecification
impl Unpin for DcBusSpecification
impl UnsafeUnpin for DcBusSpecification
impl UnwindSafe for DcBusSpecification
Blanket Implementations§
impl<T> Allocation for T
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