Skip to main content

Verner9FixedStep

Struct Verner9FixedStep 

Source
pub struct Verner9FixedStep { /* private fields */ }
Expand description

Explicit, fifteen-stage, ninth-order, fixed-step, Runge-Kutta method.1

\frac{dy}{dt} = f(t, y)
t_{n+1} = t_n + h
k_1 = f(t_n, y_n)
\cdots

  1. Fixed-step variant of the Verner 9 method. ↩

Trait Implementations§

Source§

impl Debug for Verner9

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Verner9

Source§

fn default() -> Verner9

Returns the “default value” for a type. Read more
Source§

impl<Y, U, V, T> Explicit<Y, U, V, T> for Verner9
where Y: Differentiable<T> + Tensor, Derivative<Y, T>: Mul<Quantity<T>, Output = Y>, for<'a> &'a Y: Mul<Scalar, Output = Y> + Sub<&'a Y, Output = Y>, for<'a> &'a Derivative<Y, T>: Mul<Scalar, Output = Derivative<Y, T>> + Mul<Quantity<T>, Output = Y>, U: TensorVec<Item = Y>, V: TensorVec<Item = Derivative<Y, T>>,

Source§

const SLOPES: usize = 15

Source§

fn integrate( &self, function: impl FnMut(Quantity<T>, &Y) -> Result<Derivative<Y, T>, String>, time: &[Quantity<T>], initial_condition: Y, ) -> Result<(Times<T>, U, V), IntegrationError>

Solves an initial value problem by explicitly integrating a system of ordinary differential equations. Read more
Source§

fn integrate_bounded( &self, function: impl FnMut(Quantity<T>, &Y) -> Result<Derivative<Y, T>, String>, bound: impl FnMut(Quantity<T>, &Y) -> Result<Spectrum<T>, String>, safety: Scalar, time: &[Quantity<T>], initial_condition: Y, ) -> Result<(Times<T>, U, V), IntegrationError>

Solves an initial value problem like integrate, subject to a stability bound. Read more
Source§

impl<T> FixedStep<T> for Verner9

Source§

fn dt(&self) -> Quantity<T>

Returns the time step.
Source§

impl<Y, U, V, T> FixedStepExplicit<Y, U, V, T> for Verner9
where Y: Differentiable<T> + Tensor, Derivative<Y, T>: Mul<Quantity<T>, Output = Y>, for<'a> &'a Y: Mul<Scalar, Output = Y> + Sub<&'a Y, Output = Y>, for<'a> &'a Derivative<Y, T>: Mul<Scalar, Output = Derivative<Y, T>> + Mul<Quantity<T>, Output = Y>, U: TensorVec<Item = Y>, V: TensorVec<Item = Derivative<Y, T>>,

Source§

type Tableau = Tableau

Butcher tableau of this method.
Source§

fn integrate_fixed_step( &self, function: impl FnMut(Quantity<T>, &Y) -> Result<Derivative<Y, T>, String>, time: &[Quantity<T>], initial_condition: Y, ) -> Result<(Times<T>, U, V), IntegrationError>

Source§

fn integrate_fixed_step_bounded( &self, function: impl FnMut(Quantity<T>, &Y) -> Result<Derivative<Y, T>, String>, bound: impl FnMut(Quantity<T>, &Y) -> Result<Spectrum<T>, String>, safety: Scalar, time: &[Quantity<T>], initial_condition: Y, ) -> Result<(Times<T>, U, V), IntegrationError>

Source§

fn integrate_fixed_step_checked( &self, function: impl FnMut(Quantity<T>, &Y) -> Result<Derivative<Y, T>, String>, check: impl FnMut(Quantity<T>, &Y, Quantity<T>) -> Result<(), IntegrationError>, time: &[Quantity<T>], initial_condition: Y, ) -> Result<(Times<T>, U, V), IntegrationError>

Source§

fn step( &self, function: impl FnMut(Quantity<T>, &Y) -> Result<Derivative<Y, T>, String>, y: &Y, t: Quantity<T>, dt: Quantity<T>, k: &mut [Derivative<Y, T>], y_trial: &mut Y, ) -> Result<(), String>

Source§

