Struct WdfPort
pub struct WdfPort {
pub node_pos: Option<usize>,
pub node_neg: Option<usize>,
pub resistance: f64,
}Expand description
A WDF port spanning an arbitrary node pair (not necessarily node-to-ground).
Used by derive_scattering_matrix_general() to support floating ports
such as a BJT’s collector-to-emitter path where neither terminal is ground.
The generalized Werner formula for the scattering matrix entry is:
S[i][j] = δ_ij + 2·R_i · (X⁻¹[ai,aj] - X⁻¹[ai,bj] - X⁻¹[bi,aj] + X⁻¹[bi,bj])where ai, bi are the positive and negative nodes of port i.
Fields§
§node_pos: Option<usize>Positive node index (None = ground).
node_neg: Option<usize>Negative node index (None = ground).
resistance: f64Port resistance (Ω).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WdfPort
impl RefUnwindSafe for WdfPort
impl Send for WdfPort
impl Sync for WdfPort
impl Unpin for WdfPort
impl UnsafeUnpin for WdfPort
impl UnwindSafe for WdfPort
Blanket Implementations§
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