naginterfaces.library.pde.dim1_​parab_​coll_​interp

naginterfaces.library.pde.dim1_parab_coll_interp(u, xbkpts, npoly, xp, itype, comm)[source]

dim1_parab_coll_interp may be used in conjunction with either dim1_parab_coll() or dim1_parab_dae_coll(). It computes the solution and its first derivative at user-specified points in the spatial coordinate.

For full information please refer to the NAG Library document for d03py

https://support.nag.com/numeric/nl/nagdoc_30.1/flhtml/d03/d03pyf.html

Parameters
ufloat, array-like, shape

The PDE part of the original solution returned in the argument by the function dim1_parab_coll() or dim1_parab_dae_coll().

xbkptsfloat, array-like, shape

, for , must contain the break-points as used by dim1_parab_coll() or dim1_parab_dae_coll().

npolyint

The degree of the Chebyshev polynomial used for approximation as used by dim1_parab_coll() or dim1_parab_dae_coll().

xpfloat, array-like, shape

, for , must contain the spatial interpolation points.

itypeint

Specifies the interpolation to be performed.

The solution at the interpolation points are computed.

Both the solution and the first derivative at the interpolation points are computed.

commdict, communication object, modified in place

Communication structure.

This argument must have been initialized by prior calls to dim1_parab_coll() or dim1_parab_dae_coll().

Returns
upfloat, ndarray, shape

If , , contains the value of the solution , at the interpolation points , for , for .

If , contains and contains at these points.

Raises
NagValueError
(errno )

On entry, .

Constraint: or .

(errno )

On entry, , , and .

Constraint: .

(errno )

On entry, , and .

Constraint: .

(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .

(errno )

On entry, and at least one interpolation point coincides with a break-point, i.e., interpolation point no with value is close to break-point with value .

(errno )

On entry, , , and .

Constraint: .

(errno )

Extrapolation is not allowed.

Notes

dim1_parab_coll_interp is an interpolation function for evaluating the solution of a system of partial differential equations (PDEs), or the PDE components of a system of PDEs with coupled ordinary differential equations (ODEs), at a set of user-specified points. The solution of a system of equations can be computed using dim1_parab_coll() or dim1_parab_dae_coll() on a set of mesh points; dim1_parab_coll_interp can then be employed to compute the solution at a set of points other than those originally used in dim1_parab_coll() or dim1_parab_dae_coll(). It can also evaluate the first derivative of the solution. Polynomial interpolation is used between each of the break-points , for . When the derivative is needed (), the array must not contain any of the break-points, as the method, and consequently the interpolation scheme, assumes that only the solution is continuous at these points.