SMS:Laplacian Interpolation

From XMS Wiki
Jump to navigationJump to search

Laplacian interpolation is an interpolation/extrapolation approach that tries to give smooth gradients between areas of known values. Laplacian interpolation can only be performed on a cell-centered Cartesian grid.

When performing Laplacian interpolation, the values at each scatter vertex are considered known values and assigned to the Cartesian grid cells that they lie within. We will refer to the known locations/values as seed location/values. The seed values are held constant throughout the process. The algorithm assigns the average seed value to every cell in the grid. Once the initial values have been set, the algorithm repeatedly sweeps the grid smoothing the data values. The result gives the seed values at each of their locations and smooth transitions between the values. The algorithm will also extrapolate outside of the original seed values.

For models that distinguish between wet and dry cells (like CMS-Flow), the Laplacian interpolation will only be performed inside of wet (computational) cells. This gives the often desirable effect that the gradients will follow flow-paths. Cells that are nearby but do not have a water connection, will have a greater difference in value than cells that have a water connection. This effect can be seen in the image below.

Laplacian interpolation for salinity values

The picture below is of the same domain but zoomed out so the full domain can be shown. Notice the smooth transitions between distinct values.

Laplacian interpolation for salinity full domain