tecio.libtecio#
Python bindings for the TecIO C library.
Provides enum types for Tecplot constants, ctypes bindings for both the
new SZL API (tec_*) and the classic PLT API (tec*142), and
Python wrapper functions for each C entry point.
The libtecio module provides the direct interface with the
TecIO C library functions. Each are wrapped in an equivalent Python
function which also handles conversions from Python data objects to C
compatible objects, and vis versa for the read functions.
These are the basis of the tecio Python package, and each
submodule provides a higher level interface with these
functions. However, the the Python wrapper functions in this submodule
are kept in the public API to allow users directly call the TecIO
library if desired.
Enums#
See Enums for full documentation.
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. |
Exceptions#
- class tecio.libtecio.TecioError[source]#
Bases:
RuntimeErrorException for TecIO C library errors.
- __init__(*args, **kwargs)#
- classmethod __new__(*args, **kwargs)#
SZL Read Functions#
See SZL Read Functions for full documentation.
Open an SZL file for reading. |
|
Close an SZL file reader handle and release its resources. |
|
Get the file type for an opened SZL file. |
|
Read the dataset title string. |
|
Query the number of variables in the dataset. |
|
Query the number of zones in the dataset. |
|
Get zone dimensions (ORDERED) or node/element counts (FE). |
|
Read the title for a zone. |
|
Query the zone type. |
|
Check whether a zone is enabled. |
|
Read the solution time for a zone. |
|
Get the strand ID for a zone. |
|
Check whether a zone's node-map uses 64-bit indices. |
|
Read a 64-bit node map for an FE zone. |
|
Read a 32-bit node map for an FE zone. |
|
Get a variable name by index. |
|
Check whether a variable is enabled. |
|
Get the data type for a variable in a zone. |
|
Get the value location for a zone variable. |
|
Check whether a zone variable is passive. |
|
Get the shared zone index for a variable. |
|
Query the number of values for a zone variable. |
|
Read float32 values for a zone variable. |
|
Read float64 values for a zone variable. |
|
Read int32 values for a zone variable. |
|
Read int16 values for a zone variable. |
|
Read uint8 values for a zone variable. |
|
Get the number of dataset-level auxiliary data items. |
|
Read a dataset-level auxiliary data item. |
|
Get the number of auxiliary data items for a variable. |
|
Read a variable-level auxiliary data item. |
|
Get the number of auxiliary data items for a zone. |
|
Read a zone-level auxiliary data item. |
SZL Write Functions#
See SZL Write Functions for full documentation.
Open a writer handle for creating SZL files. |
|
Close a writer handle and finalise the output file. |
|
Create an ordered IJK zone for writing. |
|
Create a finite-element zone for writing. |
|
Set time/strand metadata for a zone. |
|
Write float64 values for a zone variable. |
|
Write float32 values for a zone variable. |
|
Write int32 values for a zone variable. |
|
Write int16 values for a zone variable. |
|
Write uint8 values for a zone variable. |
|
Write 32-bit node map entries for an FE zone. |
|
Write 64-bit node map entries for an FE zone. |
|
Write 32-bit face-neighbor connections for an FE zone. |
|
Write 64-bit face-neighbor connections for an FE zone. |
|
Add a dataset-level auxiliary data record. |
|
Add a variable-level auxiliary data record. |
|
Add a zone-level auxiliary data record. |
Classic API Functions#
See Classic API Functions for full documentation.
Initialise a Tecplot data file (classic API). |
|
Finalise and close the active Tecplot data file. |
|
Flush data to disk, optionally retaining zones in memory (SZL only). |
|
Get the file handle for the current output file. |
|
Set foreign byte order for output. |
|
Create a new zone in the active file (classic API). |
|
Create a polygonal or polyhedral zone (classic API). |
|
Create a mixed finite-element zone (classic API). |
|
Write field data to the current zone (classic API). |
|
Write node connectivity for an FE zone (classic API). |
|
Write face-neighbor connections (classic API). |
|
Write face data for polygonal/polyhedral zones (classic API). |
|
Write boundary connections for poly zones (classic API). |
|
Add dataset-level auxiliary data (classic API). |
|
Add variable-level auxiliary data (classic API). |
|
Add zone-level auxiliary data (classic API). |
|
Write a user-defined data record (classic API). |