Skip to main content

Nf2ffResult

Struct Nf2ffResult 

Source
pub struct Nf2ffResult { /* private fields */ }
Expand description

Far-field evaluation of a recorded NF2FF box (see the module docs). Frequencies are addressed by index into freqs.

Implementations§

Source§

impl Nf2ffResult

Source

pub fn freqs(&self) -> &[f64]

The analysis frequencies [Hz].

Source

pub fn wavenumber(&self, k: usize) -> f64

Wavenumber 2πf·√(ε_r μ_r)/c0 of the background at frequency index k (2πf/c0 in vacuum).

Source

pub fn wave_impedance(&self) -> f64

Wave impedance η = Z0·√(μ_r/ε_r) of the background [Ω].

Source

pub fn background(&self) -> Medium

The background medium (lossless).

Source

pub fn with_background(self, eps_r: f64, mu_r: f64) -> Result<Self>

Evaluates the far field in the lossless background eps_r, mu_r (changes k and η; the recorded near fields are kept).

§Errors

Error::Invalid unless both values are positive and finite.

Source

pub fn center(&self) -> [f64; 3]

The phase centre [m] (default: the box centre).

Source

pub fn with_center(self, c: [f64; 3]) -> Self

Uses c [m] as phase centre (changes only the far-field phases).

Source

pub fn mirrors(&self) -> &[Mirror]

The mirror planes.

Source

pub fn with_mirror(self, m: Mirror) -> Result<Self>

Adds an infinite mirror plane (see Mirror); faces lying on it are ignored from then on.

§Errors

Error::Invalid if a mirror normal to the same axis exists, or if the plane cuts through the box.

Source

pub fn far_field(&self, k: usize, theta: f64, phi: f64) -> FarField

The far field towards (theta, phi) [rad] at frequency index k.

§Panics

If k is out of range.

Source

pub fn pattern(&self, k: usize, dirs: &[(f64, f64)]) -> Vec<FarField>

Far fields at the directions dirs ((θ, φ) pairs [rad]).

Source

pub fn cut_theta(&self, k: usize, phi: f64, thetas: &[f64]) -> Vec<FarField>

θ cut at fixed phi: far fields at thetas [rad].

Source

pub fn cut_phi(&self, k: usize, theta: f64, phis: &[f64]) -> Vec<FarField>

φ cut at fixed theta: far fields at phis [rad].

Source

pub fn radiation_intensity(&self, k: usize, theta: f64, phi: f64) -> f64

Radiation intensity U(θ, φ) (with the background’s η).

Source

pub fn radiated_power(&self, k: usize) -> f64

Radiated power: the Poynting flux ½ Re ∮(E × H*)·n̂ dS out of the box (of the real half-space with mirrors) at frequency index k.

Source

pub fn radiated_power_far(&self, k: usize, n_theta: usize, n_phi: usize) -> f64

Radiated power from the far field: ∮ U dΩ over the sphere (the real half-space with mirrors), midpoint rule with n_theta × n_phi directions.

Source

pub fn directivity(&self, k: usize, theta: f64, phi: f64) -> f64

Directivity 4πU/P_rad towards (θ, φ), with the box flux radiated_power.

Source

pub fn gain(&self, k: usize, theta: f64, phi: f64, accepted_power: f64) -> f64

Gain 4πU/P_acc towards (θ, φ) for the accepted power accepted_power (same normalisation, e.g. PortResult::accepted_power of the feeding port at the same frequency).

Source

pub fn max_directivity(&self, k: usize) -> MaxDirectivity

The maximum of the directivity over the real directions: a 5° scan refined twice (to ≈ 0.05°) around the best direction.

Trait Implementations§

Source§

impl Clone for Nf2ffResult

Source§

fn clone(&self) -> Self

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 Nf2ffResult

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.