ode2

Finite-element second-order ODE solver

ode2.solve_ode2(b, a, f, bcs, extrapolation=None)

Solve a second order ODE.

Parameters
  • b (CubicSpline) – Cubic splines for the given functions in the second order ODE. (See build_neumann for details.) These cubic splines must have identical RTransform objects.

  • a (CubicSpline) – Cubic splines for the given functions in the second order ODE. (See build_neumann for details.) These cubic splines must have identical RTransform objects.

  • f (CubicSpline) – Cubic splines for the given functions in the second order ODE. (See build_neumann for details.) These cubic splines must have identical RTransform objects.

  • bcs – The boundary conditions (See build_neumann for details.)

  • extrapolation (Extrapolation, optional) – The extrapolation object for the returned cubic spline.

Returns

a cubic spline object with the solution that uses the same

RTransform object as the input functions a, b and f.

Return type

output (CubicSpline)