pub struct Medium {
pub eps_r: C64,
pub mu_r: C64,
}Expand description
A linear, homogeneous, isotropic medium described by complex relative permittivity and
permeability. Losses are given in the TimeConvention::PlusJ form (ε_r = ε' - jε'' with
ε'' >= 0); the medium’s methods convert to the requested convention.
Fields§
§eps_r: C64§mu_r: C64Implementations§
Source§impl Medium
impl Medium
pub const VACUUM: Medium
Sourcepub fn dielectric(eps_r: f64) -> Self
pub fn dielectric(eps_r: f64) -> Self
A lossless dielectric with relative permittivity eps_r.
Sourcepub fn lossy_dielectric(eps_r: f64, loss_tangent: f64) -> Self
pub fn lossy_dielectric(eps_r: f64, loss_tangent: f64) -> Self
A lossy dielectric from relative permittivity and loss tangent tan δ.
Sourcepub fn with_conductivity(eps_r: f64, sigma: f64, frequency: f64) -> Self
pub fn with_conductivity(eps_r: f64, sigma: f64, frequency: f64) -> Self
A conductor-like medium: relative permittivity plus conductivity σ at frequency.
Sourcepub fn wavenumber(&self, frequency: f64, convention: TimeConvention) -> C64
pub fn wavenumber(&self, frequency: f64, convention: TimeConvention) -> C64
The wavenumber k = ω √(μ ε) at frequency, on the branch for which outgoing waves decay
(Im k <= 0 for e^{+jωt}, Im k >= 0 for e^{-iωt}), with Re k >= 0.
Sourcepub fn impedance(&self, convention: TimeConvention) -> C64
pub fn impedance(&self, convention: TimeConvention) -> C64
The intrinsic impedance η = √(μ/ε) (≈ 376.73 Ω in vacuum), with Re η >= 0.
Sourcepub fn wavelength(&self, frequency: f64) -> f64
pub fn wavelength(&self, frequency: f64) -> f64
The wavelength 2π / Re k.
Sourcepub fn phase_velocity(&self, frequency: f64) -> f64
pub fn phase_velocity(&self, frequency: f64) -> f64
The phase velocity ω / Re k.
Trait Implementations§
impl Copy for Medium
impl StructuralPartialEq for Medium
Auto Trait Implementations§
impl Freeze for Medium
impl RefUnwindSafe for Medium
impl Send for Medium
impl Sync for Medium
impl Unpin for Medium
impl UnsafeUnpin for Medium
impl UnwindSafe for Medium
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