I struggled some time to write code to output files for tecplot. So this article summerizes the data format.
Tecplot format
Output a plane(1 block)
|
|
Output the whole flow field
|
|
Plot3d format
When treat multiblock problem, I find that tecplot format files are neither efficently nor conveniently. The CFL3D use plot3d format flie. So I read the Plot3d manual and summerize the data file formats.
Extension
- Grid file : .x .xy .xyz .g
- Solution file : .q
- Function file : .f
Also, each file can be formatted or unformatted. For fmt files, substitute (UNIT, *) for (IUNIT), and use the /FORMATTED qualifier with the READ command.
Grid file
Single block
|
|
|
|
multiblock
|
|
Planes file are similar.
Solution Q files (3D, Whole, Unformatted, Multi-Block Grid and Solution)
|
|
Function files (multiblock)
|
|
Boundary condition files
|
|
name files
test.nam (a file giving the names of the variables in the .f file)
NAME FILE is a file for specifying a variable name of a function file and a variable to be a vector. After loading the function file, a dialog box will be displayed asking if you want to load this file, so you can specify there. The format of this file is very simple and you can easily create it manually with your editor (Word pad etc). The file name extension must be. Nam.
■ Format of NAME FILE
We will enter variable names in order from the first line. This corresponds to the order of the variables stored in the FUNCTION file.
For those you want to use as variables for the velocity vector, add a semicolon after the variable name and enter X - Velocity, Y - Velocity, or Z - Velocity. X - Velocity represents the speed vector in the X direction, Y - Velocity represents the velocity vector in the Y direction, and Z - Velocity represents the velocity vector in the Z direction.
■ When there is a
Q file Q The next variable in the file is automatically recognized as a vector variable. In this case, do not set “; * - Velocity” in NAME FILE.
X-momentum
Y-momentum
Z-momentum