pub struct Generator {
pub bus: usize,
pub active_power: f64,
pub reactive_power: f64,
pub voltage_setpoint: f64,
pub p_min: f64,
pub p_max: f64,
pub q_min: f64,
pub q_max: f64,
pub in_service: bool,
}Expand description
A generator connected to a bus
Fields§
§bus: usizeConnected bus index
active_power: f64Active power output (MW)
reactive_power: f64Reactive power output (MVAr)
voltage_setpoint: f64Voltage setpoint (per-unit)
p_min: f64Minimum active power (MW)
p_max: f64Maximum active power (MW)
q_min: f64Minimum reactive power (MVAr)
q_max: f64Maximum reactive power (MVAr)
in_service: boolGenerator status (true = in service)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Generator
impl<'de> Deserialize<'de> for Generator
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 Generator
impl GridElement for Generator
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 Generator
impl RefUnwindSafe for Generator
impl Send for Generator
impl Sync for Generator
impl Unpin for Generator
impl UnwindSafe for Generator
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)