pub struct ElectromagneticMaterial {
pub name: String,
pub permittivity: Tensor3x3,
pub permeability: Tensor3x3,
pub conductivity: Tensor3x3,
pub loss_tangent: f64,
pub ref_freq: f64,
}Expand description
Full set of electromagnetic material properties for a given medium.
Fields§
§name: StringHuman-readable label.
permittivity: Tensor3x3Relative permittivity tensor ε_r (dimensionless).
permeability: Tensor3x3Relative permeability tensor μ_r (dimensionless).
conductivity: Tensor3x3DC conductivity tensor σ [S/m].
loss_tangent: f64Loss tangent tan(δ) at the reference frequency.
ref_freq: f64Reference frequency for loss tangent [Hz].
Implementations§
Source§impl ElectromagneticMaterial
impl ElectromagneticMaterial
Sourcepub fn dielectric(
name: &str,
eps_r: f64,
loss_tangent: f64,
ref_freq: f64,
) -> Self
pub fn dielectric( name: &str, eps_r: f64, loss_tangent: f64, ref_freq: f64, ) -> Self
Create an isotropic non-magnetic dielectric.
Sourcepub fn eps_r_scalar(&self) -> f64
pub fn eps_r_scalar(&self) -> f64
Scalar relative permittivity (trace / 3) for isotropic media.
Sourcepub fn mu_r_scalar(&self) -> f64
pub fn mu_r_scalar(&self) -> f64
Scalar relative permeability (trace / 3) for isotropic media.
Sourcepub fn intrinsic_impedance(&self) -> f64
pub fn intrinsic_impedance(&self) -> f64
Intrinsic impedance Z = Z₀ √(μ_r / ε_r) [Ω] (isotropic approximation).
Sourcepub fn phase_velocity(&self) -> f64
pub fn phase_velocity(&self) -> f64
Phase velocity v_p = c / √(ε_r μ_r) [m/s] (isotropic).
Sourcepub fn skin_depth(&self, f: f64) -> f64
pub fn skin_depth(&self, f: f64) -> f64
Skin depth δ = 1 / √(π f μ σ) [m] at frequency f [Hz].
Trait Implementations§
Source§impl Clone for ElectromagneticMaterial
impl Clone for ElectromagneticMaterial
Source§fn clone(&self) -> ElectromagneticMaterial
fn clone(&self) -> ElectromagneticMaterial
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ElectromagneticMaterial
impl RefUnwindSafe for ElectromagneticMaterial
impl Send for ElectromagneticMaterial
impl Sync for ElectromagneticMaterial
impl Unpin for ElectromagneticMaterial
impl UnsafeUnpin for ElectromagneticMaterial
impl UnwindSafe for ElectromagneticMaterial
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