pub struct Bus {
pub bus_type: BusType,
pub voltage_magnitude: f64,
pub voltage_angle: f64,
pub active_power: f64,
pub reactive_power: f64,
pub base_voltage_kv: f64,
}Expand description
A bus (node) in the power network
Fields§
§bus_type: BusTypeBus type
voltage_magnitude: f64Voltage magnitude (per-unit)
voltage_angle: f64Voltage angle (radians)
active_power: f64Active power injection (MW, positive = generation)
reactive_power: f64Reactive power injection (MVAr, positive = generation)
base_voltage_kv: f64Base voltage (kV)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bus
impl<'de> Deserialize<'de> for Bus
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
Source§impl GridElement for Bus
impl GridElement for Bus
Source§fn element_type(&self) -> &'static str
fn element_type(&self) -> &'static str
Element type name for debugging
Source§fn apply(&self, _state: &mut StateStore)
fn apply(&self, _state: &mut StateStore)
Apply element’s contribution to the state
Auto Trait Implementations§
impl Freeze for Bus
impl RefUnwindSafe for Bus
impl Send for Bus
impl Sync for Bus
impl Unpin for Bus
impl UnwindSafe for Bus
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)