Skip to main content

ElectromagneticMaterial

Struct ElectromagneticMaterial 

Source
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: String

Human-readable label.

§permittivity: Tensor3x3

Relative permittivity tensor ε_r (dimensionless).

§permeability: Tensor3x3

Relative permeability tensor μ_r (dimensionless).

§conductivity: Tensor3x3

DC conductivity tensor σ [S/m].

§loss_tangent: f64

Loss tangent tan(δ) at the reference frequency.

§ref_freq: f64

Reference frequency for loss tangent [Hz].

Implementations§

Source§

impl ElectromagneticMaterial

Source

pub fn dielectric( name: &str, eps_r: f64, loss_tangent: f64, ref_freq: f64, ) -> Self

Create an isotropic non-magnetic dielectric.

Source

pub fn conductor(name: &str, sigma: f64) -> Self

Create an isotropic conductor (σ >> ωε).

Source

pub fn eps_r_scalar(&self) -> f64

Scalar relative permittivity (trace / 3) for isotropic media.

Source

pub fn mu_r_scalar(&self) -> f64

Scalar relative permeability (trace / 3) for isotropic media.

Source

pub fn intrinsic_impedance(&self) -> f64

Intrinsic impedance Z = Z₀ √(μ_r / ε_r) [Ω] (isotropic approximation).

Source

pub fn phase_velocity(&self) -> f64

Phase velocity v_p = c / √(ε_r μ_r) [m/s] (isotropic).

Source

pub fn skin_depth(&self, f: f64) -> f64

Skin depth δ = 1 / √(π f μ σ) [m] at frequency f [Hz].

Trait Implementations§

Source§

impl Clone for ElectromagneticMaterial

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for ElectromagneticMaterial

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.