3.5.6. horton.grid.ode2
– Finite-element second-order ODE solver¶
-
horton.grid.ode2.
solve_ode2
(b, a, f, bcs, extrapolation=None)¶ Solve a second order ODE.
Arguments:
- b, a, f
- 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.)
Optional arguments:
- extrapolation
- 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.