Skip to main content

WdfRoot

Trait WdfRoot 

pub trait WdfRoot {
    // Required method
    fn process(&mut self, incident: f64, port_resistance: f64) -> f64;
}
Expand description

Nonlinear root element that terminates the WDF tree.

These elements solve implicit equations (typically via Newton-Raphson) to determine the reflected wave from the incident wave and port resistance.

Required Methods§

fn process(&mut self, incident: f64, port_resistance: f64) -> f64

Solve for reflected wave given incident wave a and port resistance rp.

The WDF constraint is: b = a - 2*Rp*i(v) where v = (a+b)/2. Implementation uses Newton-Raphson bounded to fixed iterations for RT safety.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§