This file provides an example of using the library to represent a grid.
Detailed Description
An example, that includes a description of all the steps needed to begin using this library for your grids.
Follow the following steps to use the library:
Generate a grid file in any one of the following formats:
Default IO format (described in IOFormat)
Pro Engineer generated grid:
Generate the grid in Pro Engineer software.
Mesh the geometry by using "Mesh > Create > Solid > Start"
In MEC STRUCT window, select "Run"
At the bottom of the window, select "Output to file" option and give the file name.
This generates a file. Give this file to gridlock library.
Invoke the domain_init function giving to it all the necessary arguments, and the grid file. If one is using default format for input file, number of cells, faces, etc are given on first line. Provide those to this function call. If using Pro E grid, run the program "ansys" (it is a part of this distribution and gets generated when you build the project by typing make). ansys file_1 file_2 ... This puts the output for each of these grid files in out_1.txt, out_2.txt and so on. The output files are in default input format. Now submit a grid file (in default format using directions given above).
The grid is represented in the domain object. You are all set to manipulate it the way you want, solve PDEs etc.
To view the grid in Gnuplot or Tecplot, use the API s provided. You can also cut the grid across any plane and view the cut faces.