naginterfaces.library.ode.bvp_coll_nlin_interp¶
- naginterfaces.library.ode.bvp_coll_nlin_interp(x, neq, mmax, comm)[source]¶
bvp_coll_nlin_interp
interpolates on the solution of a general two-point boundary value problem computed bybvp_coll_nlin_solve()
.For full information please refer to the NAG Library document for d02ty
https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/d02/d02tyf.html
- Parameters
- xfloat
, the independent variable.
- neqint
The number of differential equations.
- mmaxint
The maximal order of the differential equations, , for .
- commdict, communication object, modified in place
Communication structure.
This argument must have been initialized by a prior call to
bvp_coll_nlin_setup()
.
- Returns
- yfloat, ndarray, shape
contains an approximation to , for , for . The remaining elements of (where ) are initialized to .
- Raises
- NagValueError
- (errno )
On entry, .
Constraint: .
- (errno )
On entry, .
Constraint: .
- (errno )
On entry, and in
bvp_coll_nlin_setup()
.Constraint: in
bvp_coll_nlin_setup()
.- (errno )
The solver function did not produce any results suitable for interpolation.
- (errno )
The solver function does not appear to have been called.
- (errno )
On entry, and in
bvp_coll_nlin_setup()
.Constraint: in
bvp_coll_nlin_setup()
.
- Warns
- NagAlgorithmicWarning
- (errno )
The solver function did not satisfy the error requirements.
Interpolated values should be treated with caution.
- (errno )
The solver function did not converge to a suitable solution.
A converged intermediate solution has been used.
Interpolated values should be treated with caution.
- Notes
bvp_coll_nlin_interp
and its associated functions (bvp_coll_nlin_setup()
,bvp_coll_nlin_solve()
,bvp_coll_nlin_contin()
andbvp_coll_nlin_diag()
) solve the two-point boundary value problem for a nonlinear mixed order system of ordinary differential equationsover an interval subject to () nonlinear boundary conditions at and () nonlinear boundary conditions at , where . Note that is the th derivative of the th solution component. Hence . The left boundary conditions at are defined as
and the right boundary conditions at as
where and
First,
bvp_coll_nlin_setup()
must be called to specify the initial mesh, error requirements and other details. Then,bvp_coll_nlin_solve()
can be used to solve the boundary value problem. After successful computation,bvp_coll_nlin_diag()
can be used to ascertain details about the final mesh and other details of the solution procedure, andbvp_coll_nlin_interp
can be used to compute the approximate solution anywhere on the interval using interpolation.The functions are based on modified versions of the codes COLSYS and COLNEW (see Ascher et al. (1979) and Ascher and Bader (1987)). A comprehensive treatment of the numerical solution of boundary value problems can be found in Ascher et al. (1988) and Keller (1992).
- References
Ascher, U M and Bader, G, 1987, A new basis implementation for a mixed order boundary value ODE solver, SIAM J. Sci. Stat. Comput. (8), 483–500
Ascher, U M, Christiansen, J and Russell, R D, 1979, A collocation solver for mixed order systems of boundary value problems, Math. Comput. (33), 659–679
Ascher, U M, Mattheij, R M M and Russell, R D, 1988, Numerical Solution of Boundary Value Problems for Ordinary Differential Equations, Prentice–Hall
Grossman, C, 1992, Enclosures of the solution of the Thomas–Fermi equation by monotone discretization, J. Comput. Phys. (98), 26–32
Keller, H B, 1992, Numerical Methods for Two-point Boundary-value Problems, Dover, New York