PINTO, the PHOENICS INTerpolation prOgram, is a stand-alone code of the PHOENICS program that can be used to transfer the results calculated by EARTH on to finer or coarser grids.
PINTO proceeds by interpolation on to the new grid the values of the variables saved by EARTH in the PHI file for the old grid. These variables are those for which the user requested, in the Q1 file, a solution (through SOLVE) or the allocation of storage space (through STORE).
Thus, PINTO can be used to:
PINTO takes its input from a special Q1 file (Q1PIN), which accepts a subset of instructions of the PHOENICS Input Language (PIL) with some extensions.
As an aid to the user, PINTO records its transaction with the command-file Q1PIN in a log file (PINLOG), in which syntactical errors made in the command statements are recorded. The coordinates of the new grid are also written to this file, both for checking and for copying into the Q1 file that will be used for the fine-grid calculation.
PINTO will normally be used in combination with other PHOENICS programs, as follows:
After a PINTO run, it is essential to inspect the PINLOG file for errors. PINTO does not write any error messages to the screen, and the contents of this is therefore the same for successful and erroneous runs.
A flow chart of PINTO is provided below:
Q1
|
SATELLITE
|
EARDAT
|
PREFIX EARTH
| |
PINCON | Q1PIN PHI (or PHIDA)
| Ý | | |
---------------------------------------------
| PINTO |
---------------------------------------------
| Ý
NPHI (or NPHIDA) PINLOG
|
EARTH (or PHOTON)
Q1PIN, input file for PINTO, is similar in concept to the Q1 file used by the SATELLITE, which the reader is assumed to be familiar with.
Q1PIN is divided into 3 groups, as follows:
The set of commands used by PINTO comprises some PIL commands, and some additional ones which are unique to PINTO. As in the PIL, the group structure of PINTO has been conceived just as an aid-memory for the user: PINTO commands do not need to be in the group they belong to.
Unlike the Q1 file, the Q1PIN file does not need to have a special first line (TALK=T;RUN=1,1) of the Q1 file; but the end of the Q1PIN file must be flagged with a STOP command.
Finally, PINTO commands must start in the first or second column of the file; and all other lines are treated as comments.
PINTO language is much more limited than the PIL. Please refer to TR218 for what commands will be recognised by PINTO.
This section describes how to use PINTO to perform the file handling and the grid interpolation.
1. File handling.
The steps in the execution of the file handling are:
Similarly, a PHIDA file produced by EARTH, when PHIDA=T is set in prefix, can be converted to a formatted sequential file, NPHI by modifying the Q1PIN file and replacing LDA=T by LFS=T.
2. Grid interpolation.
The steps in the execution of the grid interpolation are:
The above Q1PIN will interpolate the values obtained for the two-dimensional grid on to the three-dimensional one.