pub struct FastSlowOscillator<F: IntegrateFloat> {
pub omega_fast: F,
pub epsilon: F,
pub coupling: F,
}Expand description
Example multirate system: fast oscillator coupled to slow drift
Fields§
§omega_fast: FFast frequency
epsilon: FSlow time scale
coupling: FCoupling strength
Trait Implementations§
Source§impl<F: IntegrateFloat> MultirateSystem<F> for FastSlowOscillator<F>
impl<F: IntegrateFloat> MultirateSystem<F> for FastSlowOscillator<F>
Source§fn slow_rhs(
&self,
t: F,
y_slow: ArrayView1<'_, F>,
yfast: ArrayView1<'_, F>,
) -> Array1<F>
fn slow_rhs( &self, t: F, y_slow: ArrayView1<'_, F>, yfast: ArrayView1<'_, F>, ) -> Array1<F>
Evaluate slow component: dy_slow/dt = f_slow(t, y_slow, y_fast)
Source§fn fast_rhs(
&self,
t: F,
y_slow: ArrayView1<'_, F>,
yfast: ArrayView1<'_, F>,
) -> Array1<F>
fn fast_rhs( &self, t: F, y_slow: ArrayView1<'_, F>, yfast: ArrayView1<'_, F>, ) -> Array1<F>
Evaluate fast component: dy_fast/dt = f_fast(t, y_slow, y_fast)
Auto Trait Implementations§
impl<F> Freeze for FastSlowOscillator<F>where
F: Freeze,
impl<F> RefUnwindSafe for FastSlowOscillator<F>where
F: RefUnwindSafe,
impl<F> Send for FastSlowOscillator<F>where
F: Send,
impl<F> Sync for FastSlowOscillator<F>where
F: Sync,
impl<F> Unpin for FastSlowOscillator<F>where
F: Unpin,
impl<F> UnwindSafe for FastSlowOscillator<F>where
F: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more