Re: 2D interpolation from trinagular mesh to coarser (arbitrary) triangular
- From: spellucci@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Peter Spellucci)
- Date: Fri, 5 Dec 2008 15:05:51 +0100 (CET)
In article <bc86f4f9-9e21-4a78-ad3b-b532cd54501b@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
tomdylan@xxxxxx writes:
Hello out there!
I am testing an interface between fluid flow (groundwater) and a soil
deformation via FE-method. Due to differences in the constitutive laws
different discretization are requirered within each of the FE
models. Therefore I am looking for a fortran routine/code that will
perform a kind of (linear) interpolation (nearest neighbour, or simple
kriging...) from the
nodal values of the finer mesh on the coarser one.
There are some routines around that interpolate on a regular grid, but
I want an interpolation from the fine trinagular mesh to the coarser
(arbitrary) triangular mesh.
Anybody any hints on where to find a routine that will known read x,y,
value and interpolate on a new x_n, y_n field?
Regards
Tom
a little bit work by yourself and you are done:
http://www.netlib.org/toms/624
has code for continuous piecewise linear interpolation on an arbitrary
triangular grid.
your fine grid will be input1:
interpolate the points of the coarse grid on thta fine grid. there is a routine
which allows you to find the triangle in which a given point lies. then define
a new data set by obtained values on the coarese grid and using this, you can now
interpolate in the coarse grid using these data as input 2, by the same code.
hth
peter
.
- Follow-Ups:
- References:
- Prev by Date: 2D interpolation from trinagular mesh to coarser (arbitrary) triangular
- Next by Date: "Diminution of a Given Smooth Function over Finite Steps ??
- Previous by thread: 2D interpolation from trinagular mesh to coarser (arbitrary) triangular
- Next by thread: Re: 2D interpolation from trinagular mesh to coarser (arbitrary) triangular
- Index(es):
Relevant Pages
|