package owl-ode

  1. Overview
  2. Docs

The Types module provides some common types for Owl_ode ODEs integrators.

type tspec =
  1. | T1 of {
    1. t0 : float;
    2. duration : float;
    3. dt : float;
    }
    (*

    The T1 constructor allow to specify the initial and final integration time, in the sense that the solver starts with t=t0 and integrates until it reaches t=t0+duration, and the timestep dt. This last parameter is ignored by the adaptive methods.

    *)
  2. | T2 of {
    1. tspan : float * float;
    2. dt : float;
    }
    (*

    The T2 constructor allow to specify a tuple (t0, tf) of the initial and final integration time, in the sense that the solver starts with t=t0 and integrates until it reaches t=tf, and the timestep dt. This last parameter is ignored by the adaptive methods.

    *)
  3. | T3 of float array
    (*

    The T3 constructor is currently unsupported and may change or disappear in the future.

    *)

Time specification for the ODE solvers.

module type Solver = sig ... end

Any solver compatible with Owl_ode.Ode.odeint has to comply with the Solver type. You can use this to define completely new solvers, as done in the owl-ode-sundials or ocaml-cviode libraries, or to customize pre-existing solvers (see the van_der_pol example for one such cases).

OCaml

Innovation. Community. Security.