d03pzf interpolates in the spatial coordinate the solution and derivative of a system of partial differential equations (PDEs). The solution must first be computed using one of the finite difference schemes d03pcf/d03pca,d03phf/d03phaord03ppf/d03ppa, or one of the Keller box schemes
d03pef,d03pkford03prf.
The routine may be called by the names d03pzf or nagf_pde_dim1_parab_fd_interp.
3Description
d03pzf is an interpolation routine for evaluating the solution of a system of partial differential equations (PDEs), at a set of user-specified points. The solution of the system of equations (possibly with coupled ordinary differential equations) must be computed using a finite difference scheme or a Keller box scheme on a set of mesh points. d03pzf
can then be employed to compute the solution at a set of points anywhere in the range of the mesh. It can also evaluate the first spatial derivative of the solution. It uses linear interpolation for approximating the solution.
4References
None.
5Arguments
Note: the arguments x, m, u, npts and npde must be supplied unchanged from the PDE routine.
1: – IntegerInput
On entry: the number of PDEs.
Constraint:
.
2: – IntegerInput
On entry: the coordinate system used. If the call to d03pzf follows one of the finite difference routines then m must be the same argument m as used in that call. For the Keller box scheme only Cartesian coordinate systems are valid and so mmust be set to zero. No check will be made by d03pzf in this case.
Indicates Cartesian coordinates.
Indicates cylindrical polar coordinates.
Indicates spherical polar coordinates.
Constraints:
following a finite difference routine;
following a Keller box scheme routine.
3: – Real (Kind=nag_wp) arrayInput
On entry: the PDE part of the original solution returned in the argument u by the PDE routine.
Constraint:
.
4: – IntegerInput
On entry: the number of mesh points.
Constraint:
.
5: – Real (Kind=nag_wp) arrayInput
On entry: , for , must contain the mesh points as used by the PDE routine.
6: – Real (Kind=nag_wp) arrayInput
On entry: , for , must contain the spatial interpolation points.
Constraint:
.
7: – IntegerInput
On entry: the number of interpolation points.
Constraint:
.
8: – IntegerInput
On entry: specifies the interpolation to be performed.
The solutions at the interpolation points are computed.
Both the solutions and their first derivatives at the interpolation points are computed.
Constraint:
or .
9: – Real (Kind=nag_wp) arrayOutput
On exit: if , , contains the value of the solution , at the interpolation points , for and .
If , contains and contains at these points.
10: – IntegerInput/Output
On entry: ifail must be set to , or to set behaviour on detection of an error; these values have no effect when no error is detected.
A value of causes the printing of an error message and program execution will be halted; otherwise program execution continues. A value of means that an error message is printed while a value of means that it is not.
If halting is not appropriate, the value or is recommended. If message printing is undesirable, then the value is recommended. Otherwise, the value is recommended. When the value or is used it is essential to test the value of ifail on exit.
On exit: unless the routine detects an error or a warning has been flagged (see Section 6).
6Error Indicators and Warnings
If on entry or , explanatory error messages are output on the current error message unit (as defined by x04aaf).
Errors or warnings detected by the routine:
On entry, , , and .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: or .
On entry, .
Constraint: , or .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, , , and .
Constraint: .
On entry, interpolating point with the value is outside the x range.
An unexpected error has been triggered by this routine. Please
contact NAG.
See Section 7 in the Introduction to the NAG Library FL Interface for further information.
Your licence key may have expired or may not have been installed correctly.
See Section 8 in the Introduction to the NAG Library FL Interface for further information.
Dynamic memory allocation failed.
See Section 9 in the Introduction to the NAG Library FL Interface for further information.