CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   2D-Interpolation (http://www.cfd-online.com/Forums/main/6654-2d-interpolation.html)

Don Tron October 4, 2003 05:14

2D-Interpolation
 
Hi all,

I need to perform two-dimensional interpolation from nonrectangular grid to other nonrectangular grid. Would you help me with algorithm?


xueying October 4, 2003 12:37

Re: 2D-Interpolation
 
2 steps:

1. interpolate nonregular grid values to a regular grid

2. interpolate to get the other nonregular grid values from the regular grid

TPallidum October 4, 2003 13:54

Re: 2D-Interpolation
 
The simplest method is to just do bilinear interpolation from the first nonuniform grid onto the points in the second grid. The algebra is a bit tedious but straightforward. This method doesn't care if the second grid is uniform or not. However, things get much harder if you have special requirements, such as high accuracy, a function that is not smooth, or you need to match some constraint such as conserving mass when you interpolate a density field.

autofly October 30, 2003 04:40

Re: 2D-Interpolation
 
you can try least square in 2d. it can satisfy the accuracy's requirement


All times are GMT -4. The time now is 13:51.