Tecform
tecform is a post-processor which constructs a file for input to a visualization program. tecform can be used to view a grid and its associated patch system or components, to check the validity of a boundary condition (*.bcs) file applied to a particular grid, or the component file (*.comp), or to view a computed solution on a surface grid or in the interior volume grid.
Beginning with Version 5.0, input mesh file formats include:
1: Formatted *.mcell.form files (ASCII) (not recommented)
2: Unformatted *.mcell.unf or *.mcell files (default)
3: Binary *.ugrid mesh files
There are 4 supported output file formats:
1: *.dat ASCII files for tecplot
2: *.plt binary files for tecplot (also readable by Paraview)
3: *.szplt binary files for tecplot (newer more efficient tecplot format)
4: *.vtu files for Paraview
Additionally, formats (5) for Ensight and (6) for Fieldview are still available but no longer fully supported, as these applications now accept other file formats.
The *.plt and *.szplt binary tecplot files require the source code to be linked to the tecio library, which is included in distributed executables of teform. For source code compilation in cases where this library is not available, the tecform makefile provides a compile option which omits linking the library, while disabling the binary file output option. This is achieved by setting the TECIO variable in the makefile as TECIO = TECIO_OFF. When TECIO = TECIO_ON is specified, the tecio library will be linked. In this case, the location of the library must be specified in the TECLIB makefile variable.
Surface or volume files can be generated with tecform. For surface plot files, multiple zones can be created using the No. Of Zones parameter. Surface zones can be created based on all patches in the mesh (-1.0), all boundary conditions specified in a *.bcs file (0.0), all components specified in a *.comp file (-2.0), or all bodies specified in a *.comp file (-3.0).
For volume plots, two zones are created for a mixed element mesh, one for all tetrahedral elements and a second zone for all other element types. The exception is for the *.szplt and *.vtu file formats, where a single zone is created for all element types. Alternatively, a single zone file can be created for all tetrahedral elements only, or all other element types for all output formats. (see Line 13 parameter)
A sample input file for tecform is given below:
- Line 1: A title describing the particular case. This title is written to the TECPLOT binary (only) files and appears in the TECPLOT window when the file is read in.
- Line 3: Name of grid input file, this can be a *.mcell or *.ugrid file. (mixed element unstructured grid cell files). Format should be 2.0 for a mixed element unstructured grid mcell (unformatted fortran) file, Format = 3.0 is used for ugrid (binary) files. The format parameter can be OMITTED and the file format will be automatically detected from the file extension name. Note that *.lb8.ugrid (little endian) and *.b8.ugrid (big endian) files can both be read in, although tecform must be recompiled for the correct endian format of these respective files, or the appropriate ENV runtime variable must be used, if available. *.r8.ugrid files are also supported under the same conditions. Format -2.0 can still be used for old obsolete tetrahedral-only cell files.
- Line 5: Name of NSU3D restart file. Format should be 2.0. If only viewing grid and no solution or restart file is available, this file name can be skipped or replaced with "none" and also by specifying 0.0 plot variables on Line 13, and deleting lines 17 through 21.
- Line 7: Name of output file to be written. The following output format options are available:
IFORM=1.0 : *.dat Formatted Tecplot ASCII file
IFORM=2.0 : *.plt Binary Tecplot file (also readable by Paraview)
IFORM=3.0 : *.szplt Improved Binary Tecplot file
IFORM=4.0 : *vtu Binary file(s) for Paraview
IFORM=5.0 : Ensight files (available but no longer supported)
IFORM=6.0 : Fieldview Files (available but no longer supported)
Automatic Selection: If the output filename includes the appropriate suffix (i.e. *.plt, *.vtu) the filename will not be changed. Otherwise the suffix for the generated file type will be appended. This allows the user to specify a generic output file name and control the file type through the FORMAT parameter.
- Line 13: For surface plot only use 1.0, for a volume plot set equal to 2.0. Surface plots are most often used due to the much smaller amount of data. Surface plots can be divided up into multiple zones (see line 23). Volume plots are treated as a single zone for *.szplt and *.vtu output files, or two zones for *.dat and *.plt output files which include a separate zone for tetrahedral elements and other element types. Alternatively, a single zone containing only tetrahedral elements or other element types can be obtained by specifying values 3.0 and 4.0, respectively, for all output formats.
- Line 16: This is the number of variables to be output for plotting. There can be a maximum of 9 variables, and a minimum of 0 variables. The number of lines under the heading of Line 17 (lines 18 through 21 in this case) must be equal to the specified number of plotting variables. In the event that no plotting variables are desired, this value can be set to 0.0, and lines 17 through 21 can be omitted. In this case, no solution/restart file is read in.
- Lines 18 - 21: Specify plotting variables. Number of lines must be same as stated number of variables on Line 16. IPLOT value is a dummy counter. Variable name must be selected from one of the following: density, rhou, rhov, rhow, energy, mach, cp, cptotal, entropy, STANDARD (or standard) and dummy. The first five of these names correspond to the values in the five locations in the solution/restart file (usually conserved variables). The next four variables are computed from these variables within tecform. Specifying STANDARD will use the names and values as they appear directly in the restart file with no modifications. Dummy sets all values to 1.0 for testing purposes. Note that for restart.aux.unf solution input files (which contain predefined values), the input values are never modified and the listed names in the tecform input file are ignored. Tecform lists the output variable names at the end of execution to std out.
- Line 23: Number of zones for surface plotting. Most often, one of the following options will be used:
NZONE = -3.0: Create zones based on Bodies defined in *.comp file (listed on Line 24)
NZONE = -2.0: Create zones based on components defined in *.comp file (listed on Line 24)
NZONE = -1.0: Create zones based on patches listed in original mesh file read in on Line 3
NZONE = 0.0: Create zones based on boundary conditions assigned by *.bcs file (listed on Line 24)
Zones based on patches (-1.0) can be used to visually set boundary conditions or components/bodies as sets of patches.
The other options can be used to check the validity of the *.bcs or *.comp files created to define boundary conditions and components prior to running the flow solver. Note that for components or bodies, if a *.comp file is not found, the component/body definition contained in the *.mcell file will be used. *.ugrid files do not contain component information and thus will default to a single component if no component file is found.
Alternatively, a positive > 0 NZONE value can be set and the zones can be specified as a collection of patches following the same format as the *.comp file. (see example below from old format (V4) documentation). However, this will only define zones for the tecplot output file, and will not modify the mesh file or be used in the flow solver runs.
For volume plotting this entry and all subsequent lines are not read in.
For previous version documentation click
here ((tecform V4 and older)