#[non_exhaustive]pub struct McAcOpfAssemblyOptions {
pub voltage_base_v: f64,
pub power_base_va: f64,
pub bounded_load_laws: BoundedLoadLawPolicy,
}Expand description
Explicit system bases; no physical bound is inferred from these values.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.voltage_base_v: f64Voltage base in volts, shared by terminal and coil voltages.
power_base_va: f64Power base in VA per coil; I_base = S_base / V_base.
bounded_load_laws: BoundedLoadLawPolicyHandling of voltage-bounded load laws. Refused unless the caller opts in to the nominal projection.
Implementations§
Source§impl McAcOpfAssemblyOptions
impl McAcOpfAssemblyOptions
Sourcepub const fn new(voltage_base_v: f64, power_base_va: f64) -> Self
pub const fn new(voltage_base_v: f64, power_base_va: f64) -> Self
Choose voltage (V) and power (VA) bases. The preparation builder validates that both and their derived current/impedance bases are finite and positive.
Sourcepub const fn with_bounded_load_laws(self, policy: BoundedLoadLawPolicy) -> Self
pub const fn with_bounded_load_laws(self, policy: BoundedLoadLawPolicy) -> Self
Choose how voltage-bounded load laws are handled.
Trait Implementations§
Source§impl Clone for McAcOpfAssemblyOptions
impl Clone for McAcOpfAssemblyOptions
impl Copy for McAcOpfAssemblyOptions
Source§impl Debug for McAcOpfAssemblyOptions
impl Debug for McAcOpfAssemblyOptions
Source§impl Default for McAcOpfAssemblyOptions
impl Default for McAcOpfAssemblyOptions
Source§impl<'de> Deserialize<'de> for McAcOpfAssemblyOptions
impl<'de> Deserialize<'de> for McAcOpfAssemblyOptions
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
Auto Trait Implementations§
impl Freeze for McAcOpfAssemblyOptions
impl RefUnwindSafe for McAcOpfAssemblyOptions
impl Send for McAcOpfAssemblyOptions
impl Sync for McAcOpfAssemblyOptions
impl Unpin for McAcOpfAssemblyOptions
impl UnsafeUnpin for McAcOpfAssemblyOptions
impl UnwindSafe for McAcOpfAssemblyOptions
Blanket Implementations§
impl<T> Allocation 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