[][src]Trait peroxide::numerical::ode::ODE

pub trait ODE {
    type Records;
    type Param;
    type ODEMethod;
    fn mut_update(&mut self);
fn integrate(&mut self) -> Self::Records;
fn set_initial_condition<T: Real>(&mut self, init: State<T>) -> &mut Self;
fn set_boundary_condition<T: Real>(
        &mut self,
        bound1: (State<T>, BoundaryCondition),
        bound2: (State<T>, BoundaryCondition)
    ) -> &mut Self;
fn set_step_size(&mut self, dt: f64) -> &mut Self;
fn set_method(&mut self, method: Self::ODEMethod) -> &mut Self;
fn set_stop_condition(&mut self, f: fn(_: &Self) -> bool) -> &mut Self;
fn set_times(&mut self, n: usize) -> &mut Self;
fn check_enough(&self) -> bool; }

ODE solver

  • Records : Type of container to contain results
  • Param : Type of parameter
  • ODEMethod : Explicit or Implicit

Associated Types

type Records

type Param

type ODEMethod

Loading content...

Required methods

fn mut_update(&mut self)

fn integrate(&mut self) -> Self::Records

fn set_initial_condition<T: Real>(&mut self, init: State<T>) -> &mut Self

fn set_boundary_condition<T: Real>(
    &mut self,
    bound1: (State<T>, BoundaryCondition),
    bound2: (State<T>, BoundaryCondition)
) -> &mut Self

fn set_step_size(&mut self, dt: f64) -> &mut Self

fn set_method(&mut self, method: Self::ODEMethod) -> &mut Self

fn set_stop_condition(&mut self, f: fn(_: &Self) -> bool) -> &mut Self

fn set_times(&mut self, n: usize) -> &mut Self

fn check_enough(&self) -> bool

Loading content...

Implementors

impl ODE for ExplicitODE[src]

type Records = Matrix

type Param = f64

type ODEMethod = ExMethod

Loading content...