pub enum TransmissionLine {
Lossless {
impedance: f64,
velocity_factor: f64,
},
Distributed {
r: f64,
l: f64,
g: f64,
c: f64,
},
}Expand description
A uniform transmission line.
Variants§
Lossless
A lossless line of real characteristic impedance with phase velocity v = factor · c.
Distributed
A line with per-unit-length resistance (Ω/m), inductance (H/m), conductance (S/m) and capacitance (F/m).
Implementations§
Source§impl TransmissionLine
impl TransmissionLine
pub fn lossless(impedance: f64, velocity_factor: f64) -> Result<Self, ErrorsJSL>
pub fn distributed(r: f64, l: f64, g: f64, c: f64) -> Result<Self, ErrorsJSL>
Sourcepub fn characteristic_impedance(&self, frequency: f64) -> C64
pub fn characteristic_impedance(&self, frequency: f64) -> C64
The characteristic impedance Z₀ at frequency.
Sourcepub fn propagation_constant(&self, frequency: f64) -> C64
pub fn propagation_constant(&self, frequency: f64) -> C64
The propagation constant γ = α + jβ (Np/m, rad/m).
Sourcepub fn wavelength(&self, frequency: f64) -> f64
pub fn wavelength(&self, frequency: f64) -> f64
The guided wavelength 2π/β.
Sourcepub fn input_impedance(&self, load: C64, length: f64, frequency: f64) -> C64
pub fn input_impedance(&self, load: C64, length: f64, frequency: f64) -> C64
The impedance seen at the input of a section of length metres terminated in load
(Z_in = Z₀ (Z_L + Z₀ tanh γl) / (Z₀ + Z_L tanh γl); an infinite load is an open circuit).
Trait Implementations§
Source§impl Clone for TransmissionLine
impl Clone for TransmissionLine
impl Copy for TransmissionLine
Source§impl Debug for TransmissionLine
impl Debug for TransmissionLine
Source§impl PartialEq for TransmissionLine
impl PartialEq for TransmissionLine
impl StructuralPartialEq for TransmissionLine
Auto Trait Implementations§
impl Freeze for TransmissionLine
impl RefUnwindSafe for TransmissionLine
impl Send for TransmissionLine
impl Sync for TransmissionLine
impl Unpin for TransmissionLine
impl UnsafeUnpin for TransmissionLine
impl UnwindSafe for TransmissionLine
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