impl<Y, U> OdeIntegrator<Y, U> for Verner9
where Y: Tensor, U: TensorVec<Item = Y>,

Source§

impl<T> Stacked<T> for Verner9FixedStep

Source§

fn integrate_stacked<X, UX, UV, UA>( &self, function: impl FnMut(Quantity<T>, &X, &Derivative<X, T>) -> Result<Derivative<Derivative<X, T>, T>, String>, time: &[Quantity<T>], initial_position: X, initial_velocity: Derivative<X, T>, ) -> Result<(Times<T>, UX, UV, UA), IntegrationError>
where Self: Explicit<TensorTuple<X, Derivative<X, T>>, TensorVector<TensorTuple<X, Derivative<X, T>>>, TensorVector<Derivative<TensorTuple<X, Derivative<X, T>>, T>>, T>, X: Differentiable<T> + Tensor, Derivative<X, T>: Differentiable<T> + Tensor, UX: TensorVec<Item = X>, UV: TensorVec<Item = Derivative<X, T>>, UA: TensorVec<Item = Derivative<Derivative<X, T>, T>>,

Solves an initial value problem for dynamics, given the acceleration as a function of time, position, and velocity. Read more
Source§

fn integrate_stacked_bounded<X, UX, UV, UA>( &self, function: impl FnMut(Quantity<T>, &X, &Derivative<X, T>) -> Result<Derivative<Derivative<X, T>, T>, String>, bound: impl FnMut(Quantity<T>, &X, &Derivative<X, T>) -> Result<Quantity<T>, String>, safety: Scalar, time: &[Quantity<T>], initial_position: X, initial_velocity: Derivative<X, T>, ) -> Result<(Times<T>, UX, UV, UA), IntegrationError>
where Self: Explicit<TensorTuple<X, Derivative<X, T>>, TensorVector<TensorTuple<X, Derivative<X, T>>>, TensorVector<Derivative<TensorTuple<X, Derivative<X, T>>, T>>, T>, X: Differentiable<T> + Tensor, Derivative<X, T>: Differentiable<T> + Tensor, UX: TensorVec<Item = X>, UV: TensorVec<Item = Derivative<X, T>>, UA: TensorVec<Item = Derivative<Derivative<X, T>, T>>,

Solves an initial value problem like integrate_stacked, subject to a stability bound. Read more
Source§

fn integrate_stacked_coupled<X, Y, UX, UV, UA, UY, UR>( &self, function: impl FnMut(Quantity<T>, &X, &Derivative<X, T>, &Y) -> Result<(Derivative<Derivative<X, T>, T>, Derivative<Y, T>), String>, time: &[Quantity<T>], initial_position: X, initial_velocity: Derivative<X, T>, initial_state: Y, ) -> Result<(Times<T>, UX, UV, UA, UY, UR), IntegrationError>
where Self: Explicit<TensorTuple<TensorTuple<X, Derivative<X, T>>, Y>, TensorVector<TensorTuple<TensorTuple<X, Derivative<X, T>>, Y>>, TensorVector<Derivative<TensorTuple<TensorTuple<X, Derivative<X, T>>, Y>, T>>, T>, X: Differentiable<T> + Tensor, Derivative<X, T>: Differentiable<T> + Tensor, Y: Differentiable<T> + Tensor, UX: TensorVec<Item = X>, UV: TensorVec<Item = Derivative<X, T>>, UA: TensorVec<Item = Derivative<Derivative<X, T>, T>>, UY: TensorVec<Item = Y>, UR: TensorVec<Item = Derivative<Y, T>>,

Source§

