pub struct Diode<T: Transcendental> { /* private fields */ }Expand description
Diode WDF element (nonlinear, Newton-Raphson solution)
Implementations§
Source§impl<T: Transcendental> Diode<T>
impl<T: Transcendental> Diode<T>
Sourcepub fn new(saturation_current: T, ideality_factor: T, temperature_k: T) -> Self
pub fn new(saturation_current: T, ideality_factor: T, temperature_k: T) -> Self
Create a new diode with Shockley parameters
saturation_current- Reverse saturation current Is (amperes)ideality_factor- Ideality factor n (1-2)temperature_k- Temperature in Kelvin
Sourcepub fn saturation_current(&self) -> T
pub fn saturation_current(&self) -> T
Get saturation current
Sourcepub fn thermal_voltage(&self) -> T
pub fn thermal_voltage(&self) -> T
Get thermal voltage
Sourcepub fn process_incident_vector(
&mut self,
a: ScalarVector4<T>,
) -> ScalarVector4<T>
pub fn process_incident_vector( &mut self, a: ScalarVector4<T>, ) -> ScalarVector4<T>
Process 4 incident waves at once — SIMD vector path with Newton-Raphson.
Trait Implementations§
impl<T: Copy + Transcendental> Copy for Diode<T>
Source§impl<T: Transcendental> WdfElement<T> for Diode<T>
impl<T: Transcendental> WdfElement<T> for Diode<T>
Source§fn port_resistance(&self) -> T
fn port_resistance(&self) -> T
Port resistance
Source§fn process_incident(&mut self, a: T) -> T
fn process_incident(&mut self, a: T) -> T
Process incident wave, return reflected wave
Source§fn update_state(&mut self)
fn update_state(&mut self)
Update internal state (called after wave computation)
Auto Trait Implementations§
impl<T> Freeze for Diode<T>where
T: Freeze,
impl<T> RefUnwindSafe for Diode<T>where
T: RefUnwindSafe,
impl<T> Send for Diode<T>
impl<T> Sync for Diode<T>
impl<T> Unpin for Diode<T>where
T: Unpin,
impl<T> UnsafeUnpin for Diode<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Diode<T>where
T: UnwindSafe,
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