Preprocessing with ConvertIt.

  1. Introduction to ConvertIt
  2. Commands Line Arguments
  3. Required Input Files
  4. Output Files
  5. Sample Script

Back to MB_CNS Contents Page

Introduction to ConvertIt

ConvertIt is a utility to convert grid files generated with scriptit/mb_prep to grid files in Plot3D format. A grid file in Plot3D format can be directly processed by the GASP grid manager (GASP is a commercial CFD code used within the Department). The convertit utility also generates a Tecplot file which can be graphically viewed.

ConvertIt accepts a two-dimensional grid and converts it to a two-dimensional or axisymmetric grid with a finite thickness (i.e. two planes of gird points in the out of plane direction). The thickness direction is specified by the user.

ConvertIt is run as a command line program and uses command-line arguments to configure the output grid. It requires the .bez file and .g file generated by scriptit and mb_prep respectively.

Commands Line Arguments.

-f base_file_name
Enter the base file name of the .bez and .g files. This command line argument must be supplied for the utility to function.
-2d / -axi
Enter the desired argument for a two-dimensional or axi-symmetric grid. The default argument is -2d. The axisymmetric grid is composed of a pi/40 arc.
-i / -j / -k
Enter the desired argument for the out of plane direction. The default argument is -k.

Required Input Files.

base_file_name.bez
The Bezier file describes the geometry of the flow domain. This file can be generated by using scriptit .
base_file_name.g
The two-dimensional grid file generated by running mb_prep.

Output Files.

base_file_name.p3da
The Plot3d grid file can be directly viewed with Plot3D and pre-processed with the GASP grid manager.
base_file_name.plt
The Tecplot file can also be used to display the converted grid.

Sample Script.

This is an example of a script that might be used to generate a grid file for GASP (note that all executables must be in the users search path for this script to work).
scriptit.exe < sod2.sit > sod2.log
mb_prep.exe -f sod2
convertit.x -f sod2 -j -axi
rm *.s0 *.p *.log *.bez *.g
gridmgr -c -i sod.p3da -o sod.grd

Back to top of page.
CONVERTIT (C) C. S. Craddock
Last Updated 9-Sep-1999.