TILER_2D
2D Transfinite Interpolation
TILER_2D
is a FORTRAN90 program which
demonstrates how to
graphically "tile" a 2D box with a repeated pattern, using transfinite interpolation.
The box has been divided into subregions that are not rectilinear,
nor the same size or shape. A simple "tile pattern" of the letter "R"
is used. The program must stretch and twist the pattern to fit into
each subregion. The resulting tiled object is written out as a PostScript
file.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
TILER_2D is available in
a FORTRAN90 version
Related Data and Programs:
BLEND,
a FORTRAN90 library which
carries out the blending operations
demonstrated by TILER_2D.
FRIEZE,
a FORTRAN90 program which
is similar to TILER_2D.
PS_WRITE,
a FORTRAN90 library which
supplies routines used to create a PostScript image of the mapping.
TILER_3D,
a FORTRAN90 program which
does blending in 3D.
Reference:
-
William Gordon, Charles Hall,
Construction of Curvilinear Coordinate Systems and Application to
Mesh Generation,
International Journal of Numerical Methods in Engineering,
Volume 7, pages 461-477, 1973.
-
Joe Thompson, Bharat Soni, Nigel Weatherill,
Handbook of Grid Generation,
CRC Press, 1999.
Source Code:
Examples and Tests:
List of Routines:
-
MAIN is the main program for TILER_2D.
-
BOUNDARY_2D maps a point (U,V) to its corresponding (X,Y) coordinates.
-
BOX_TILER_2D selects one sub-box at a time to be tiled.
-
CH_CAP capitalizes a single character.
-
I4_SWAP swaps two I4's.
-
PS_COLOR_LINE handles the line color.
-
PS_COLOR_LINE_SET sets the line color.
-
PS_COMMENT inserts a comment into the PostScript file.
-
PS_DEFAULT sets the internal settings to their default values
-
PS_FILE_CLOSE closes a PostScript file.
-
PS_FILE_HEAD writes header information to a PostScript file.
-
PS_FILE_OPEN opens a new version of a PostScript file with a given name.
-
PS_FILE_TAIL writes trailer information to a PostScript file.
-
PS_LINE_CLOSED adds the graph of a closed line to a PostScript file.
-
PS_LINE_OPEN adds the graph of a line to a PostScript file.
-
PS_PAGE_HEAD writes header information on a new page.
-
PS_PAGE_TAIL writes tail information at the end of a page.
-
PS_SETTING_INT sets, gets, or prints integer internal PS_WRITE parameters.
-
PS_SETTING_REAL sets, gets, or prints real internal PS_WRITE parameters.
-
R8_SWAP swaps two real values.
-
S_EQI is a case insensitive comparison of two strings for equality.
-
SUB_BOX_TILER_2D "tiles" a sub-box with the given pattern.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
-
TIMESTRING writes the current YMDHMS date into a string.
You can go up one level to
the FORTRAN90 source codes.
Last revised on 05 January 2006.