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.

FileFormat

Binary data format selector.

FileType

Tecplot file type.

ZoneType

Tecplot zone type.

DataType

On-disk storage type for variable data.

ValueLocation

Data value location within a cell.

FaceNeighborMode

Boundary face-sharing mode between zones.

FeCellShape

Unstructured cell shape category.

DataPacking

Zone data packing order for ASCII (.dat) files.

VarStatus

Variable active/passive flag.

Boolean

Boolean flag for C function arguments.

class tecio.libtecio.FileFormat[source]#

Bases: Enum

Binary data format selector.

Attribute

Value

Description

PLT

0

Classic PLT binary format.

SZPLT

1

SZL subzone-loadable format.

class tecio.libtecio.FileType[source]#

Bases: Enum

Tecplot file type.

Attribute

Value

Description

FULL

0

Contains both grid and solution data.

GRID

1

Grid coordinates only.

SOLUTION

2

Solution variables only.

class tecio.libtecio.ZoneType[source]#

Bases: Enum

Tecplot zone type.

Attribute

Value

Description

ORDERED

0

Structured IJK grid.

FELINESEG

1

Finite-element line segments.

FETRIANGLE

2

Finite-element triangles.

FEQUADRILATERAL

3

Finite-element quadrilaterals.

FETETRAHEDRON

4

Finite-element tetrahedra.

FEBRICK

5

Finite-element hexahedra.

FEPOLYGON

6

Finite-element polygons (face-based).

FEPOLYHEDRON

7

Finite-element polyhedra (face-based).

FEMIXED

8

Mixed finite-element types.

class tecio.libtecio.DataType[source]#

Bases: Enum

On-disk storage type for variable data.

Attribute

Value

Description

FLOAT

1

32-bit IEEE floating point.

DOUBLE

2

64-bit IEEE floating point.

INT32

3

32-bit signed integer.

INT16

4

16-bit signed integer.

BYTE

5

8-bit unsigned integer.

class tecio.libtecio.ValueLocation[source]#

Bases: Enum

Data value location within a cell.

Attribute

Value

Description

CELL_CENTERED

0

Values stored at cell centres.

NODAL

1

Values stored at grid nodes.

class tecio.libtecio.FaceNeighborMode[source]#

Bases: Enum

Boundary face-sharing mode between zones.

Attribute

Value

Description

LOCAL_ONE_TO_ONE

0

Each face has at most one local neighbor.

LOCAL_ONE_TO_MANY

1

Each face may have multiple local neighbors (hanging nodes).

GLOBAL_ONE_TO_ONE

2

Each face has at most one neighbor in any zone.

GLOBAL_ONE_TO_MANY

3

Each face may have multiple neighbors in any zone (hanging nodes).

class tecio.libtecio.FeCellShape[source]#

Bases: Enum

Unstructured cell shape category.

Attribute

Value

Description

BAR

0

2D two-node element.

TRIANGLE

1

2D three-node element.

QUADRILATERAL

2

2D four-node element.

TETRAHEDRON

3

3D four-node element.

HEXAHEDRON

4

3D six-node element.

PYRAMID

5

3D five-node element.

PRISM

6

3D eight-node element.

class tecio.libtecio.DataPacking[source]#

Bases: Enum

Zone 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 DATAPACKING keyword in a zone header takes one of these two values.

Attribute

Value

Description

POINT

0

One row per node/cell containing all variable values.

BLOCK

1

One contiguous block per variable containing all node/cell values. Tecplot default; faster for variable-at-a-time access patterns.

class tecio.libtecio.VarStatus[source]#

Bases: Enum

Variable active/passive flag.

Attribute

Value

Description

ACTIVE

0

Variable has data in this zone.

PASSIVE

1

Variable has no data in this zone.

class tecio.libtecio.Boolean[source]#

Bases: Enum

Boolean flag for C function arguments.

Attribute

Value

Description

FALSE

0

Logical false.

TRUE

1

Logical true.