Tecplot 360 2006 Data Format Guide
Tecplot 360 2006 Data Format Guide
Tecplot 360TMData Format Guide is for use with Tecplot 360TM 2006.
Copyright © 1988-2006 Tecplot, Inc. All rights reserved worldwide. Except for personal use, this manual may not be reproduced, trans-
mitted, transcribed, stored in a retrieval system, or translated in any form, in whole or in part, without the express written permission of
Tecplot, Inc., 3535 Factoria Blvd., Ste 550, Bellevue, Washington, 98006, U.S.A.
The software discussed in this documentation and the documentation itself are furnished under license for utilization and duplication
only according to the license terms. The copyright for the software is held by Tecplot, Inc. Documentation is provided for information
only. It is subject to change without notice. It should not be interpreted as a commitment by Tecplot, Inc. Tecplot, Inc. assumes no liabil-
ity or responsibility for documentation errors or inaccuracies.
Tecplot, Inc
PO Box 52708
Bellevue, WA 98015-2708 U.S.A.
Tel: 1.800.763.7005 (within the U.S. or Canada), 00 1 (425)653-1200 (internationally)
email: sales@tecplot.com, support@tecplot.com
Questions, comments or concerns regarding this documentation: documentation@tecplot.com
For more information, visit http://www.tecplot.com
ENCSA Hierarchical Data Format (HDF) Software Library and Utilities © 1988-1998 The Board of Trustees of the University of Illi-
nois. All rights reserved. Contributors include National Center for Supercomputing Applications (NCSA) at the University of Illinois,
Fortner Software (Windows and Mac), Unidata Program Center (netCDF), The Independent JPEG Group (JPEG), Jean-loup Gailly and
Mark Adler (gzip). Bmptopnm, Netpbm © 1992 David W. Sanderson. Dlcompat © 2002 Jorge Acereda, additions and modifications by
Peter O’Gorman. Ppmtopict © 1990 Ken Yap.
TRADEMARKS
Tecplot®, Tecplot 360TM, PreplotTM, Enjoy the ViewTM, and FramerTM are registered trademarks or trademarks of Tecplot, Inc. in the
United States and other countries.
Encapsulated PostScript, PostScript, Premier are registered trademarks or trademarks of Adobe Systems, Incorporated in the U.S. and/
or other countries. Ghostscript is a registered trademark of Aladdin Enterprises in the U.S. and/or other countries. Linotronic, Helvetica,
Times are registered trademarks or trademarks of Allied Corporation in the U.S. and other countries. AutoCAD, DXF are registered
trademarks or trademarks of Autodesk, Incorporated in the U.S. and other countries. Élan License Manager is a trademark of Élan Com-
puter Group, Incorporated in the U.S. and/or other countries. DEC, Digital, LaserJet, HP-GL, HP-GL/2, PaintJet are registered trade-
marks or trademarks of Hewlett-Packard Company in the U.S. and other countries. X-Designer is a registered trademark or trademark
of Imperial Software Technology in the U.S. and/or other countries. Builder Xcessory is a registered trademark or trademark of Inte-
grated Computer Solutions, Incorporated in the U.S. and other countries. IBM, RS6000, PC/DOS are registered trademarks or trade-
marks of International Business Machines Corporation in the U.S. and/or other countries. Bookman is a registered trademark or
trademark of ITC Corporation in the U.S. and/or other countries. VIP is a registered trademark or trademark of Landmark Graphics
Corporation in the U.S. and/or other countries. X Windows is a registered trademark or trademark of Massachusetts Institute of Tech-
nology in the U.S. and/or other countries. ActiveX, Excel, MS-DOS, Microsoft, Visual Basic, Visual C++, Visual J++, Visual Studio,
Windows, Windows Metafile are registered trademarks or trademarks of Microsoft Corporation in the U.S. and/or other countries. HDF,
NCSA are registered trademarks or trademarks of National Center for Supercomputing Applications in the U.S. and/or other countries.
UNIX, Motif are registered trademarks or trademarks of Open Software Foundation, Incorporated in the U.S. and other countries. Grid-
gen is a registered trademark or trademark of Pointwise, Incorporated in the U.S. and/or other countries. Eclipse, FrontSim are regis-
tered trademarks or trademarks of Schlumberger, Limited in the U.S. and/or other countries. IRIS, IRIX, OpenGL are registered
trademarks or trademarks of Silicon Graphics, Incorporated in the U.S. and/or other countries. Solaris, Sun, Sun Raster are registered
trademarks or trademarks of Sun MicroSystems, Incorporated in the U.S. and/or other countries. All other product names mentioned
herein are trademarks or registered trademarks of their respective owners.
Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in subparagraphs (a) through (d) of the
Commercial Computer-Restricted Rights clause at FAR 52.227-19 when applicable, or in subparagraph (c)(1)(ii) of the Rights in Tech-
nical Data and Computer Software clause at DFARS 252.227-7013, and/or in similar or successor clauses in the DOD or NASA FAR
Supplement. Contractor/manufacturer is Tecplot, Inc., Post Office Box 52708, Bellevue, WA 98015-2708.
06-360-15-1
Rev 03/2006
Chapter 1 Best Practices................................................. 5
Create Binary Data Files instead of ASCII ..................................... 5
Use Block Format instead of Point Format..................................... 6
Use the Native Byte Ordering for the Target Machine ................... 6
Add Auxiliary data to Preset Variable Assignments in Tecplot ...... 6
Data Sharing.................................................................................... 6
Passive Variables ............................................................................. 6
3
4
Create Binary Data Files instead of ASCII
Tecplot can read in data produced in many different formats, one of which is its own native format.
Users who wish to generate native Tecplot data files automatically from applications such as com-
plex flow solvers have a number of options for what to put in the file and how it is made. This sec-
tion outlines a few "best practices" for writing Tecplot data files.
There are some cases where ASCII files are preferred. Create ASCII files when:
• Your application runs on a platform for which the TECIO library is not pro-
vided. Even if this is the case, please contact Tecplot Inc. There may be a way
to resolve this issue.
5
1 - 2 Use Block Format instead of Point Format
Block format is by far the most efficient format when it comes to loading the file into Tecplot. If
your data files are small and you can only obtain the data in a point-like format in (like a spread-
sheet), then using point format is acceptable.
1 - 5 Data Sharing
Share variables whenever possible. Variable sharing is commonly used for the spatial variables
(X, Y, and Z) when you have many sets of data that use the same basic grid. This saves both disk
space and space when loaded into Tecplot. In addition, the benefits are compounded with scratch
data derived from these variables because it is also shared within Tecplot. See also Data Sharing in
the Tecplot 360 User’s Manual.
1 - 6 Passive Variables
Tecplot can manage many datasets at the same time. However, within a given dataset you must sup-
ply the same number of variables for each zone. In some cases you may have data where there are
many variables and, for some of the zones some of those variables are not important. If that is the
6
Passive Variables
case you can make selected variables in selected zones passive. A passive variable is one that will
always return the value zero if queried (like in a probe) but will not involve itself in operations like
the calculations of the min and max range. This is very useful when it comes to calculating such as
default contour levels.
7
8
ASCII Data File Records
This chapter discusses how to format data so data files may be loaded directly into Tecplot. Data
files read by Tecplot may be binary or ASCII. The following sections describe the format of ASCII
data files. Reading an ASCII data file into Tecplot can be much slower than reading a binary data
file, as binary data files take up less disk space and Tecplot must convert from ASCII to binary.
Tecplot or Preplot converts ASCII data files to binary. See Tecplot Format Data File Loading in the
Tecplot 360 User’s Manual for converting with Tecplot, or Section 2- 4.2, “ASCII Data File Con-
version to Binary,”for converting with Preplot. Documentation on the binary format is included as
comments in the Preplot source code (located in TEC360HOME/Util/preplot). Finally, if your data
is generated in FORTRAN or C, you may be able to generate binary data files directly using the
utilities described in 3, “Binary Data,”.
You can also load data generated by, or tabulated in, other software packages. In addition, data
loaders using Tecplot’s Add-on Developer’s Kit (ADK) are available from Tecplot. These convert
data from a number of software packages into a Tecplot-readable format. (This is described in
Data Loaders in the Tecplot 360 User’s Manual) Using ADK, you can write loaders of your own.
The first line in a zone, text, geometry, custom label, or data set auxiliary data record begins with
the keyword ZONE, TEXT, GEOMETRY, CUSTOMLABELS, DATASETAUXDATA, or VARAUX-
DATA. The maximum length of a line in a data file is 4,000 characters (unless you edit and recom-
pile the Preplot source code). Any line may be continued onto one or more following lines (except
for text enclosed in double quotes ["]). Double quotes must be used to enclose character strings
with embedded blank spaces or other special characters. A backslash (\) may be used to remove
the significance of (or escape) the next character (that is, \" produces a single double-quote). Any
line beginning with an octothorp (#) is treated as a comment and ignored.
The following simple example of a Tecplot ASCII data file has one small zone and a single line of
text:
9
TITLE="Simple Data File"
VARIABLES="X" "Y"
ZONE I=4 F=POINT
1 1
2 1
2 2
1 2
TEXT X=10 Y=90 T="Simple Text"
The format of the ASCII data file is summarized in Section , “Summary of Data File Records”.
File Header
In the file header of your data file, you may specify an optional title that is displayed in the headers
of Tecplot frames. The title line begins with TITLE=, followed by the title text enclosed in double-
quotes. You may also assign a name to each of the variables by including a line that begins with
VARIABLES=, followed by each variable’s name enclosed in double quotes. The quoted variable
names should be separated by spaces or commas. Tecplot calculates the number of variables (N)
from the list of variable names. If you do not specify the variable names (and your first zone has
POINT data packing), Tecplot sets the number of variables equal to the number of numeric values
in the first line of zone data for the first zone, and names the variables V1, V2, V3, and so forth.
Initially, Tecplot uses the first two variables in data files as the X- and Y-coordinates, and the third
variable for the Z-coordinate of 3D plots. You may, however, order the variables in the data file any
way you want, since you can interactively reassign the variables to the X-, Y-, and or Z-axes using
Tecplot dialogs.
Dataset and variable auxiliary data is added to the datafile using the DATASETAUXDATA and
VARAUXDATA records. Auxiliary data are name/value pairs that a user can specify and then use
in Tecplot with dynamic text, equations, macros, or add-ons. Multiple auxiliary data can be added
at the dataset level as follows:
DATASETAUXDATA SampleNumber=”5”
DATASETAUXDATA AOA=”5.7”
Variable auxiliary data is added to Tecplot on a per variable basis. Like dataset auxiliary data multi-
ple items can be added for each variable:
VARAUXDATA 1 MyData=”Hello”
VARAUXDATA 1 MoreData=”World”
VARAUXDATA 2 MyData=”More information”
VARAUXDATA 2 MoreData=”hi mom”
VARAUXDATA 2 MyExtraData=”Some extra data”
10
ASCII Data File Records
The variable number with which the auxiliary data is associated immediately follows the
VARAUXDATA record. Also note that the data associated with a particular auxiliary data name are
unique for each variable. Therefore the same named item can be added to each variable if desired.
Conversely a particular auxiliary data item can be added to only one variable.
If the file header occurs in a place other than at the top of the data file, a warning is printed and the
header is ignored. This allows you to concatenate two or more ASCII data files before using Tec-
plot (provided each data file has the same number of variables per data point).
Zone Records
A zone record consists of a control line that begins with the keyword ZONE followed by a set of
numerical data called the zone data. The format of the zone control line is shown in Section , “Sum-
mary of Data File Records”.
The ZONETYPE Parameter. The zone data are of the type specified by the ZONETYPE
parameter in the control line. There are two basic types of zones: ordered and finite-element.
Ordered zones have the formats ZONETYPE=ORDERED. Finite-element zones have the specific
ZONETYPE of FELINESEG, FETRIANGLE, FEQUADRILATERAL, FETETRAHEDRON, or
FEBRICK. ORDERED is presumed if the ZONETYPE parameter is omitted. See Section 2 - 3,
“Ordered Data,”for more information on ordered zones, and Section 2 - 4, “Finite-Element
Data,”for details on finite-element data.
The DATAPACKING Parameter. The zone data packing is specified by the DATAPACK-
ING parameter in the control line. There are two data packing options: POINT and BLOCK.
In POINT format, the values for all variables are given for the first point, then the second point, and
so on. In BLOCK format, all of the values for the first variable are given in a block, then all of the
values for the second variable, then all of the values for the third, and so forth. Zones with cell-cen-
tered data must use BLOCK data packing. More detail on this is given below.
POINT Format Example. If you have only one zone of data in POINT data packing format,
and it is one-dimensional (that is, JMax=1, KMax =1), you may omit the zone control line. If you
want Tecplot to determine the number of variables, you may create a data file with only the zone
data, such as the following:
12.5 23 45 1.
14.3 24 46 2.
12.2 24 50 3.
13.3 26 51 4.
13.5 27 55 5.
11
Tecplot calculates the number of data points (IMax) in the zone by assuming that each row repre-
sents a data point and each column represents a variable, and creates an I-ordered zone. This type of
structure is good for XY-plots and scatter plots. If there are multiple zones, two- or three-dimen-
sional zones, finite-element zones, or BLOCK-format zone data, you must include a zone control
line at the beginning of each zone record.
Data Types. Each variable in each zone in the data file may have its own data type. Tecplot sup-
ports the following six data types:
• BIT
The data type determines the amount of storage Tecplot assigns to each variable. Therefore, the
lowest level data type should be used whenever possible. For example, imaging data, which usually
consists of numerical values ranging from zero to 255, should be given a data type of BYTE. By
default, Tecplot treats numeric data as data type SINGLE. If any variable in the zone uses the BIT
data type, the zone format must be BLOCK or FEBLOCK; you cannot use POINT or FEPOINT for-
mat.
Variable Location. Each variable in each zone in a data file may be located at the nodes or the
cell-centers. Each variable is specified as NODAL or CELLCENTERED in the VARLOCATION
parameter array, located in the control line. The format is:
VARLOCATION=([set-of-vars]=var-location,[set-of-vars]=var-
location, ...)
where set-of-vars is the set of the variables and var-location is either NODAL or CELLCENTERED.
Variables omitted from the list are assumed to be NODAL. For example:
VARLOCATION=([3-7,10]=CELLCENTERED, [11-12]=CELLCENTERED)
specifies that variables 3 through 7, 10, 11 and 12 are cell-centered and all other variables are, by
default, nodal for this zone.
12
ASCII Data File Records
All cell-centered variables must list one value for each element. With nodal variables, one value
must be listed for each node. Zones with cell-centered variables must be in BLOCK data packing
format.
Data Lists. Numerical values in zone data must be separated by one or more spaces, commas,
tabs, new lines, or carriage returns. Blank lines are ignored. Integer (101325), floating point
(101325.0), and exponential (1.01325E+05) numbers are accepted. To repeat a particular
number in the data, precede it with a repetition number as follows: “Rep*Num,” where Rep is the
repetition factor and Num is some numeric value to be repeated. For example, you may represent 37
values of 120.5 followed by 100 values of 0.0 as follows:
37*120.5, 100*0.0
Zone Auxiliary Data. Auxiliary data strings associated with the current zone are specified
with AUXDATA parameter in the control line. This auxiliary data may be used in dynamic text,
equations, macros, or add-ons. Auxiliary data is provided as named strings:
Variable Sharing between Zones. Frequently, some variables are exactly the same for a set
of zones. For example, a series of zones may contain measurement or simulation data at the same
XYZ-locations, but different times. In this case, Tecplot’s memory usage may be dramatically
reduced by sharing the coordinate variables between the zones. The zones that variables are shared
from are specified in the VARSHARELIST in the control line of the current zone. The format is:
VARSHARELIST=([set-of-vars]=zzz, [set-of-vars]=zzz)
where set-of-vars is the set of variables that are shared and zzz is the zone they are shared from. If
zzz is omitted, the variables are shared from the previous zone. For example:
The connectivity list (finite-element only) and face-neighbors may be shared between zones using
the CONNECTIVITYSHAREZONE parameter in the control line of the current zone. The format is:
13
CONNECTIVITYSHAREZONE=nnn
where nnn is the number of the zone that the connectivity is shared from. To use connectivity shar-
ing, the zone must have the same number of points and elements, and be the same zone type.
Face Neighbors. The implicit connections between elements in a zone may be overridden, or
connections between cells in adjacent zones established, using the FACENEIGHBORMODE
parameter and FACENEIGHBORCONNECTIONS list in the control line of the zone.
FACENEIGHBORMODE has four options: LOCALONETOONE, LOCALONETOMANY,
GLOBALONETOONE, and GLOBALONETOMANY. LOCALONETOONE is the default.
The nature of the FACENEIGHBORCONNECTIONS list depends upon the FACENEIGHBORMODE,
described in the table below. To connect the cells along one edge to cells on another edge of the
same zone, use LOCAL. To connect cells of one zone to cells of another zone or zones, use GLO-
BAL. If the points of the cells are exactly aligned with the neighboring cell points, use ONETOONE.
If even one cell face is neighbor to two other cell faces, use ONETOMANY.
In this table, cz is the cell number in the current zone, fz is the number of the cell face in the cur-
rent zone, nc, is the cell number of the neighbor cell in the current zone, oz is face obscuration flag
(zero for face partially obscured, one for face entirely obscured), nz is the number of neighboring
cells for the ONETOMANY options, ncn is the number of the nth local zone neighboring cell in the
list, zr is the remote zone number, cr is the cell number of the neighboring cell in the remote zone,
zrn is the zone number of the nth neighboring cell in the GLOBALONETOMANY list, and crn is
the cell number in the remote zone of the nth neighboring cell in the GLOBALONETOMANY list.
14
ASCII Data File Records
The cz, fz combinations must be unique; multiple entries are not allowed. The face numbers for
cells in the various zone types are defined in Figure 2-1.
f6
f4
f1 f2 f3
f3 f4 f2
f1
f5
Figure 2-1. Examples of brick (left) and tetrahedron (right) face neighbors.
A connection must be specified for two matching cell faces to be effective. For example, for data
with a FACENEIGHBORMODE of GLOBALONETOONE, if cell 6, face 2 in zone 9 should be
connected to cell 1, face 4 in zone 10, the connections for zone 9 must include the line:
1496
Global face neighbors are useful for telling Tecplot about the connections between zones. This
could be used, for example, to smooth out the crease in Gouraud surface shading at zone bound-
aries. For cell-centered data, they can make contours and streamtraces more continuous at zone
boundaries.
Cell numbering. For ordered (IJ or IJK) zones, cell numbers are defined by the index value of
the first node, where Index = I + (J-1)*|MAXI| + (K-1)*|MAXI|*|MAXJ|. Because the number of
nodes in each direction is one greater than the number of cells in that direction, there is no cell to
correspond with the last point in each row. In the example below, there is no cell numbered “3”, yet
the first cell in the second row is numbered “4”. As you define face neighbors, it may help you to
think of a “ghost cell” at the end of each row (where I = MaxI) and at the end of each column in 3D
(where J = MaxJ). If you probe any cell, the Face Neighbor tab of the Probe dialog will show the
correct cell number.
15
Zone Types and Control Lines. As stated above, there are two distinct types of zones:
ordered zones and finite-element zones. Ordered zones are I-, IJ-, and IJK-ordered zones (ZONE-
16
ASCII Data File Records
TYPE=ORDERED). Finite-element zones are FE-line, -surface and -volume zones (ZONETYPE of
FELINESEG, FETRIANGLE, FEQUADRILATERAL, FETETRAHEDRON, and FEBRICK). The
control lines for these zone types differ in the parameters needed. Both zone types can use the C
(color), T (zonetitle), DATAPACKING, VARLOCATION, AUXDATA, and DT (datatype) parameters.
The T parameter specifies a title for the zone. This may be any text string up to 64 characters in
length. If you supply a longer text string, it is automatically truncated to the first 64 characters. The
titles of zones appear in the Zone Style and other dialogs, and, optionally, in the XY- plot legend.
(You can use keywords in the zone titles to identify sets of zones to enable/disable or to change
zone attributes.) The C parameter sets an initial color for the zone. This may be overridden interac-
tively, or by use of a stylesheet. The DT (type1, type2, type3, ...) parameter specifies the data types
for the variables in a zone.
For ordered zones, you may specify the I (IMax), J (JMax), and K (KMax) parameters, which store
the number of data points in the I, J, and K directions. J and K both default to 1. I must be specified
if J is used; I and J must be specified if K is used. If all are omitted, Tecplot assumes an I-ordered
zone and calculates IMax for you.
Note: I and J are not equivalent to either the number of variables or the number of data points. The
number of data points is equal to the product of I, J, and K.
For finite-element zones, described in Section 2 - 4, “Finite-Element Data,”you must specify the N
(numnodes) and may optionally include E (numelements), and or the NV (nodevalue) parameter. If
the E parameter is not specified, Tecplot calculates it from the number of node sets in the connec-
tivity list following the node data. The NV (nodevalue) parameter specifies the number of the vari-
ables representing the “Node” value in finite-element data. The NV parameter is used infrequently,
mostly when the order in which nodes are listed in the data file do not match the node numbering
desired in the plot.
Section 2 - 3, “Ordered Data,” provides examples of zone data in various formats, as well as sample
pieces of FORTRAN code that you can use as templates to print out your own data. Our sample
code is intended only as a general example—the zone data that it produces contains only one value
per line. You may want to modify the code to suit your own needs.
The SOLUTIONTIME Parameter. Each zone can optionally specify a floating point time
value representing it's solution time. Zones can be organized together by associating themselves to
the same STRANDID.
The STRANDID Parameter. Each zone can optionally specify an integer value associating
itself with a particular strand. More than one zone can associate itself with a particular strand and
differentiate itself from other zones by assigning different SOLUTIONTIME values. StrandID's must
17
be positive integer values greater than or equal to 1. By convention strandID's are successive inte-
ger values.
Text Record
Text records are used to import text directly from a data file. Text can also be imported into Tecplot
using a macro file. Text may be titles, labels, or other information. You may create data files
containing only text records and read them into Tecplot just as you would read any other data file.
You may delete and edit text originating from data files just like text created interactively.
The text record consists of a single control line. The control line starts with the keyword TEXT and
has one or more options:
• Use the AN (textanchor) parameter to specify the position of the anchor point
relative to the text. There are nine possible anchor positions, as shown in Figure
2-2.
18
ASCII Data File Records
• Use the HU (heightunits) parameter to assign units for character heights. If the
CS parameter is FRAME, you can set HU to either FRAME or POINT. If the CS
parameter is GRID, you can set HU to either GRID or FRAME.
• Use the H parameter to specify the height; it is measured in the units defined by
the HU parameter.
• To include multiple lines of text in a single text record, include \\n in the text
string to indicate a new line.
• You can assign the line spacing for multi-line text using the LS (linespacing)
parameter. The default value, 1, gives single-spacing. Use 1.5 for line-and-a-
half spacing, 2 for double-spacing, and so on.
Optionally, you may draw a box around the text string using the BX (boxtype) parameter. The
parameters BXO (boxoutlinecolor), BXM (boxmargin), and LT (linethickness) are used if the boxtype
is HOLLOW or FILLED. The parameter BXF (boxfillcolor) is used only if the boxtype is FILLED.
The default boxtype, NOBOX, ignores all other box parameters.
The S (scope) parameter specifies the text scope. GLOBAL scope is the same as selecting the check
box Show in “Like” Frames in the Text Options dialog.
You may also use the ZN (zone) parameter to attach text to a specific zone or XY mapping. For fur-
ther information, see Section 16.1.6.4, "Attaching Text to Zones or X-Y Mapping."
Text Record Examples. You may attach a macro command to the text with the MFC parame-
ter. See Section 21 - 5 “Text and Geometry Links to Macros” on page 434 in the Tecplot 360 User’s
Manual.
Some simple examples of text records are shown below. The first text record specifies only the ori-
gin and the text. The next text record specifies the origin, color, font, and the text. The third text
record specifies the origin, height, box attributes, and text. Note that the control line for the text can
span multiple file lines if necessary (as in the third text record below). The last text record is an
example of using 3D text in Tecplot.
19
TEXT CS=GRID3D, X=0.23,Y=0.23,Z=0.5, T="Well 1"
Geometry Record
Geometry records are used to import geometries from a data file. Geometries are line drawings that
may be boundaries, arrows, or even representations of physical structures. You may create data
files containing only geometry and text records and read them into Tecplot. You may delete and edit
geometries originating from data files just like the geometries that you create interactively.
The geometry record control line begins with the keyword GEOMETRY. Use the CS (coordinatesys)
parameter to specify the geometry coordinate system, either FRAME or GRID. If you specify the
frame coordinate system (the default), the values of the X (xorigin) and Y (yorigin) parameters are
in frame units; if you specify grid coordinates, X and Y are in grid units (that is, units of the physical
coordinate system). For Polar Line plots, you may specify THETA and R for X and Y. X and Y (or
THETA and R) locate the anchor point, or origin, of the geometry, which is the center of a circle or
ellipse, the lower left corner of a square or rectangle, and the anchor point of a polyline. The anchor
point specifies the offset of all the points: if X=1, Y=1, and the first point is (1, 2), and the second
point is (2, 4), then Tecplot draws at (2, 3) (1+1, 2+1) then (3, 5) (2+1, 4+1). In other words, the
points for any geometry are always relative to the specified anchor point. The Z (zorigin) is speci-
fied only for LINE3D geometries, and, since LINE3D geometries are always in grid mode, Z is
always in units of the Z-axis.
Geometry types are selected with the T (geomtype) parameter. The available geometry types are
listed below:
20
ASCII Data File Records
the first). Not specifying the FC (fillcolor) parameter results in a hollow, or outlined, geometry
drawn in the color of the C (color) parameter.
You can control how geometries are drawn using the L (linetype), LT (linethickness), and PL (pat-
ternlength) parameters. You can set L to any of Tecplot’s line patterns (SOLID, DASHED, DOTTED,
DASHDOT, LONGDASH, DASHDOTDOT). You can set LT and PL to any value, using frame units.
The control line of the geometry is followed by geometry data. For SQUARE, the geometry data
consists of just one number: the side length of the square.
For RECTANGLE, the geometry data consists of two numbers: the first is the width (horizontal axis
dimension), and the second is the height (vertical axis dimension).
For CIRCLE, the geometry data is one number: the radius. For ELLIPSE, the geometry data con-
sists of two numbers: the first is the horizontal axis length and the second is the vertical axis length.
For both circles and ellipses, you can use the EP (numellipsepts) parameter to specify the number
of points used to draw circles and ellipses. All computer-generated curves are simply collections of
very short line segments; the EP parameter allows you to control how many line segments Tecplot
uses to approximate circles and ellipses. The default is 72.
For LINE and LINE3D geometries, the geometry data is controlled by the F (format) parameter.
These geometries may be specified in either POINT or BLOCK format. By default, POINT format
is assumed. Each geometry is specified by the total number of polylines, up to a maximum of 50.
Each polyline is defined by a number of points and a series of XY- or XYZ- coordinate points
between which the line segments are drawn. In POINT format, the XY- or XYZ-coordinates are
given together for each point. In BLOCK format, all the X-values are listed, then all the Y-values,
and (for LINE3D geometries) all the Z-values. All coordinates are relative to the X, Y, and Z speci-
fied on the control line. You can specify points in either single or double precision by setting the DT
(datatype) parameter to either SINGLE or DOUBLE.
For LINE geometries, you can specify arrowheads using the AAT (arrowheadattach), AST (arrow-
headstyle), ASZ (arrowheadsize), and AAN (arrowheadangle) parameters. See Section , “Summary of
Data File Records,”for details. These parameters provide the same functionality available when
you create a line geometry interactively.
The S (scope) parameter specifies the geometry’s scope. GLOBAL scope is the same as selecting the
check box Show in Like Frames in the Geometry dialog. See Geometry Details in the Tecplot 360
User’s Manual for details.
You may also use the ZN (zone) parameter to attach geometry to a specific zone or XY-mapping.
21
You may attach a macro command to the text with the MFC parameter. See Text & Geometry Links
to Macos in the Tecplot User’s Manual.
LINE3D geometries must be created in a data file. They may not be created interactively. LINE3D
geometries are always in grid mode. To view LINE3D geometries in Tecplot, your plot type must
be in 3D Cartesian, which requires at least one zone. Thus, a data file with only LINE3D geome-
tries is useful only as a supplement to other data files.
GEOMETRY T=RECTANGLE
40 30
The following geometry record defines an origin and a red circle of 20 radius, with an origin of
(75, 75) that is filled with blue:
22
ASCII Data File Records
The next geometry record defines a purple ellipse with a horizontal axis length of 20 and a vertical
axis length of 10, with an origin of (10, 70), that is filled with yellow.
GEOMETRY T=LINE3D
1
4
0 0 0
1 2 2
3 2 3
4 1 2
In BLOCK format, this geometry record can be written as follows:
23
A More Detailed Example of a Geometry Record
In the TextGeom file shown below, there are four text records (showing a circle, ellipse, rectangle,
and line). A plot of the file is shown in Figure 2-3.
(Sketch) ⏐ 16 Jun 1998 ⏐
Example Text
Subtitle
Filled Box
Hollow Box
Figure 2-3. Text and geometries created from the sample in Section , “A
More Detailed Example of a Geometry Record”.
24
ASCII Data File Records
0 10
010 10
10 0.6
GEOMETRY T=LINE, C=CUST1
2
3
5 50
10 10
20 10
2
15 15
25 25
GEOMETRY X=60, Y=30, T=ELLIPSE, C=CUST8
30 10
The first custom label string corresponds to a value of one on the axis, the next to a value of two,
the next to a value of three, and so forth. Custom labels may appear one to a line, or there may be
more than one on a line, separated by a comma or space. Multiple custom label records can be
present in a data file. If this is the case, you choose which set to assign to a given axis, contour leg-
end, or variable-value node labels. Custom labels are discussed in more detail in Using Custom
Labels in the Tecplot 360 User’s Manual.
A simple example of a custom-label record is shown below. MON corresponds to a value of 1, TUE
corresponds to 2, WED to 3, THU to 4, and FRI to 5. Since custom labels have a wrap-around
effect, MON also corresponds to the values 6, 11, and so forth.
25
Data Set Auxiliary Data Record
There is frequently auxiliary data (or Metadata) that helps describe the data set. For example,
experimental data my have information about the facility and time at which the data was taken, and
other parameter that describe the experiment. Likewise, simulation results have auxiliary data (such
as reference quantities for non-dimensional data) needed to fully analyze and present the results.
This data may be concerning the data set as a whole or it can vary from zone to zone. The ASCII
file format for specifying auxiliary data associated with the data set are described here. The format
for zonal auxiliary data is described in Section 4.1.2.7.
The data set auxiliary data control line is as follows:
Auxiliary data may be used in text, macros, equations (if it is numeric), and accessed from add-ons.
It may also be viewed directly in the AuxData page of the Data Set Information dialog.
Data Set Auxiliary Data Examples. The following auxiliary data contain flow field infor-
mation that might be found in output from a computational fluid-dynamics simulation.
26
ASCII Data File Records
TITLE=“datasettitle” FILE
VARIABLES=“vname1”,”vname2”, ... HEADER
27
ZONE T=“zonetitle”, N=numnodes, E=numelements,
C=color, ZONETYPE=feformat, DT=(datatypelist),
DATAPACKING=datapacking, NV=nodevariable,
CONNECTIVITYSHAREZONE=zzz, STRAN-
DID=strandid, SOLUTIONTIME=time, AUXDATA
auxvar=“value”, PARENTZONE=parentzone
VARLOCATION=([varset]=varlocation, [varset]=var- FINITE-
location), VARSHARELIST=([varset]=zzz,[var- ELEMENT
set]=zzz) ZONE
FACENEIGHBORMODE=faceneighbormode RECORD
FACENEIGHBORCONNECTLIST=faceneighborcon-
nections
28
ASCII Data File Records
29
2 - 2 ASCII Data File Parameters
angle angle in degrees counter-clockwise from horizontal
arrowheadstyle PLAIN, HOLLOW, FILLED
arrowheadat- NONE, BEGINNING, END, BOTH
tach
arrowheadsize size of arrowhead in frame units
arrowheadan- angle of arrowhead in degrees
gle
auxvar name of auxiliary data variable
boxcolor fill color for text box use color options
boxfillcolor fill color for text in box as fraction of text height
boxmargin margin around text in box as fraction of text height
boxtype NOBOX, HOLLOW ,FILLED
clipping CLIPTOVIEWPORT, CLIPTOFRAME
color BLACK, RED, GREEN, BLUE, CYAN, YELLOW, PURPLE,
WHITE, CUST1, ..., CUST8
coordinatesys FRAME, GRID, GRID3D
datapacking BLOCK, POINT
datasettitle title of dataset
datatype SINGLE, DOUBLE
datatypelist SINGLE, DOUBLE, LONGINT, SHORTINT, BYTE, BIT
draworder AFTERDATA,BEFOREDATA
faceneighbor- Faceneighborconnectlist starts with the cell and cell-face
connections affected by the connection. It then contains neighboring cells
and zones depending on the FACENEIGHBORMODE.
faceneighbor- LOCALONETOONE, LOCALONETOMANY, GLOBALONE-
mode TOONE, GLOBALONETOMANY
feformat FELINESEG, FETRIANGLE, FEQUADRILATERAL,
FETETRAHEDRON, FEBRICK
font HELV, HELV-BOLD, TIMES, TIMES-ITALIC, TIMES-
BOLD, TIMES-ITALIC-BOLD, COURIER, COURIER-
BOLD, GREEK, MATH, USER-DEF
geomfillcolor fill color for geomtry use color options
30
ASCII Data File Parameters
31
vN number of the Nth variable
xorigin, yori- x or y origin of the object in coordinatesys units
gin
zorigin z origin of object (always in GRID units)
zone zone number to which this item is assigned (0=all)
zonetitle title of zone
zzz The source zone for shared variables. If omitted, the vari-
ables are shared from the previous zone
2 - 3 Ordered Data
For ordered data, the numerical values in the zone data must be in either POINT or BLOCK format,
specified by the DATAPACKING parameter.
In I-ordered data, the I-index varies from one to IMax. The total number of data points is IMax. For
zones with only nodal variables, the total number of values in the zone data is IMax*N (where N is
the number of variables). For a mixture of nodal and cell-centered variables, the number of values
in the zone data is IMax*Nn+(IMax-1)*Nc, where Nn is the number of nodal variables and Nc is
the number of cell-centered variables. For data in POINT format, IMax is calculated by Tecplot
from the zone data if it is not explicitly set by the zone control line (using the I-parameter).
32
Ordered Data
each row of data corresponds to a data point and each column to a variable. This data set is plotted
in Figure 2-4; each data point is labeled with its I-index.
50 5
40
4
30
Y
3
20
10 2
1
0
1 2 3 4 5 6 7 8
X
VARIABLES = "X","Y"
ZONE I=5, DATAPACKING=POINT
2 4
3 9
5 25
6 36
7 49
For this data try omitting the VARIABLES and ZONE lines, leaving two columns of information. In
this case, Tecplot would count the columns to determine the number of variables, count rows to
determine I-dimension, and label the variables V1 and V2.
INTEGER VAR
.
.
.
WRITE (*,*) ´ZONE DATAPACKING=POINT, I=´, IMAX
DO 1 I=1,IMAX
DO 1 VAR=1,NUMVAR
1 WRITE (*,*) ARRAY(VAR,I)
33
I-Ordered Data in BLOCK Format Example. The data from Section “I-Ordered Data
in POINT Format Example” on page 32 is shown below in BLOCK format. In this example, each
column of zone data corresponds to a data point; each row to a variable.
INTEGER VAR
.
.
.
WRITE (*,*) ´ZONE DATAPACKING=BLOCK, I=´, IMAX
DO 1 VAR=1,NUMVAR
DO 1 I=1,IMAX
1 WRITE (*,*) ARRAY(VAR,I)
Multi-Zone XY Line Plot Example. The two tables below show the values of pressure
and temperature measured at four locations on some object at two different times. The four loca-
tions are different for each time measurement.
34
Ordered Data
“Text Record”) to add a title to the plot. A data file in POINT format is given below. The plot
shown in Figure 2-6 can be produced from this file.
SAMPLE CASE
Temperature (0.0 seconds)
Pressure (0.0 seconds)
560 Temperature (0.1 seconds)
Pressure (0.1 seconds)
550 101360
540
530
Temperature
520 101355
Pressure
510
500
101350
490
480
470
101345
460
450
80 90 100 110 120
Position
35
ZONE DATAPACKING=BLOCK, T="0.0 seconds", I=4
71.30 86.70 103.1 124.4
563.7 556.7 540.8 449.2
101362.5 101349.6 101345.4 101345.2
ZONE DATAPACKING=BLOCK, T="0.1 seconds", I=4
71.31 84.42 103.1 124.8
564.9 553.1 540.5 458.5
101362.1 101348.9 101344.0 101342.2
TEXT CS=FRAME, HU=POINT, X=16, Y=90, H=28, T="SAMPLE CASE"
A more compact data file for this example is in the point format shown below. Tecplot determines
the number of variables from the number of values in the first line of data under the first zone. The
variables and zones are assigned default names.
ZONE
71.30 563.7 101362.5
86.70 556.7 101349.6 103.1 540.8 101345.4 124.4 449.2 101345.2
ZONE
71.31 564.9 101362.1 84.42 553.1 101348.9 103.1 540.5 101344.0
124.8 458.5 101342.2
TEXT CS=FRAME, HU=POINT, X=16, Y=90, H=28, T="SAMPLE CASE"
Multi-Zone XY Line Plot with Variable Sharing Example. If the data from the sec-
tion above was taken at the same position for both times, variable sharing could reduce memory
usage and file size. That file appears as:
36
Ordered Data
9 2,3
8 1,3
7
6 2,2
5
Y
4 1,2
3
2 2,1
1
0 1,1
0 2 4 6 8
X
data points. In this example, each row of data corresponds to a data point; each column to a vari-
able. The first two lines are for J=1, the next two for J=2, the last two for J=3. The first, third, and
fifth lines are for I=1; the second, fourth, and sixth lines are for I=2. This data is plotted in Figure
2-7; each data point is labeled with its IJ-index.
37
VARIABLES = "X", "Y", "Temperature", "Pressure"
ZONE I=2, J=3, DATAPACKING=POINT
3 0 0 50
7 2 0 43
2 4 1 42
6 6 0 37
1 8 1 30
5 9 1 21
FORTRAN Code to Generate IJ-Ordered Data in POINT Format Example.
The following sample FORTRAN code shows how to create IJ-ordered data in POINT format:
INTEGER VAR
.
.
.
WRITE (*,*) ´ZONE DATAPACKING=BLOCK, I=´, IMAX, ´, J=´, JMAX
DO 1 VAR=1,NUMVAR
38
Ordered Data
DO 1 J=1,JMAX
DO 1 I=1,IMAX
1 WRITE (*,*) ARRAY(VAR,I,J)
IJ-Ordered Data with Cell-Centered Data. An example of IJ-ordered data with cell-
centered variables might include four variables (X, Y, Temperature, Pressure), nine data
points, and four cells where Temperature and Pressure are cell-centered.
10 3,3
2,3
2,2
8 1,3 3,2
1,2
6 2,2
Y
2,1
4 1,2
1,1 3,1
2 2,1
0 1,1
2 4 6 8 10 12
X
39
Two-Dimensional Field Plots
A 2D field plot typically uses an IJ-ordered or finite-element surface data set. However, any data
structure can be viewed as a 2D field plot, by simply selecting “2D Cartesian” from the plot-type
menu in the Sidebar.
An IJ-ordered data file has the basic structure shown below:
40
Ordered Data
Similarly, the second zone (Small Zone) has six data points in a three-by-two mesh (I=3, J=2).
Reading this data file yields the mesh plot shown in Figure 2-9. A 2D finite-element data file is
shown below (included in your Tecplot distribution as examples/dat/2dfed.dat):.
4.5
4
Y
3.5
2.5
2
1 1.5 2 2.5 3 3.5 4
X
41
The element matrix defines the connectivity of the nodes, i.e. element one is composed of nodes
1,2,5 and 4. The data set yields the simple mesh plot shown in Figure 2-10.
1.5
0.5
1 2 3 4
X
Please refer to Data Structure in the Tecplot 360 User’s Manual for information on ordered and FE
data sets and Chapter 2 “ASCII Data” for information on formatting your data sets as ordered or
FE.
42
Ordered Data
The complete ASCII data file is included with Tecplot as simp3dpt.dat (POINT format), and
in block format as simp3dbk.dat. When you read either of these files into Tecplot, you immedi-
ately get the plot shown in Figure 2-11.
X Y
3.5
2.5
Z
2
1.5
2
2.5 1
3 1
3.5 1.5
Y 4 2
4.5 2.5
X
5 3
5.5 3.5
6 4
Finite-element volume data sets, like FE-surface data sets, consist of two separate lists—the value
list and the connectivity list. A portion of a finite-element volume data file is shown below:
The full data file, consisting of a single FE-Brick zone, is included with Tecplot as febrfep.dat
(POINT format), and in BLOCK format as febrfeb.dat.
43
The above finite-element data file has fourteen nodes (the first four are displayed) and five ele-
ments (the last five rows of the zone). The each row in the node matrix represents a given node.
Each column in the row matrix corresponds to the value of each variable in at a given node. The
order of the variables definition correlates to the order the variables are names in the data set, i.e.
for node 1, X = 0.0, Y=0.0, Z=0.0 and Temperature = 9.5.
The element matrix defines the connectivity of the nodes, i.e. element one is composed of nodes
1,1,1,1,2,4,5,3. Node 1 is repeated several times because the FEBRICK zone type requires eight
nodes for each element. If 8 unique nodes are not present in physical space, one node is repeated to
fulfill the requirement.
When you read either of these files into Tecplot, you obtain the plot shown in Figure 2-12.
Z
X Y
1.5
Z
0.5
0 0
0.5 0.5
1 1
Y X
1.5 1.5
2 2
In IJK-ordered data, the I-index varies from 1 to IMax, the J-index varies from one to JMax, and the
K-index varies from one to KMax. The total number of data points (nodes) is IMax*JMax*KMax.
For zones with only nodal variables the total number of values in the zone data is
IMax*JMax*KMax*N, where N is the number of variables. For a mixture of nodal and cell-cen-
tered variables, the number of values in the zone data is IMax*JMax*KMax*Nn+(IMax-1)*(JMax-
44
Ordered Data
1)*(KMax-1)*Nc, where Nn is the number of nodal variables and Nc is the number of cell-centered
variables. The three indices, IMax, JMax, and KMax, must be specified in the zone control line
using the I-, J-, and K-parameters.
The I-index varies the fastest; the J-index the next fastest; the K-index the slowest. If you write a
program to print IJK-ordered data, the I-index is the inner loop, the K-index is the outer loop, and
the J-index is the loop in between. Note the similarity between IJ-ordered data and IJK-ordered data
with KMax=1.
X
Y
3,2,2
3,1,2
2,2,2
2,1,2
1,2,2 3,2,1
10
1,1,2 3,1,1
2,2,1
Z
5 6
2,1,1
1,2,1 4
2
1,1,1 X
0 0
0
5
Y
0 0 0 0
45
3 0 1 5
6 0 3 10
0 6 3 10
3 6 4 41
6 6 6 72
0 0 8 0
3 0 9 29
6 0 11 66
0 6 11 66
3 6 12 130
6 6 14 169
BLOCK Format of the Same Data. The same data set as Section “IJK-Ordered Data in
POINT Format Example” on page 45, this time in BLOCK format, is shown below. For this exam-
ple, each column of data corresponds to a data point; each row to a variable.
46
Ordered Data
INTEGER VAR
.
.
.
.
WRITE (*,*) ´ZONE DATAPACKING=BLOCK, I=´, IMAX, ´, J=´, JMAX, ´,
K=´, KMAX
DO 1 VAR=1,NUMVAR
DO 1 K=1,KMAX
DO 1 J=1,JMAX
DO 1 I=1,IMAX
1 WRITE (*,*) ARRAY(VAR,I,J,K)
For example, if you have an ASCII file with 256 by 384 numbers representing intensities of a ras-
terized image, you could make a data file similar to the following:
VARIABLES = "TEMPERATURE"
ZONE I=256, J=384
List all 98,304 values of temperature here.
47
Read the data file into Tecplot. Two new variables of type SHORTINT are created and used as the
default X- and Y-coordinates. These variables are the I- and J-index values; they are named I and
J. You can now create any type of 2D plot with the data.
If you have finite-element data, Tecplot will not create any new variables for you. If you need to
add variables to finite-element data, you can do so using the Data menu.
2 - 4 Finite-Element Data
For finite-element data, the zone types, specified in the ZONETYPE parameter, may be
FELINESEG, FETRIANGLE, FEQUADRILATERAL, FETETRAHEDRON, or FEBRICK. For any
of these DATAPACKING may be POINT or BLOCK.
The number of nodes (data points) is given by the N=numnodes parameter, and the number of ele-
ments is given by the E=numelements parameter (this is also the total length of the connectivity
list).
Zone data is divided into two logical sections. It has no markers, but you may place blank lines
between the sections to distinguish them. The first section, the node (and sometimes element) data,
lists the values of the variables at the data points (or nodes) or cell-centers (elements) as if they
were I-ordered (one-dimensional) zone data. The second section, the connectivity list, defines how
the nodes are connected to form elements. There must be numelements lines in the second section;
each line defines one element. The number of nodes per line in the connectivity list depends on the
element type specified in the zone control line (ZONETYPE parameter). For example, ZON-
TYPE=FETRIANGLE has three numbers per line in the connectivity list. If nodes 5, 7, and 8 are
connected, one line reads: 5 7 8.
In the descriptions below, NE is the Eth node at a vertex of an element. The subscripts of NE refer to
the element number. For example, N23 represents the second node of the third element.
For the line segment element type, each line of the connectivity list contains two node numbers that
define a linear element:
N1M, N2M
For the triangle element type, each line of the connectivity list contains three node numbers that
define a triangular element:
48
Finite-Element Data
Zones created from the quadrilateral and triangle element types are called FE-surface zones.
For the tetrahedron element type, each line of the second section of the zone data contains four
node numbers that define a tetrahedral element:
n5 n6
n4 n3
n1 n2
Figure 2-14. Basic brick connectivity.
Zones created from the brick and tetrahedron element types are called finite-element volume zones.
49
If CONNECTIVITYSHAREZONE=nnn is in the zone control line, the connectivity list is shared
from zone nnn. In this case, no connectivity list is given, just the node (and possibly element) data.
If nnn is greater than or equal to the current zone number, Tecplot generates an error message.
5 4
3 2
Y
1 1 3 5
0 1 2 3 4 5
X
Figure 2-15. A finite-element triangle data set.
1 2 3
3 2 4
3 5 4
50
Finite-Element Data
BLOCK Format of the Same Data. The same data in BLOCK format is shown below. In
this example, each column of the data section corresponds to a node and each row to a variable. As
above, each row of the connectivity list corresponds to a triangular element and each column spec-
ifies a node number.
INTEGER VAR
.
.
.
WRITE (*,*) ´ZONE DATAPACKING=POINT, ZONETYPE=FETRIANGLE,N=´,
& NNODES,´,E=´,NELEM
DO 1 N=1,NNODES
DO 1 VAR=1,NUMVAR
1 WRITE(*,*) VARRAY(VAR,N)
DO 2 M=1,NELEM
DO 2 L=1,3
2 WRITE (*,*) NDCNCT(M,L)
INTEGER VAR
.
.
.
WRITE (*,*) ´ZONE DATAPACKING=BLOCK,
ZONETYPE=FETRIANGLE,N=´,NNODES,
51
&´,E=´,NELEM
DO 1 VAR=1,NUMVAR
DO 1 N=1,NNODES
1 WRITE(*,*) VARRAY(VAR,N)
DO 2 M=1,NELEM
DO 2 L=1,3
2 WRITE (*,*) NDCNCT(M,L)
52
Finite-Element Data
ZONE T="Triangulation"
N=6, NV = 3, E=5,DATAPACKING=POINT, ZONETYPE=FETRIANGLE
DT=(SINGLE SINGLE)
2.00E+000 3.00E+000 5
2.20E+000 3.10E+000 4
3.10E+000 4.20E+000 1
2.80E+000 3.50E+000 2
2.40E+000 2.10E+000 6
4.30E+000 3.20E+000 3
5 4 6
3 2 1
6 2 3
4 1 2
6 4 2
The table below shows Cartesian coordinates X and Y of six locations, and the pressure measured
there at three different times (P1, P2, P3). The XY locations have been arranged into finite-ele-
ments.
X Y P1 P2 P3
-1.0 0.0 100 110 120
0.0 0.0 125 135 145
1.0 0.0 150 160 180
-0.5 0.8 150 165 175
0.5 0.8 175 185 195
0.0 1.6 200 200 200
For this case, we want to set up three zones in the data file, one for each time measurement. Each
zone has three variables: X, Y, and P. The zones are of the triangle element type, meaning that three
nodes must be used to define each element. One way to set up this data file would be to list the
53
complete set of values for X, Y, and P for each zone. Since the XY-coordinates are exactly the same
for all three zones, a more compact data file can be made by using the VARSHARELIST. In the data
file given below, the second and third zones have variable sharing lists that share the values of the
X- and Y-variables and the connectivity list from the first zone. As a result, the only values listed
for the second and third zones are the pressure variable values. Note that the data could easily have
been organized in a single zone with five variables. Since blank lines are ignored in the data file,
you can embed them to improve readability. A plot of the data is shown in Figure 2-16.
Mesh Pressure 1
188.75
177.5
166.25
155
1.5 1.5 143.75
132.5
121.25
110
98.75
87.5
1.0 1.0 76.25
65
53.75
42.5
31.25
0.5 0.5
0.0 0.0
-1.0 -0.5 0.0 0.5 1.0 -1.0 -0.5 0.0 0.5 1.0
Pressure 2 Pressure 3
188.75 188.75
177.5 177.5
166.25 166.25
155 155
1.5 143.75 1.5 143.75
132.5 132.5
121.25 121.25
110 110
98.75 98.75
87.5 87.5
1.0 76.25 1.0 76.25
65 65
53.75 53.75
42.5 42.5
31.25 31.25
0.5 0.5
0.0 0.0
-1.0 -0.5 0.0 0.5 1.0 -1.0 -0.5 0.0 0.5 1.0
1 2 4
54
Finite-Element Data
2 5 4
3 5 2
5 6 4
ZONE T="P_2", DATAPACKING=POINT, N=6, E=4, ZONETYPE=FETRIANGLE,
VARSHARELIST = ([1, 2]=1), CONNECTIVITYSHAREZONE = 1
110 135 160 165 185 200
Preplot Options
To use Preplot, type the following command from the UNIX shell prompt, from a DOS prompt, or
using the Run command in Windows:
Any or all of -iset, -jset, and -kset can be set for each zone, but only one of each per zone.
Preplot Examples
If you have an ASCII file named dset.dat, you can create a binary data file called dset.plt
with the following Preplot command:
preplot dset.dat dset.plt
55
By default, Preplot looks for files with the .dat extension, and creates binary files with the .plt
extension. Thus, either of the following commands is equivalent to the above command:
preplot dset
preplot dset.dat
Preplot checks the input ASCII data file for errors such as illegal format, numbers too small or too
large, the wrong number of values in a data block, and illegal finite-element node numbers. If Pre-
plot finds an error, it issues a message displaying the line and column where the error was first
noticed. This is only an indication of where the error was detected; the actual error may be in the
preceding columns or lines.
If Preplot encounters an error, you may want to set the debug option to get more information about
the events leading up to the error:
preplot dset.dat -d
You can set the flag to -d2, or -d3, or -d4, and so forth, to obtain even more detailed informa-
tion.
In the following Preplot command line, the number of points that are written to the binary data file
dset.plt is less than the number of points in the input file dset.dat:
In the following Preplot command line, every other point in the I-, J-, and K-directions is written to
the binary data file:
56
Finite-Element Data
the PLOT3D Loader described in Section E - 13 “PLOT3D Data Loader” on page 654 in the
Tecplot 360 User’s Manual Plot3D Data Loader in the Tecplot 360 User’s Manual. The PLOT3D
Loader has more advanced capabilities than Preplot.
Preplot can read files in the PLOT3D format and convert them to Tecplot binary data files through
the use of special switches. You do not need to know about these switches unless you have data in
PLOT3D format.
PLOT3D files typically come in pairs consisting of a grid file (with extension .g) and a solution
file (with extension .q). Sometimes only the grid file is available. The grid itself may be either a
single grid, or a multigrid, and the data may be 1D, 2D, 3D-planar, or 3D-whole (equivalent to Tec-
plot’s 3D volume data). The PLOT3D files may be binary or ASCII. The PLOT3D-specific
switches to Preplot allow you to read PLOT3D files with virtually any combination of these
options.
The ilist, jlist, and klist are comma-separated lists of items of the form:
start[:end][:skip]]
where start is the number of the starting I-, J-, or K-plane, end is the number of ending I-, J-, or K-
plane, and skip is the skip factor between planes. If end is omitted, it defaults to the starting plane
(so if just start is specified, only that one plane is included). The skip defaults to one (every plane)
if omitted; a value of two includes every other plane, a value of three include every third plane, and
so on.
You must specify one of the flags -1d, -2d, -3dp, or -3dw. You may also specify only one of -
ip, -jp, or -kp and only one of -b or -f.
If the input PLOT3D file is 3D whole (-3dw) and none of the plane-extraction switches -ip, -jp,
or -kp is specified, the PLOT3D file is converted directly to an IJK-ordered zone (or multiple
zones if the file is multi-grid).
For example, in the following command line, Preplot reads from the PLOT3D files aero.g and
aero.q. The input is binary and 3D whole. The J-planes 2, 3, 4, 45, 46, and 47 are processed and
made into six IJ-ordered zones, in a binary data file named aero.plt:
57
The following command line reads an ASCII file airplane.g for which there is no correspond-
ing .q file; the data is 3D whole:
Node X Y P T
A 0.0 1.0 100.0 1.6
B 1.0 1.0 150.0 1.5
C 3.0 1.0 300.0 2.0
D 0.0 0.0 50.0 1.0
E 1.0 0.0 100.0 1.4
F 3.0 0.0 200.0 2.2
G 4.0 0.0 400.0 3.0
H 2.0 2.0 280.0 1.9
Table 2 - 1: Finite Element Data
You can create a POINT Tecplot data file for this data set as follows (a 2D mesh plot of this data set
is shown in Figure 2-17):
1. Background information for FE data sets is provided in 2 - 2 “Finite-Element Data” on page 51 in the Tecplot 360
User’s Manual the Tecplot 360 User’s Manual - Finite Element Data.
58
Finite-Element Data
2
H
1.5
Y
A B C
1
0.5
D E F G
1 2 3 4
X
The ZONE record describes completely the form and format of the data set: there are eight nodes,
indicated by the parameter N=8; four elements, indicated by the parameter E=4, and the elements
are all quadrilaterals, as indicated by the parameter ZONETYPE=FEQUADRILATERAL.
The same data file can be written more compactly in BLOCK format as follows:
59
In BLOCK format, all values for a single variable are written in a single block. The length of the
block is the number of data points in the zone. In POINT format, all variables for a single data point
are written in a block, with the length of the block equal to the number of variables.
You can change the connectivity list to obtain a different mesh for the same data points. In the
above example, substituting the following connectivity list yields the five-element mesh shown in
Figure 2-18. (You must also change the E parameter in the zone control line to specify five ele-
ments.)
(2D) ⏐ 5 Aug 1996 ⏐Example: 2D Finite-Element Data
2
H
1.5
Y
1
A B C
0.5
D E F G
0
0 1 2 3 4
X
1 2 4 4
4 2 3 5
5 3 6 6
6 7 3 3
3 2 8 8
FE surface data
Finite-element surface data specify node locations in three dimensions. Consider the data in Table
2-1. Locations are listed for eleven nodes, each having only the three spatial variables X, Y, and Z.
We would like to create an finite-element surface zone with this data set, where some of the ele-
60
Finite-Element Data
ments are triangles and some are quadrilaterals. All the elements could be organized into one zone,
of element type Quadrilateral, but as an illustration of creating 3D surface data, create three zones:
one triangular, one quadrilateral, and one a mixture (using quadrilaterals with repeated nodes for
the triangles).
X Y Z
0.0 0.0 1.0
0.0 0.0 -2.0
1.0 0.0 -2.0
1.0 1.0 0.0
1.0 1.0 -1.0
1.0 -1.0 0.0
1.0 -1.0 -1.0
-1.0 1.0 0.0
-1.0 1.0 -1.0
-1.0 -1.0 0.0
-1.0 -1.0 -1.0
Table 2-1. Data set with eleven nodes and three variables.
A Tecplot data file for the data in Table 2-1 is shown below in POINT format and plotted in Figure
2-19:
61
-1.0 1.0 0.0
1.0 1.0 0.0
1.0 -1.0 0.0
-1.0 -1.0 -1.0
-1.0 1.0 -1.0
1.0 1.0 -1.0
1.0 -1.0 -1.0
1 5 6 2
2 6 7 3
3 7 8 4
4 8 5 1
ZONE T="MIXED", N=6, E=4, DATAPACKING=POINT,
ZONETYPE=FEQUADRILATERAL
-1.0 -1.0 -1.0
-1.0 1.0 -1.0
1.0 1.0 -1.0
1.0 -1.0 -1.0
0.0 0.0 -2.0
1.0 0.0 -2.0
1 5 2 2
2 5 6 3
3 4 6 6
4 1 5 6
Z
1 X Y
0
Z
-1
-2
-1
-1 0
-0.5 0 0.5 1 1
Y X
62
Finite-Element Data
X Y Z Temperature
0.0 0.0 0.0 9.5
1.0 1.0 0.0 14.5
1.0 0.0 0.0 15.0
1.0 1.0 1.0 16.0
1.0 0.0 1.0 15.5
2.0 2.0 0.0 17.0
2.0 1.0 0.0 17.0
2.0 0.0 0.0 17.5
2.0 2.0 1.0 18.5
2.0 1.0 1.0 20.0
2.0 0.0 1.0 17.5
2.0 2.0 2.0 18.0
2.0 1.0 2.0 17.5
2.0 0.0 2.0 16.5
Table 2 - 2: Finite-Element Volume - Brick Data Set. Data with 14 nodes and four variables.
In each element’s connectivity list, Tecplot draws connections from each node to three other nodes.
You can think of the first four nodes in the element as the “bottom” layer of the brick, and the sec-
ond four nodes as the “top.” Within the bottom or top layer, nodes are connected cyclically (1-2-3-
4-1; 5-6-7-8-5); the layers are connected by connecting corresponding nodes (1-5; 2-6; 3-7; 4-8).
Figure 2-14 illustrates this basic connectivity. When you are creating your own connectivity lists
for brick elements, you must keep this basic connectivity in mind, particularly when using dupli-
63
cated nodes to create pyramids and wedges. Tecplot lets you create elements that violate this basic
connectivity, but the result will probably not be what you want.
1 1 1 1 2 4 5 3
2 4 5 3 7 10 11 8
4 4 5 5 10 13 14 11
4 4 4 4 9 12 13 10
2 2 4 4 7 6 9 10
The same data in BLOCK format is shown below:
1 1 1 1 2 4 5 3
2 4 5 3 7 10 11 8
64
Finite-Element Data
4 4 5 5 10 13 14 11
4 4 4 4 9 12 13 10
2 2 4 4 7 6 9 10
Figure 2-20 shows the resulting mesh plot from the data set listed in this section.
Z
X
1.5
Z
2
0.5
1.5
0
1
X
0
0.5
0.5
1
1.5 Y
0 2
X Y Z C U V W
0 0 -95 -1 1 0 8
0 85 -42 0 -5 -3 9
81 26 -42 2 -22 80 8
50 -69 -42 -6 72 52 9
-50 -69 -42 14 67 -48 9
-81 26 -2 20 -30 -82 9
0 0 0 1 -2 -5 10
50 69 43 14 -68 48 11
Table 2 - 3: Finite-Element Volume - Tetrahedral data set with 13 nodes and seven variables.
65
X Y Z C U V W
81 -26 43 20 31 82 11
0 -85 43 0 84 -3 10
-81 -26 43 2 21 -80 11
-50 69 43 -6 -71 -51 11
0 0 96 1 0 -1 12
Table 2 - 3: Finite-Element Volume - Tetrahedral data set with 13 nodes and seven variables.
The data file in POINT format for the data in Table 2 - 3 is shown below, and plotted in Figure
2-21:
66
Finite-Element Data
10 5 11 7
11 6 12 7
12 8 13 7
8 9 13 7
9 10 13 7
10 11 13 7
11 12 13 7
X
Z
This data file is included in your Tecplot distribution’s examples/data directory as the file
fetetpt.dat. A block format version of the same data is included as the file fetetbk.dat.
67
68
Finite-Element Data
69
70
Function Summary
This chapter is intended only for advanced users of Tecplot who have a solid background in UNIX
or Windows and application programming. Support for topics discussed in this chapter may be
limited. Regular technical support is not intended to help you program your application to use the
direct data file capabilities of Tecplot.
Data files for Tecplot are commonly created as output from an application program. These files are
most often in ASCII format, and are then converted to a binary format with Preplot.
Included with your distribution of Tecplot is a library that contains utility functions that you can
link with your application program to create binary data files directly, bypassing the use of ASCII
files. This allows for fewer files to manage, conserves on disk space, and saves the extra time
required to convert the files.
In UNIX, the utility functions discussed below are available in the library archive tecio.a which
is located in the lib sub-directory of the Tecplot Home Directory. Under Windows, this library is
called TecIO.dll and is located in the bin sub-directory. Instructions on compiling and linking
using the TECIO library can be found in the readme.doc file in the util/tecio sub-directory
under the TECHOME directory.
Tecplot 360 introduces a new set of TECIO functions to take full advantage of the new capabilities
it offers. Each of these functions has a suffix of "110" to differentiate it from previous editions.
Please note that all previously existing TECIO functions still exist and are supported for backward
compatibility.
3 - 1 Function Summary
The following functions are available from the TECIO archive. For historical reasons, these func-
tions have a FORTRAN flavor to them, both in how they are named and the way in which the
parameters are passed.
• TECZNE110: Write information about the next zone to be added to the data
file.
71
• TECFOREIGN110: Write the binary file in foreign byte order.
• TECAUXSTR110: Write auxiliary data for the data set to the data file.
• TECZAUXSTR110:Write auxiliary data for the current zone to the data file.
• TECFACE110: Write the face connections for the current zone to the data file.
TECFOREIGN100
TECINI100
TECZNE100
TECDAT100
TECNOD100
TECEND100
TECLAB100
TECUSR100
72
Binary Data File Function Calling Sequence
TECGEO100
TECTXT100
TECFIL100
TECAUXSTR100
TECZAUXSTR100
TECVAUXSTR100
TECFACE100
TECINI
TECZNE
TECDAT
TECNOD
TECEND
TECLAB
TECUSR
TECGEO
TECTXT
TECFIL
TECFOREIGN110 (optional)
TECINI110
TECAUXSTR110
TECVAUXSTR110
TECZNE110 (One or more to create multiple zones)
TECDAT110 (One or more to fill each zone)
TECNOD110 (One for each finite element zone)
TECFACE110 (One for each zone with face connections)
TECZAUXSTR110
TECLAB110
TECGEO110
TECTXT110
73
TECUSR110
TECEND
Section 3 - 4, “Writing to Multiple Binary Data Files,” explains how you can use the TECFIL110
function along with the above functions to write to multiple files at the same time.
I=A("Hi Mom"//char(0))
3 - 6 Boolean Flags
Integer parameters identified as "flags" indicate boolean values. Pass 1 for true, and 0 for false.
74
Binary Data File Function Reference
TECAUXSTR110
Summary: Writes auxiliary data for the data set to the data file. The function may be called
any time between TECINI110 and TECEND110. Auxiliary data may be used
by text, macros, equations (if it is numeric) and add-ons. It may be viewed
directly in the AuxData page of the Data Set Information dialog.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECAUXSTR110(Name,
& Value)
CHARACTER*(*) Name
CHARACTER*(*) Value
TECDAT110
Summary: Writes an array of data to the data file.Data should not be passed for variables
that have been indicated as passive or shared (via TECZNE110).
The following table describes the order the data must be supplied given different
zone types (IsBlock is a parameter supplied to TECZNE110):
75
Zone Variable Loca- IsBlock Number of Val- Order
Type tion ues Supplied
Ordered Nodal 1 IMax* I varies fastest, then J,
JMax* then K, then V
KMax*
NumVars
Ordered Nodal 0 IMax* V varies fastest, then I,
JMax* then J, then K
KMax*
NumVars
Ordered Cell Centered 1 (IMax-1)* I varies fastest, then J,
(JMax-1)* then K, then V
(KMax-1)*
NumVars
Ordered Cell Centered 0 Not allowed
Finite Nodal 1 IMax (i.e. N varies fastest, then V
Element NumPts *
NumVars)
Finite Nodal 0 IMax (i.e. V varies fastest, then N
Element NumPts *
NumVars)
Finite Cell Centered 1 JMax (i.e. E varies fastest, then V
Element NumElements *
NumVars)
Finite Cell Centered 0 Not allowed
Element
Note that if any variables are cell centered then the data must be supplied in block format thus
the IsBlock parameter in TECZNE110 MUST be set to 1
TECDAT110 allows you to write your data in a piecemeal fashion in case it is not contained in
one contiguous block in your program. Enough calls to TECDAT110 must be made that the
correct number of values are written for each zone and that the aggregate order for the data is
correct.
In the above summary, NumVars is based on the number of variable names supplied in a previ-
ous call to TECINI110.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECDAT110(N,
76
Binary Data File Function Reference
& Data,
& IsDouble)
INTEGER*4 N
REAL or DOUBLE PRECISION Data(1)
INTEGER*4 IsDouble
C Syntax: #include TECIO.h
TECEND110
Summary: Must be called to close out the current data file. There must be a corresponding
TECEND110 for each TECINI110.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECEND110()
C Syntax: #include TECIO.h
INTEGER4 TECEND110();
Return Value: 0 if successful, -1 if unsuccessful.
Parameters: None.
TECFACE110
Summary: Writes face connections for the current zone to the file. This function must be
called after TECNOD110, and may only be called if a non-zero value of Num-
FaceConnections was used in the previous call to TECZNE110.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECFACE110(FaceConnections)
77
INTEGER*4 FACECONNECTIONS
C Syntax: #include TECIO.h
Where:
ZZ = remote Zone
cz,fz combinations must be unique. Additionally, Tecplot assumes that with the
one-to-one face neighbor modes a supplied cell face is entirely obscured by its
neighbor. With one-to-many, the obscuration flag must be supplied. Faces that
78
Binary Data File Function Reference
are not supplied with neighbors are run through Tecplot’s auto face neighbor gen-
erator (FE only).
TECFIL110
Summary: Switch output context to a different file. Each time TECINI110 is called, a new
file “context” is switched to. This allows you to write multiple data files at the
same time.
FORTRAN Syntax:
INTEGER*4 F
C Syntax:
#include TECIO.h
TECFOREIGN110
Summary: Sets the byte ordering request for subsequent calls to TECINI110. The byte
ordering request will remain in effect until the next call to this function. This has
no effect on files already opened via TECINI110, it only affects files opened by
future TECINI110 calls. This function is not required. The default is to write out
native byte order.
FORTRAN Syntax:
INTEGER*4 DoForeignByteOrder
C Syntax:
79
#include TECIO.h
TECGEO110
Summary: Writes a geometry to the data file.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECGEO110(XOrThetaPos,
& YOrRPos,
& ZPos,
& PosCoordMode,
& AttachToZone,
& Zone,
& Color,
& FillColor,
& IsFilled,
& GeomType,
& LinePattern,
& PatternLength,
& LineThickness,
& NumEllipsePts,
& ArrowheadStyle,
& ArrowheadAttachment,
& ArrowheadSize,
& ArrowheadAngle,
& Scope,
& Clipping,
& NumSegments,
& NumSegPts,
& XOrThetaGeomData,
& YOrRGeomData,
& ZGeomData,
& MFC)
DOUBLE PRECISION XOrThetaPos
80
Binary Data File Function Reference
81
INTEGER4 *NumEllipsePts,
INTEGER4 *ArrowheadStyle,
INTEGER4 *ArrowheadAttachment,
double *ArrowheadSize,
double *ArrowheadAngle,
INTEGER4 *Scope,
INTEGER4 *Clipping,
INTEGER4 *NumSegments,
INTEGER4 *NumSegPts,
float *XOrThetaGeomData,
float *YOrRGeomData,
float *ZGeomData,
char *MFC)
Return Value: 0 if successful, -1 if unsuccessful.
Parameters: XOrThetaPos - Pointer to double value specifying the X-position or, for polar
line plots, the Theta-position of the geometry.
YOrRPos - Pointer to double value specifying the Y-position or, for polar line
plots, the R-position of the geometry.
ZPos - Pointer to double value specifying the Z-position of the geometry.
PosCoordMode - Pointer to integer value specifying the position coordinate sys-
tem.
0=Grid
1=Frame
6=Grid3D
AttachToZone - Pointer to integer flag to signal that the geometry is “attached” to
a zone.
Zone - Pointer to integer value specifying the number of the zone to attach to.
Color - Pointer to integer value specifying the color to assign to the geometry.
0=Black 8=Custom1
1=Red 9=Custom2
2=Green 10=Custom3
3=Blue 11=Custom4
4=Cyan 12=Custom5
5=Yellow 13=Custom6
6=Purple 14=Custom7
7=White 15=Custom8
FillColor - Pointer to integer value specifying the color used to fill the geometry.
See Color above.
IsFilled - Pointer to integer flag to specify if geometry is to be filled.
82
Binary Data File Function Reference
83
TECINI110
Summary: Initializes the process of writing a binary data file. This must be called first
before any other TECIO calls are made (except TECFOREIGN110). You may
write to multiple files by calling TECINI110 more than once. Each time
TECINI110 is called, a new file is opened. Use TECFIL110 to switch between
files.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECINI110(Title,
& Variables,
& FName,
& ScratchDir,
& Debug,
& VIsDouble)
CHARACTER*(*) Title
CHARACTER*(*) Variables
CHARACTER*(*) FName
CHARACTER*(*) ScratchDir
INTEGER*4 Debug
INTEGER*4 VIsDouble
C Syntax:
#include TECIO.h
84
Binary Data File Function Reference
VIsDouble - Pointer to the integer flag for specifying whether field data gener-
ated in future calls to TECDAT110 are to be written in single or double precision.
Set to 0 for single precision or 1 for double.
TECLAB110
Summary: Write a set of custom labels to the data file.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECLAB110(Labels)
CHARACTER*(*) Labels
C Syntax: #include TECIO.h
TECNOD110
Summary: Writes an array of node data to the binary data file. This is the connectivity list
for finite element zones.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECNOD110(NData)
INTEGER*4 NData (T, M)
85
Parameters: NData - Array of integers. This is the connectivity list, dimensioned (T, M) (T
moving fastest), where M is the number of elements in the zone and T is set
according to the following list:
ELEMENT TYPE T
Line Segment 2
Triangle 3
Quadrilateral 4
Tetrahedral 4
Brick 8
TECTXT110
Summary: Writes a text record to the data file.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECTXT110(XOrThetaPos,
& YOrRPos,
& ZOrUnusedPos,
& PosCoordMode,
& AttachToZone,
& Zone,
& Font,
& FontHeightUnits,
& FontHeight,
& BoxType,
& BoxMargin,
& BoxLineThickness,
& BoxColor,
& BoxFillColor,
& Angle,
& Anchor,
& LineSpacing,
& TextColor,
& Scope,
& Clipping,
& Text,
& MFC)
DOUBLE PRECISION XOrThetaPos
86
Binary Data File Function Reference
87
INTEGER4 *Scope,
INTEGER4 *Clipping,
char *Text,
char *MFC)
88
Binary Data File Function Reference
BoxColor - Pointer to integer value specifying the color to assign to the box.
0=Black 8=Custom1
1=Red 9=Custom2
2=Green 10=Custom3
3=Blue 11=Custom4
4=Cyan 12=Custom5
5=Yellow 13=Custom6
6=Purple 14=Custom7
7=White 15=Custom8
BoxFillColor - Pointer to integer value specifying the fill color to assign to the
box. (See BoxColor)
Angle - Pointer to double value specifying the text angle in degrees.
Anchor - Pointer to integer value specifying where to anchor the text.
0=Left 5=MidRight
1=Center 6=HeadLeft
2=Right 7=HeadCenter
3=MidLeft 8=HeadRight
4=MidCenter
LineSpacing - Pointer to double value specifying the text line spacing.
TextColor - Pointer to integer value specifying the color to assign to the text. (See
BoxColor)
Scope - Pointer to integer value specifying the scope.
0=Global 1=Local
Clipping - Specifies whether to clip the geometry (that is, only plot the geometry
within) to the viewport or the frame. 0=ClipToViewport,1=ClipToFrame.
Text - Character string representing text to display. Must be null terminated.
MFC - Macro function command. Must be null terminated.
TECUSR110
Summary: Writes a character string to the data file in a USERREC record. USERREC
records are ignored by Tecplot, but may be used by add-ons.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECUSR110(S)
CHARACTER*(*) S
89
C Syntax: #include TECIO.h
TECVAUXSTR110
Summary: Writes an auxiliary data item to the data file for the specified variable. Must be
called after TECINI110 and before TECEND110. Auxiliary data may be used
by text, macros, equations (if it is numeric) and add-ons. It may be viewed
directly in the AuxData page of the Data Set Information dialog.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECVAUXSTR110(Var, Name,
Value)
&
INTEGER*4 Value
CHARACTER*(*) Name
CHARACTER*(*) Value
C Syntax: #include TECIO.h
TECZAUXSTR110
Summary: Writes an auxiliary data item for the current zone to the data file. Must be called
after TECZNE110 for the desired zone. Auxiliary data may be used by text,
90
Binary Data File Function Reference
macros, equations (if it is numeric) and add-ons. It may be viewed directly in the
AuxData page of the Data Set Information dialog.
FORTRAN Syntax:
INTEGER*4 FUNCTION TECZAUXSTR110(Name, Value)
&
CHARACTER*(*) Name
CHARACTER*(*) Value
C Syntax: #include TECIO.h
TECZNE110
Summary: Writes header information about the next zone to be added to the data file. After
TECZNE110 is called, you must call TECDAT110 one or more times (and then
call TECNOD110 if the data format is FEBLOCK or FEPOINT).
FORTRAN Syntax:
INTEGER*4 FUNCTION TECZNE110(ZoneTitle,
&ZoneType,
&IMxOrNumPts,
&JMxOrNumElements,
&KMx,
&ICellMax,
&JCellMax,
&KCellMax,
&SolutionTime,
&StrandID,
&ParentZone,
&IsBlock,
&NumFaceConnections,
&FaceNeighborMode,
&PassiveVarList,
91
&ValueLocation,
&ShareVarFromZone
&ShareConnectivityFromZone)
CHARACTER*(*)ZoneTitle
INTEGER*4ZoneType
INTEGER*4IMxOrNumPts
INTEGER*4JMxOrNumElements
INTEGER*4KMx
INTEGER*4ICellMax
INTEGER*4JCellMax
INTEGER*4KCellMax
DOUBLE PRECISION Solution Time
INTEGER*4StrandID
INTEGER*4ParentZone
INTEGER*4N
INTEGER*4M
INTEGER*4IsBlock
INTEGER*4NumFaceConnections
INTEGER*4FaceNeighborMode
INTEGER*4PassiveVarList
INTEGER*4ValueLocation
INTEGER*4ShareVarFromZone
INTEGER*4ShareConnectivityFromZone
C Syntax: #include TECIO.h
92
Binary Data File Function Reference
INTEGER4*PassiveVarList,
INTEGER4*ValueLocation,
INTEGER4*ShareVarFromZone,
INTEGER4*ShareConnectivityFromZone)
Return Value: 0 if successful, -1 if unsuccessful.
Parameters: ZoneTitle - The title of the zone. Must be null-terminated.
ZoneType - The type of the zone: 0=ORDERED, 1=FELINESEG, 2=FETRIAN-
GLE, 3=FEQUADRILATERAL, 4=FETETRAHEDRON, 5=FEBRICK
IMxOrNumPts - For ordered zones, the number of nodes in the I index direction.
For finite-element zones, the number of nodes.
JMxOrNumElements - For ordered zones, the number of nodes in the J index
direction. For finite-element zones, the number of elements.
KMx - For ordered zones, the number of nodes in the K index direction. Not used
for finite-element zones.
ICellMax - For zones of type FEBRICK only, the number of cells logically con-
nected in the I index direction.
JCellMax - For zones of type FEBRICK only, the number of cells logically con-
nected in the J index direction.
KCellMax - For zones of type FEBRICK only, the number of cells logically con-
nected in the K index direction.
SolutionTime - Scalar double precision value specifying the time associated with
the zone.
StrandID - Scalar integer value specifying the strand to which the zone is associ-
ated. A value of zero indicates the zone is static and not associated with a strand.
A value of -1 indicates that the strand id for this zone is pending assignment by
Tecplot’s data loader (intermediate value only). Values greater than 0 indicate a
zone is assigned to a given strand.
ParentZone - Scalar integer value representing the relationship between this zone
and its parent. A value of zero indicates that this zone is not associated with a
parent zone. A value greater than zero is considered this zone's parent. A zone
may not specify itself as its own parent. With a parent zone association, Tecplot
can generate surface-restricted streamtraces.
IsBlock - Indicates whether the data will be passed into TECDAT110 in BLOCK
or POINT format. 0=POINT, 1=BLOCK.
NumFaceConnections - The number of face connections that will be passed in
routine TECFACE110.
FaceNeighborMode - The type of face connections that will be passed in routine
TECFACE110. 0=LocalOneToOne, 1=LocalOneToMany, 2=GlobalOneToOne,
3=GlobalOneToMany
PassiveVarList - Array, dimensioned by the number of variables, of 4 byte integer
values specifying the active/passive nature of each variable. A value of 0 indi-
93
cates the associated variable is active while a value of 1 indicates that it is pas-
sive.
ValueLocation - The location of each variable in the data set. ValueLocation(I)
indicates the location of variable I for this zone. 0=cell-centered, 1=node-cen-
tered. Pass null to indicate that all variables are node-centered.
ShareVarFromZone - Indicates variable sharing. Array, dimensioned by the num-
ber of variables. ShareVarFromZone(I) indicates the zone number with which
variable I will be shared. This reduces the amount of data to be passed via
TECDAT110. A value of 0 indicates that the variable is not shared. Pass null to
indicate no variable sharing for this zone. You must pass null for the first zone in
a data set (there is no data available to share).
ShareConnectivityFromZone - For finite-element zones only, Indicates the zone
number with which connectivity is shared. Pass 0 to indicate no connectivity
sharing. You must pass 0 for the first zone in a data set.
The commands below are the old TECIO commands which still work for purposes of backwards
compatibility. Note that in many cases, these functions take the same inputs as their current coun-
terparts.
See the file readme.txt in the same directory for instructions on how to compile these examples.
94
Numerics FORTRAN example with IJ-ordered data 38
2-D plots Triangle element type 51
creating 40, 41 Brick element type 43, 49
3-D lines connectivity list 49
creating in geometries 21, 22 Brick polyhedral elements 63
example of geometry record 23 BYTE data type 47
geometry record 20, 23
3-D plots C
creating 42, 43 C
writing data to binary 9
A Circle
Add-On Developer’s Kit 9 example of geometry record 22
Arrowheads geometry record 20, 21, 22
geometry records 21 Colors
in polyline geometries 21 fill colors in geometries 20
ASCII data geometries 20
binary conversion 55 text 18
example 9 zones 17
AUXDATA parameter 13 Comments
Auxiliary data 9, 13, 26 data files 9
AUXDATA parameter 13 Connectivity list
data record 26 copy 50
DATSETAUXDATA 9 examples 53
examples 26 finite-element 48
for data sets 75 finite-element data lists 58
for zones 90 for Brick element type 49
Axes sharing 14, 53
custom labels 25 Continuation lines
default assignments 10 in data files 9
Contour legend
B custom labels 25
Binary data files Control lines
function reference 74 for zone types 17
Binary files Coordinate systems
ASCII conversion 9 text 18
efficiency 9 text in frames 18
function reference 74 Custom label record 9, 25
BIT data type Custom labels
format registration 12 axes 25
BLOCK format 43 contour legend 25
3-D data files 64 example 25
creating data file 59 nodes 25
example in FORTRAN with I-ordered data 34
example of triangle mesh 51 D
example with IJK-ordered data 46 Data
example with IJ-ordered data 38 ASCII data files 55
example with I-ordered data 34 ASCII file example 9
examples 35 ASCII file format 9
FORTRAN example for triangle mesh 51 binary data files 9
FORTRAN example with IJK-ordered data 47 BIT type 12
95
BLOCK format 43 one variable files 47
BLOCK format example 35 one variable IJ-ordered files 47
BYTE type 12 text record 9
connectivity list 48 text record file format 18
continuation line in files 9 text records in files 18
converting ASCII to binary 9 zone record types 17
DOUBLE type 12 Data format
example of I-ordered in POINT format 33 conversion 55, 56
FEPOINT format example 43, 44 Data sets
finite-element mesh plots 43 auxiliary data record 26
geometry record files 20 finite-element brick 63
IJK-ordered 42, 44 finite-element brick creation 63
IJK-ordered one variable files 47 finite-element creation 58
IJK-ordered zone record 44 finite-element mesh plots 41
IJ-ordered in mesh plots 40 finite-element POINT format 41
IJ-ordered maximum index 37 finite-element quadrilaterals 59
IJ-ordered organization 37 finite-element volume 63
IJ-ordered zone record 37 finite-element volume tetrahedral 65
I-ordered 32 tetrahedron 63
I-ordered files 11 Data sharing
I-ordered one variable files 47 connectivity 94
line length maximum in files 9 field variables 94
LONGINT type 12 DATAPACKING 11
ordered data format 32 DATASETAUXDATA 9
PLOT3D file options with Preplot 57
PLOT3D files 56 E
POINT format 43 Element type
point format 11 Brick 43
POINT format example 35 brick 49
POINT format for I-ordered 32 quadrilateral 48
POINT format triangle mesh example 50 tetrahedron 49
preprocessing files with Preplot 55 triangle 50, 53, 54
quote strings in files 9 Ellipse
SHORTINT type 12 geometry record 20, 21
SINGLE type 12 number of points in geometries 21
transient 17 Escape character
types 12 data files 9
Data files Example
comments in files 9 2D field plot 40
custom label record 9 3D field plot 42
Escape character in files 9 ASCII data 9
example of IJK-ordered in BLOCK format 46 geometry record 22
example of IJK-ordered in POINT format 45 geometry record (detailed) 24
example of IJ-ordered in BLOCK format 38 point format 11
example of IJ-ordered in POINT format 37 preplot 55
example of I-ordered in BLOCK format 34
example of I-ordered in POINT format 32 F
function sequence 73 Face neighbors 14
geometry record file format 20 FACENEIGHBORCONNECTIONS 14
geometry record files 9 FACENEIGHBORMODE 14
96
FEBLOCK format triangle finite-element point data 51
finite-element 48 writing data to binary 9
FEPOINT format Frames
BIT data type restriction 12 frame units for geometries 20
example data file 43, 44 geometry coordinate systems 20
File headers 9 text coordinate system 18
title 10 text height units 18
variable names 10 Functions
Point format binary data files 74
see also FEPOINT format
Finite-element G
3-D volumes 63 Geometries
BLOCK format 43, 64 3-D lines 21, 22
brick 49 arrowheads 21
brick data sets 63 data file examples 24
brick element creation 63 file formats 20
Brick element type 43 Geometry record 9
data 9 3-D line 20, 21, 23
data connectivity list 48 circle 20, 21, 22
data set connectivity lists 58 color 20
data set creation 58 control line 20
duplicating variables 53 ellipse 20, 21
element type in zones 17 example of 3-D lines 23
example of node variable parameters 52 example of circle 22
FEBLOCK format 48 file format 20
mesh plot data 43 line 20, 21, 22
mesh plots 41 line thickness 20
mixing element types 49 line type 20
number of elements in zones 17 polyline 20, 22
number of nodes 17 polyline example 22
POINT format 41, 43, 64 rectangle 20, 21, 22
quadrilateral data sets 59 square 20, 21
surface zones 49 Geometry records 20
tetrahedron volume data sets 63 arrowheads 21
volume brick data set creation 63 GLOBALONETOMANY
volume data connectivity list 43 face neighbor mode 14
volume data sets 63 GLOBALONETOONE
volume data value list 43 face neighbor mode 14
volume tetrahedral data set 65 Grid coordinate system
volume zones 49 geometries 20
zones 17 Grid units
Format text 18
data packing 11
data types 12 H
point 11 Height units
FORTRAN text 18
BLOCK format triangle mesh 51
example of I-ordered in BLOCK format 34 I
example with BLOCK format 38 IJK-ordered data 44
POINT format triangle mesh 51 example in BLOCK format 46
97
example in POINT format 45 2-D field plot creation 40
FORTRAN example in BLOCK format 47 3-D creation 42, 43
FORTRAN example with POINT format 46 creating 41
maximum J-index 44 finite-element data 41, 43
maximum K-index 45 finite-element volume data 43
mesh plots 42 IJK-ordered data 42
one variable data files 47 IJ-ordered 40
IJ-ordered data Multi-zone line plot
example with BLOCK format 38 example 34
example with POINT format 37
FORTRAN example in POINT format 38 N
maximum index 17, 37 Newline
mesh plots 40 multiple lines in text record 19
one variable data files 47 Nodes
organization 37 custom labels 25
sample FORTRAN code for creating 37
I-ordered data 32 O
example in POINT format 32 Ordered data 9
example with BLOCK format 34 format 32
example with POINT format 33 IJK-ordered 44
files 11 IJ-ordered 40
FORTRAN example in BLOCK format 34 Ordered zones 13
maximum I-index 32 maximum J-index 17
maximum index 17 maximum K-index 17
one variable data files 47
POINT format 32 P
PLOT3D files 55, 56
L examples with Preplot 57
Labels Preplot options 57
see also Custom label record solution files 57
Line pattern POINT format 41, 43
geometry 20 3-D volume data files 64
Line plots BIT data type restriction 12
multi-zone example 34 creating a data file 58
Line type example data file 41
geometries 20 example of I-ordered data 32
Lines example with IJK-ordered data 45
3-D line in geometry record 20 example with IJ-ordered data 37
arrowheads in geometries 21 example with I-ordered data 33
arrowheads in polyline geometries 21 examples 35
families of 37 FORTRAN example for triangle mesh 51
geometry record 20, 22 FORTRAN example with IJK-ordered data 46
LOCALONETOMANY FORTRAN example with IJ-ordered data 38
face neighbor mode 14 I-ordered data 32
LOCALONETOONE triangle mesh example 50
face neighbor mode 14 Points
text height units 18
M Polylines
Mesh plots 3-D geometry record 23
2-D creation 40 arrowheads 21
98
geometry record 20, 22 boxed 19
Preplot 9, 55 color 18
ASCII data to binary 9 control line 18
examples 55, 56, 57 coordinate system 18
options 55 examples 34
PLOT3D options 57 file format 18
preprocessing data files 55 height units 18
running under Windows 55 line spacing 18
origin 18
Q specify height 18
Quadrilateral text string 18
element type 48 Titles
Quadrilateral polygonal elements zones 17
finite-element data 59 Transient data
Quotes strings solution time 17
in data files 9 strand id 17
Triangle element type 50, 53, 54
R FORTRAN code sample 51
Record keywords in BLOCK format 51
index 9
Rectangle U
geometry record 20, 21, 22 Utilities
Preplot 9, 55, 56, 57
S
Sharing, connectivity 14 V
Shortcuts Value list
duplicate connectivity lists 50 for volume data 43
SHORTINT data type 47, 48 Variable
SINGLE data type 47 sharing
Solution time 17 VARSHARELIST
SOLUTIONTIME 17
Spacing
parameter 13
between text lines 19 Variable location
Square writing to data file 94
geometry record 20, 21 Variable sharing
Strand VARSHARELIST parameter 53
identification 17 Variables
STRANDID 17 connectivity list sharing 53
default axis assignments 10
T one variable data files 47
Volume data value list 43
TECINI binary data file function 84
tecutil.a 71
Z
Tetrahedral polyhedral elements
FE-volume data set 63, 65 Zone
Tetrahedron element type 49 variable sharing 13
Text 18 Zone record 11
anchor position 18 BLOCK format 46
box 19 connectivity list 48
Text record 9 data packing 11
anchor position 18 element type 17, 48
99
element types 48
finite-element data 17
formats 11
IJK-ordered data 44
IJ-ordered data 37
initial color 17
I-ordered data 32
maximum index 44
maximum J-index 17
maximum J-nodes 44
maximum K-index 17
maximum K-nodes 44
number of elements 17, 48
number of nodes 17, 48
numerical values 13
repeating values 13
title 17
type 17
zone type 11
Zone types
parameters 17
Zones
finite-element surface 49
multi-zone line plot example 34
ordered 13
record 11, 13
type parameters 17
ZONETYPE 11
100