Creating a grid generating program

Create a grid generating program. In this example we will develop a grid generating program with FORTRAN.

To develop a grid generating program that works together with iRIC, you have to make it use grid generating data file that iRIC generate, for loading grid generation conditions and outputting a grid.

The grid generating data file that iRIC generates is a CGNS file. You can use a library called iRIClib to write code for loading and writing CGNS files.

In this section, We'll explain the procedure to develop a grid generating program that load calculation data file, that iRIC generates.

Creating a grid generating program definition file shows the input and output processing that the grid generating program do against the grid generating data file.

Table 6 The I/O processing flow of grid generating program

Processing

Opens grid generating data file

Initializes iRIClib

Loads grid generating condition

Outputs grid

Closes grid generating data file

In this section, we will develop a grid generating program in the following procedure:

  1. Create a scelton

  2. Adds grid generating data file opening and closing codes

  3. Adds codes to output grid

  4. Adds codes to load grid generating conditions

  5. Adds codes for error handling