Enums#
The TecIO library often uses integers with special meanings (zone
types, data types, data locations). The same values are used both for
writing (tec*142 functions) and for SZL reading and writing (tec_*
functions). The classes below provide a more readable format of these
values. Where available, the equivalent keywords used in Tecplot ASCII
files are set as the class property, returning the corresponding int
value.
Binary data format selector. |
|
Tecplot file type. |
|
Tecplot zone type. |
|
On-disk storage type for variable data. |
|
Data value location within a cell. |
|
Boundary face-sharing mode between zones. |
|
Unstructured cell shape category. |
|
Zone data packing order for ASCII ( |
|
Variable active/passive flag. |
|
Boolean flag for C function arguments. |
- class tecio.libtecio.FileFormat[source]#
Bases:
EnumBinary data format selector.
Attribute
Value
Description
PLT0Classic PLT binary format.
SZPLT1SZL subzone-loadable format.
- class tecio.libtecio.FileType[source]#
Bases:
EnumTecplot file type.
Attribute
Value
Description
FULL0Contains both grid and solution data.
GRID1Grid coordinates only.
SOLUTION2Solution variables only.
- class tecio.libtecio.ZoneType[source]#
Bases:
EnumTecplot zone type.
Attribute
Value
Description
ORDERED0Structured IJK grid.
FELINESEG1Finite-element line segments.
FETRIANGLE2Finite-element triangles.
FEQUADRILATERAL3Finite-element quadrilaterals.
FETETRAHEDRON4Finite-element tetrahedra.
FEBRICK5Finite-element hexahedra.
FEPOLYGON6Finite-element polygons (face-based).
FEPOLYHEDRON7Finite-element polyhedra (face-based).
FEMIXED8Mixed finite-element types.
- class tecio.libtecio.DataType[source]#
Bases:
EnumOn-disk storage type for variable data.
Attribute
Value
Description
FLOAT132-bit IEEE floating point.
DOUBLE264-bit IEEE floating point.
INT32332-bit signed integer.
INT16416-bit signed integer.
BYTE58-bit unsigned integer.
- class tecio.libtecio.ValueLocation[source]#
Bases:
EnumData value location within a cell.
Attribute
Value
Description
CELL_CENTERED0Values stored at cell centres.
NODAL1Values stored at grid nodes.
- class tecio.libtecio.FaceNeighborMode[source]#
Bases:
EnumBoundary face-sharing mode between zones.
Attribute
Value
Description
LOCAL_ONE_TO_ONE0Each face has at most one local neighbor.
LOCAL_ONE_TO_MANY1Each face may have multiple local neighbors (hanging nodes).
GLOBAL_ONE_TO_ONE2Each face has at most one neighbor in any zone.
GLOBAL_ONE_TO_MANY3Each face may have multiple neighbors in any zone (hanging nodes).
- class tecio.libtecio.FeCellShape[source]#
Bases:
EnumUnstructured cell shape category.
Attribute
Value
Description
BAR02D two-node element.
TRIANGLE12D three-node element.
QUADRILATERAL22D four-node element.
TETRAHEDRON33D four-node element.
HEXAHEDRON43D six-node element.
PYRAMID53D five-node element.
PRISM63D eight-node element.
- class tecio.libtecio.DataPacking[source]#
Bases:
EnumZone data packing order for ASCII (
.dat) files.Controls whether data is laid out variable-by-variable or point-by-point in the ASCII file. The
DATAPACKINGkeyword in a zone header takes one of these two values.Attribute
Value
Description
POINT0One row per node/cell containing all variable values.
BLOCK1One contiguous block per variable containing all node/cell values. Tecplot default; faster for variable-at-a-time access patterns.