#[non_exhaustive]pub struct TransformerControl {
pub mode: TransformerControlMode,
pub enabled: bool,
pub controlled_bus: Option<BusId>,
pub controlled_bus_on_winding_side: bool,
pub regulating_terminal: Option<TerminalReference>,
pub tap_min: f64,
pub tap_max: f64,
pub band_min: f64,
pub band_max: f64,
pub ntp: u32,
pub mva_base: f64,
pub winding_connection_angle: Option<f64>,
}Expand description
Automatic-control data for a regulating transformer (Branch::control).
The limits carry whatever the mode regulates:
tap_min/tap_max bound the tap ratio (or the phase angle for active power
control), and band_min/band_max bound the controlled quantity (the
regulated voltage band or the scheduled MW/MVAr). ntp is the number of
discrete tap positions and controlled_bus is the regulated bus (None =
the transformer’s own terminal). mva_base is the winding MVA base the
impedance is referred to.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mode: TransformerControlMode§enabled: boolWhether automatic regulation is enabled. PSS/E represents this with
the sign of COD while its magnitude selects mode.
controlled_bus: Option<BusId>§controlled_bus_on_winding_side: boolWhether the controlled bus lies on this winding’s side of the
transformer. PSS/E represents this with a negative CONT value.
regulating_terminal: Option<TerminalReference>Exact regulated terminal when the source identifies one.
tap_min: f64§tap_max: f64§band_min: f64§band_max: f64§ntp: u32§mva_base: f64§winding_connection_angle: Option<f64>Winding connection angle for asymmetric active power flow control. It is in degrees in a source network and radians after normalization.
Implementations§
Source§impl TransformerControl
impl TransformerControl
pub fn new(mode: TransformerControlMode) -> TransformerControl
Trait Implementations§
Source§impl Clone for TransformerControl
impl Clone for TransformerControl
Source§fn clone(&self) -> TransformerControl
fn clone(&self) -> TransformerControl
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransformerControl
impl Debug for TransformerControl
Source§impl Default for TransformerControl
impl Default for TransformerControl
Source§fn default() -> TransformerControl
fn default() -> TransformerControl
Source§impl<'de> Deserialize<'de> for TransformerControl
impl<'de> Deserialize<'de> for TransformerControl
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransformerControl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransformerControl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for TransformerControl
impl JsonSchema for TransformerControl
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for TransformerControl
impl PartialEq for TransformerControl
Source§fn eq(&self, other: &TransformerControl) -> bool
fn eq(&self, other: &TransformerControl) -> bool
self and other values to be equal, and is used by ==.