pub trait Antenna {
// Required methods
fn far_field(
&self,
theta: f64,
phi: f64,
frequency: f64,
convention: TimeConvention,
) -> [C64; 2];
fn excitation(&self) -> Excitation;
// Provided methods
fn far_field_pattern(
&self,
domain: Arc<Domain>,
frequency: f64,
convention: TimeConvention,
) -> Result<HarmonicField, ErrorsJSL> { ... }
fn power_grid(&self, _frequency: f64) -> (usize, usize) { ... }
fn radiated_power(&self, frequency: f64) -> f64 { ... }
fn radiation_intensity(&self, theta: f64, phi: f64, frequency: f64) -> f64 { ... }
fn directivity(&self, theta: f64, phi: f64, frequency: f64) -> f64 { ... }
fn peak_directivity(&self, frequency: f64) -> f64 { ... }
fn radiation_resistance(&self, frequency: f64) -> Option<f64> { ... }
fn gain_pattern(
&self,
domain: Arc<Domain>,
frequency: f64,
convention: TimeConvention,
efficiency: f64,
) -> Result<HarmonicField, ErrorsJSL> { ... }
}Expand description
An antenna with an analytic far field.
Required Methods§
Sourcefn far_field(
&self,
theta: f64,
phi: f64,
frequency: f64,
convention: TimeConvention,
) -> [C64; 2]
fn far_field( &self, theta: f64, phi: f64, frequency: f64, convention: TimeConvention, ) -> [C64; 2]
The far field [E_θ, E_φ] in the direction (θ, φ) with e^{-jkr}/r removed (V), per
unit excitation, in vacuum.
Sourcefn excitation(&self) -> Excitation
fn excitation(&self) -> Excitation
What the unit excitation is.
Provided Methods§
Sourcefn far_field_pattern(
&self,
domain: Arc<Domain>,
frequency: f64,
convention: TimeConvention,
) -> Result<HarmonicField, ErrorsJSL>
fn far_field_pattern( &self, domain: Arc<Domain>, frequency: f64, convention: TimeConvention, ) -> Result<HarmonicField, ErrorsJSL>
The far-field pattern as an electric-field container on a far-field domain (spherical basis).
Sourcefn power_grid(&self, _frequency: f64) -> (usize, usize)
fn power_grid(&self, _frequency: f64) -> (usize, usize)
The (θ nodes, φ samples) of the grid used for numerical power integration.
Sourcefn radiated_power(&self, frequency: f64) -> f64
fn radiated_power(&self, frequency: f64) -> f64
The radiated power ∫ |E|² / (2η) dΩ (W) for a unit excitation.
Sourcefn radiation_intensity(&self, theta: f64, phi: f64, frequency: f64) -> f64
fn radiation_intensity(&self, theta: f64, phi: f64, frequency: f64) -> f64
The radiation intensity U = |E|² / (2η) (W/sr) for a unit excitation.
Sourcefn directivity(&self, theta: f64, phi: f64, frequency: f64) -> f64
fn directivity(&self, theta: f64, phi: f64, frequency: f64) -> f64
The directivity 4π U(θ, φ) / P_rad in a direction.
Sourcefn peak_directivity(&self, frequency: f64) -> f64
fn peak_directivity(&self, frequency: f64) -> f64
The peak directivity, searched on a half-degree grid.
Sourcefn radiation_resistance(&self, frequency: f64) -> Option<f64>
fn radiation_resistance(&self, frequency: f64) -> Option<f64>
The radiation resistance 2 P / |I|² (Ω) referred to the unit excitation current, for
current-excited models.
Sourcefn gain_pattern(
&self,
domain: Arc<Domain>,
frequency: f64,
convention: TimeConvention,
efficiency: f64,
) -> Result<HarmonicField, ErrorsJSL>
fn gain_pattern( &self, domain: Arc<Domain>, frequency: f64, convention: TimeConvention, efficiency: f64, ) -> Result<HarmonicField, ErrorsJSL>
The pattern scaled so that |E_θ|² + |E_φ|² equals the directivity times efficiency
(the gain): the normalisation the array signal models expect.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".