Struct JaMagnetizingRoot
pub struct JaMagnetizingRoot {
pub last_iters: usize,
/* private fields */
}Fields§
§last_iters: usizeImplementations§
§impl JaMagnetizingRoot
impl JaMagnetizingRoot
pub fn new(model: JaCoreModel) -> JaMagnetizingRoot
pub fn prepare(&mut self, sample_rate: f64, port_resistance: f64)
pub fn reset(&mut self)
pub fn set_dc_bias_current(&mut self, current: f64)
pub fn set_dc_bias_current(&mut self, current: f64)
Seed the core from a standing primary DC current.
Single-ended output transformers deliberately carry DC through the
primary. Starting a gapped core at (H, M) = (0, 0) and asking the
audio-rate transient solve to find that operating point creates an
artificial startup hit. This initializer solves the static Ampere law
plus the anhysteretic magnetization curve and leaves derivative state
at zero.
pub fn process(&mut self, a: f64) -> f64
pub fn flux_density(&self) -> f64
pub fn state(&self) -> JaState
pub fn model(&self) -> JaCoreModel
pub fn port_resistance(&self) -> f64
Trait Implementations§
§impl Clone for JaMagnetizingRoot
impl Clone for JaMagnetizingRoot
§fn clone(&self) -> JaMagnetizingRoot
fn clone(&self) -> JaMagnetizingRoot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JaMagnetizingRoot
impl RefUnwindSafe for JaMagnetizingRoot
impl Send for JaMagnetizingRoot
impl Sync for JaMagnetizingRoot
impl Unpin for JaMagnetizingRoot
impl UnsafeUnpin for JaMagnetizingRoot
impl UnwindSafe for JaMagnetizingRoot
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