Yoshida6
このコンテンツはまだ日本語訳がありません。
Defined in: yoshida.rs:95
pub struct Yoshida6Yoshida 6th-order symplectic integrator.
Composes 7 Störmer-Verlet substeps. 6th-order accuracy with symplectic structure preservation. Cost: 14 force evaluations per step.
Methods
Section titled “Methods”step()
Section titled “step()”fn step<const DIM: usize, S>(&self, system: &S, t: f64, state: &State<DIM, 2>, dt: f64) -> State<DIM, 2> where S: [DynamicalSystem<State = State<DIM, 2>>](../../traits/dynamicalsystem/)
integrate()
Section titled “integrate()”fn integrate<const DIM: usize, S, F>(&self, system: &S, initial: State<DIM, 2>, t0: f64, t_end: f64, dt: f64, callback: F) -> State<DIM, 2> where S: [DynamicalSystem<State = State<DIM, 2>>](../../traits/dynamicalsystem/), F: [FnMut(f64, &State<DIM, 2>)](https://doc.rust-lang.org/std/ops/function/trait.FnMut.html)
Panics
Section titled “Panics”Panics if the arguments cannot produce a terminating
integration, and if a step produces a non-finite state; see
try_integrate for the fallible form.
try_integrate()
Section titled “try_integrate()”fn try_integrate<const DIM: usize, S, F>(&self, system: &S, initial: State<DIM, 2>, t0: f64, t_end: f64, dt: f64, callback: F) -> [Result<State<DIM, 2>, IntegrationError>](https://doc.rust-lang.org/std/result/enum.Result.html) where S: [DynamicalSystem<State = State<DIM, 2>>](../../traits/dynamicalsystem/), F: [FnMut(f64, &State<DIM, 2>)](https://doc.rust-lang.org/std/ops/function/trait.FnMut.html)
Fallible variant of integrate, mirroring
Integrator::try_integrate(crate::Integrator::try_integrate).
integrate_with_events()
Section titled “integrate_with_events()”fn integrate_with_events<const DIM: usize, S, F, E, B>(&self, system: &S, initial: State<DIM, 2>, t0: f64, t_end: f64, dt: f64, callback: F, event_check: E) -> [IntegrationOutcome<State<DIM, 2>, B>](../../enums/integrationoutcome/) where S: [DynamicalSystem<State = State<DIM, 2>>](../../traits/dynamicalsystem/), F: [FnMut(f64, &State<DIM, 2>)](https://doc.rust-lang.org/std/ops/function/trait.FnMut.html), E: [Fn(f64, &State<DIM, 2>) -> ControlFlow<B>](https://doc.rust-lang.org/std/ops/function/trait.Fn.html)