Download Manual

Transcript
PG
Interpolation between meshes
17.3.2
February 2002
17.3.3
Subroutine INTPOLMS
Description
This subroutine interpolates the solution defined on one mesh into a new solution array
defined on another mesh. Information concerning the formal mapping may be stored in
an array denoted by MAP. In this way reuse of the subroutine for other solution vectors
may imply a large gain in computing time.
In fact INTPOLMS is identical to INTMSH, except that it allows the reuse of interpolation information. So for a single interpolation both subroutines are completely
identical.
Heading
subroutine intpolms ( iinmap, kmesh1, kmesh2, kprob1, kprob2,
isol1, isol2, map )
Parameters
INTEGER IINMAP(∗), KMESH1(∗), KMESH2(∗), KPROB1(∗), KPROB2(∗), ISOL1(5),
ISOL2(5), MAP(5)
IINMAP Input array defined by the user.
IINMAP gives some extra information about the interpolation.
Array IINMAP must be filled as follows:
1 Last entry number that has been filled by the user. If the value is 0 or 1 only
defaults are used.
2 infmap, indicates if and how array MAP is used.
Possible values:
0 Array MAP is not used. In this case subroutines INTMSH and INTPOLMS
are identical.
1 Information about the formal mapping is stored in array MAP. It may be
reused in a next call of INTPOLMS, thus reducing the computation time
considerably.
2 Array MAP has been filled before for these two meshes and the information
is reused for the mapping.
Default value : 0
3 minmax, indicates if the interpolation is free (0) or that the interpolated values are restricted to the range of the original array. In that case we get:
uold iun(min) ≤ unew iun ≤ uold iun(max) for each physical unknown iun.
Default value : 0
KMESH1, KMESH2, ISOL1, ISOL2, KPROB1, KPROB2 See subroutine INTMSH
(17.3.1)
MAP Integer array of length 5 that contains information about the mapping. For a
description of array MAP, see Section 24.9.
If infmap = 2 MAP will be filled.
If infmap = 3 MAP must have been filled before by a call to INTPOLMS with
infmap = 2.
Input
The arrays IINMAP, KMESH1, KMESH2, KPROB1, KPROB2 and ISOL1 must have
been filled.
Depending on the value of IINMAP(2) array MAP must have been filled.