#[non_exhaustive]pub struct GroundedNeutral<'a> {
pub transformer: &'a str,
pub bus: &'a str,
pub terminal: &'a str,
}Expand description
A transformer neutral the source grounds solidly: an exact zero voltage
at (bus, terminal), not an admittance.
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.transformer: &'a strThe transformer that grounds it.
bus: &'a str§terminal: &'a strImplementations§
Source§impl GroundedNeutral<'_>
impl GroundedNeutral<'_>
Sourcepub fn needs_zero_voltage_row(
&self,
prescribed: Option<Complex64>,
) -> Result<bool>
pub fn needs_zero_voltage_row( &self, prescribed: Option<Complex64>, ) -> Result<bool>
Whether this neutral needs its own zero voltage row, given the voltage
an ideal source already prescribes on the same node (None when none
does): true without a prescription, false when the source already
fixes the node at exactly zero (a second row would make the
constraint rows rank deficient).
The one rule for a solid neutral meeting a source:
calc_multiconductor_admittance_matrix and every caller assembling
its own prescribed voltages read it.
§Errors
A nonzero prescribed voltage on the grounded node.
Trait Implementations§
Source§impl<'a> Clone for GroundedNeutral<'a>
impl<'a> Clone for GroundedNeutral<'a>
impl<'a> Copy for GroundedNeutral<'a>
Source§impl<'a> Debug for GroundedNeutral<'a>
impl<'a> Debug for GroundedNeutral<'a>
impl<'a> Eq for GroundedNeutral<'a>
Source§impl<'a> PartialEq for GroundedNeutral<'a>
impl<'a> PartialEq for GroundedNeutral<'a>
impl<'a> StructuralPartialEq for GroundedNeutral<'a>
Auto Trait Implementations§
impl<'a> Freeze for GroundedNeutral<'a>
impl<'a> RefUnwindSafe for GroundedNeutral<'a>
impl<'a> Send for GroundedNeutral<'a>
impl<'a> Sync for GroundedNeutral<'a>
impl<'a> Unpin for GroundedNeutral<'a>
impl<'a> UnsafeUnpin for GroundedNeutral<'a>
impl<'a> UnwindSafe for GroundedNeutral<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.