fn integrate_stacked_coupled_bounded<X, Y, UX, UV, UA, UY, UR>( &self, function: impl FnMut(Quantity<T>, &X, &Derivative<X, T>, &Y) -> Result<(Derivative<Derivative<X, T>, T>, Derivative<Y, T>), String>, bound: impl FnMut(Quantity<T>, &X, &Derivative<X, T>, &Y) -> Result<Spectrum<T>, String>, safety: Scalar, time: &[Quantity<T>], initial_position: X, initial_velocity: Derivative<X, T>, initial_state: Y, ) -> Result<(Times<T>, UX, UV, UA, UY, UR), IntegrationError>
where Self: Explicit<TensorTuple<TensorTuple<X, Derivative<X, T>>, Y>, TensorVector<TensorTuple<TensorTuple<X, Derivative<X, T>>, Y>>, TensorVector<Derivative<TensorTuple<TensorTuple<X, Derivative<X, T>>, Y>, T>>, T>, X: Differentiable<T> + Tensor, Derivative<X, T>: Differentiable<T> + Tensor, Y: Differentiable<T> + Tensor, UX: TensorVec<Item = X>, UV: TensorVec<Item = Derivative<X, T>>, UA: TensorVec<Item = Derivative<Derivative<X, T>, T>>, UY: TensorVec<Item = Y>, UR: TensorVec<Item = Derivative<Y, T>>,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<A, B, C, I> Component<Coupled<A, B>, Left<I>> for C
where A: Layout, B: Layout, C: Component<A, I>,

Source§

const OFFSET: usize = const OFFSET: usize = C::OFFSET;

Source§

impl<A, B, C, I> Component<Coupled<A, B>, Right<I>> for C
where A: Layout, B: Layout, C: Component<B, I>,

Source§

const OFFSET: usize = const OFFSET: usize = A::STRIDE + C::OFFSET;

Source§

impl<I, X, UX, UV, UA, T> ExplicitDynamics<X, UX, UV, UA, T> for I

Source§

fn integrate( &self, function: impl FnMut(Quantity<T>, &X, &<X as Differentiable<T>>::Derivative) -> Result<<<X as Differentiable<T>>::Derivative as Differentiable<T>>::Derivative, String>, time: &[Quantity<T>], initial_position: X, initial_velocity: <X as Differentiable<T>>::Derivative, ) -> Result<(TensorVector<Quantity<T>>, UX, UV, UA), IntegrationError>

Solves an initial value problem for dynamics, given the acceleration as a function of time, position, and velocity. Read more
Source§

fn integrate_bounded( &self, function: impl FnMut(Quantity<T>, &X, &<X as Differentiable<T>>::Derivative) -> Result<<<X as Differentiable<T>>::Derivative as Differentiable<T>>::Derivative, String>, bound: impl FnMut(Quantity<T>, &X, &<X as Differentiable<T>>::Derivative) -> Result<Quantity<T>, String>, safety: f64, time: &[Quantity<T>], initial_position: X, initial_velocity: <X as Differentiable<T>>::Derivative, ) -> Result<(TensorVector<Quantity<T>>, UX, UV, UA), IntegrationError>

Solves an initial value problem like integrate, subject to a stability bound. Read more
Source§

impl<I, X, Y, UX, UV, UA, UY, UR, T> ExplicitDynamicsCoupled<X, Y, UX, UV, UA, UY, UR, T> for I

Source§

fn integrate_coupled( &self, function: impl FnMut(Quantity<T>, &X, &<X as Differentiable<T>>::Derivative, &Y) -> Result<(<<X as Differentiable<T>>::Derivative as Differentiable<T>>::Derivative, <Y as Differentiable<T>>::Derivative), String>, time: &[Quantity<T>], initial_position: X, initial_velocity: <X as Differentiable<T>>::Derivative, initial_state: Y, ) -> Result<(TensorVector<Quantity<T>>, UX, UV, UA, UY, UR), IntegrationError>

Solves an initial value problem for dynamics coupled to a first-order state, given the acceleration and the rate of the state as a function of time, position, velocity, and state. Read more
Source§

fn integrate_coupled_bounded( &self, function: impl FnMut(Quantity<T>, &X, &<X as Differentiable<T>>::Derivative, &Y) -> Result<(<<X as Differentiable<T>>::Derivative as Differentiable<T>>::Derivative, <Y as Differentiable<T>>::Derivative), String>, bound: impl FnMut(Quantity<T>, &X, &<X as Differentiable<T>>::Derivative, &Y) -> Result<Spectrum<T>, String>, safety: f64, time: &[Quantity<T>], initial_position: X, initial_velocity: <X as Differentiable<T>>::Derivative, initial_state: Y, ) -> Result<(TensorVector<Quantity<T>>, UX, UV, UA, UY, UR), IntegrationError>

Solves an initial value problem like integrate_coupled, subject to a stability bound. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Is<T> for T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.