CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Main CFD Forum (
-   -   3d spline interpolation (

Matthias January 7, 2002 05:38

3d spline interpolation
Dear all,

I have to implement a soubroutine which interpolates the 3d velocity field {u, v, w} from a not equal spaced grid 1 to grid 2 where h is the grid size and h_1 smaller than h_2. In order to ensure a high order of accuracy I would like to use a spline interpolation. But I could not found the mathematics for the 3d approximation. Also google can not help me satisfactory. Has anybody the mathematics for me or can refer to a book. Thanks in advance.


andy January 7, 2002 07:35

Re: 3d spline interpolation
Numerical Recipes is an online book with a reasonable chapter on interpolation and associated routines:

John January 8, 2002 07:00

Re: 3d spline interpolation
If you have access to it, the NAG Fortran library may be of use.

Li Yang January 8, 2002 08:15

Re: 3d spline interpolation
Dear Andy,

I have checked the Numerical Recipes on-line book, namely Chapter 3. It seems that it did not provide much useful information.

For a 3d flow field interpolation as required when using Chimera grid, it will need a transformation of the cells to a rectangular one before the interpolation can be done.

I also would like to have one such kind of subroutine as this kind of interpolation may be needed any time. It is certainly a waste of time if everyone has to implement such kind of subroutine on his own.



andy January 8, 2002 11:21

Re: 3d spline interpolation
My understanding of interpolation on overlapping grids (I have not done any myself) is that the form of the interpolation is very important in order to preserve conservation of integrated quantities between the two grids. I doubt that looking for general purpose interpolation routines is going to be a wise move.

To be a bit more constructive I am aware that Los Alamos did some work in this area in the late 80s/90s. They publicly released a fair amount of code and published a paper or two on the form of interpolation they used. Curiously the group seems to be at Livermore now:

Unfortunately, the most relevant publication does not seem to be online.

Ist January 11, 2002 01:44

Re: 3d spline interpolation
Please use MATLAB tool to make 1D, 2D and 3D interpolation by spline or cubic. for 3D ==> interp3 Ok.

Ist January 11, 2002 01:47

Re: 3d spline interpolation

All times are GMT -4. The time now is 11:31.