pub struct Inductor {
pub inductance_h: f64,
}Fields§
§inductance_h: f64Implementations§
Source§impl Inductor
impl Inductor
pub fn new(inductance_h: f64) -> Self
pub fn impedance(&self, frequency_hz: f64) -> (f64, f64)
pub fn impedance_magnitude_ohm(&self, frequency_hz: f64) -> f64
pub fn energy_j(&self, current_a: f64) -> f64
pub fn current_rise_a( &self, voltage_v: f64, resistance_ohm: f64, time_s: f64, ) -> f64
pub fn current_decay_a( &self, initial_current_a: f64, resistance_ohm: f64, time_s: f64, ) -> f64
pub fn time_constant_s(&self, resistance_ohm: f64) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Inductor
impl RefUnwindSafe for Inductor
impl Send for Inductor
impl Sync for Inductor
impl Unpin for Inductor
impl UnsafeUnpin for Inductor
impl UnwindSafe for Inductor
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