Data
====

..  contents::
    :local:
    :depth: 2

.. automodule:: tecplot.data

Loading Data
------------

.. autofunction:: tecplot.data.load_tecplot
.. autofunction:: tecplot.data.load_cgns
.. autofunction:: tecplot.data.load_fluent
.. autofunction:: tecplot.data.load_plot3d

Saving Data
-----------

.. autofunction:: tecplot.data.save_tecplot_binary
.. autofunction:: tecplot.data.save_tecplot_ascii

Data Queries
------------

.. autofunction:: tecplot.data.query.probe_at_position

Data Operations
---------------

.. autofunction:: tecplot.data.operate.Range
.. autofunction:: tecplot.data.operate.execute_equation

.. _data_access:

Data Access
-----------

..  contents::
    :local:
    :depth: 2

.. py:currentmodule:: tecplot.data

Dataset
^^^^^^^

.. autoclass:: Dataset

    **Attributes**

    .. autosummary::
        :nosignatures:

        VariablesNamedTuple
        aux_data
        num_variables
        num_zones
        title

    **Methods**

    .. autosummary::

        add_fe_zone
        add_ordered_zone
        add_poly_zone
        add_variable
        add_zone
        copy_zones
        delete_variables
        delete_zones
        variable
        variables
        zone
        zones

.. autoattribute:: Dataset.VariablesNamedTuple
.. automethod:: Dataset.add_fe_zone
.. automethod:: Dataset.add_ordered_zone
.. automethod:: Dataset.add_poly_zone
.. automethod:: Dataset.add_variable
.. automethod:: Dataset.add_zone
.. autoattribute:: Dataset.aux_data
.. automethod:: Dataset.copy_zones
.. automethod:: Dataset.delete_variables
.. automethod:: Dataset.delete_zones
.. autoattribute:: Dataset.num_variables
.. autoattribute:: Dataset.num_zones
.. autoattribute:: Dataset.title
.. automethod:: Dataset.variable
.. automethod:: Dataset.variables
.. automethod:: Dataset.zone
.. automethod:: Dataset.zones

.. py:currentmodule:: tecplot.data

Variable
^^^^^^^^

.. autoclass:: Variable

    **Attributes**

    .. autosummary::
        :nosignatures:

        aux_data
        index
        name
        num_zones

    **Methods**

    .. autosummary::

        values

.. autoattribute:: Variable.aux_data
.. autoattribute:: Variable.index
.. autoattribute:: Variable.name
.. autoattribute:: Variable.num_zones
.. automethod:: Variable.values

Zones
^^^^^

..  contents::
    :local:
    :depth: 1

.. automodule:: tecplot.data.zone

.. py:currentmodule:: tecplot.data

OrderedZone
+++++++++++

.. autoclass:: OrderedZone

    **Attributes**

    .. autosummary::
        :nosignatures:

        aux_data
        dimensions
        face_neighbors
        index
        name
        num_elements
        num_faces
        num_faces_per_element
        num_points
        num_points_per_element
        num_variables
        rank
        solution_time
        strand
        zone_type

    **Methods**

    .. autosummary::

        copy
        values

.. autoattribute:: OrderedZone.aux_data
.. automethod:: OrderedZone.copy
.. autoattribute:: OrderedZone.dimensions
.. autoattribute:: OrderedZone.face_neighbors
.. autoattribute:: OrderedZone.index
.. autoattribute:: OrderedZone.name
.. autoattribute:: OrderedZone.num_elements
.. autoattribute:: OrderedZone.num_faces
.. autoattribute:: OrderedZone.num_faces_per_element
.. autoattribute:: OrderedZone.num_points
.. autoattribute:: OrderedZone.num_points_per_element
.. autoattribute:: OrderedZone.num_variables
.. autoattribute:: OrderedZone.rank
.. autoattribute:: OrderedZone.solution_time
.. autoattribute:: OrderedZone.strand
.. automethod:: OrderedZone.values
.. autoattribute:: OrderedZone.zone_type

.. py:currentmodule:: tecplot.data

ClassicFEZone
+++++++++++++

.. autoclass:: ClassicFEZone

    **Attributes**

    .. autosummary::
        :nosignatures:

        aux_data
        face_neighbors
        index
        name
        nodemap
        num_elements
        num_faces
        num_faces_per_element
        num_points
        num_points_per_element
        num_variables
        rank
        solution_time
        strand
        zone_type

    **Methods**

    .. autosummary::

        copy
        values

.. autoattribute:: ClassicFEZone.aux_data
.. automethod:: ClassicFEZone.copy
.. autoattribute:: ClassicFEZone.face_neighbors
.. autoattribute:: ClassicFEZone.index
.. autoattribute:: ClassicFEZone.name
.. autoattribute:: ClassicFEZone.nodemap
.. autoattribute:: ClassicFEZone.num_elements
.. autoattribute:: ClassicFEZone.num_faces
.. autoattribute:: ClassicFEZone.num_faces_per_element
.. autoattribute:: ClassicFEZone.num_points
.. autoattribute:: ClassicFEZone.num_points_per_element
.. autoattribute:: ClassicFEZone.num_variables
.. autoattribute:: ClassicFEZone.rank
.. autoattribute:: ClassicFEZone.solution_time
.. autoattribute:: ClassicFEZone.strand
.. automethod:: ClassicFEZone.values
.. autoattribute:: ClassicFEZone.zone_type

.. py:currentmodule:: tecplot.data

PolyFEZone
++++++++++

.. autoclass:: PolyFEZone

    **Attributes**

    .. autosummary::
        :nosignatures:

        aux_data
        facemap
        index
        name
        num_elements
        num_faces
        num_points
        num_variables
        rank
        solution_time
        strand
        zone_type

    **Methods**

    .. autosummary::

        copy
        values

.. autoattribute:: PolyFEZone.aux_data
.. automethod:: PolyFEZone.copy
.. autoattribute:: PolyFEZone.facemap
.. autoattribute:: PolyFEZone.index
.. autoattribute:: PolyFEZone.name
.. autoattribute:: PolyFEZone.num_elements
.. autoattribute:: PolyFEZone.num_faces
.. autoattribute:: PolyFEZone.num_points
.. autoattribute:: PolyFEZone.num_variables
.. autoattribute:: PolyFEZone.rank
.. autoattribute:: PolyFEZone.solution_time
.. autoattribute:: PolyFEZone.strand
.. automethod:: PolyFEZone.values
.. autoattribute:: PolyFEZone.zone_type

.. py:currentmodule:: tecplot.data

Array
^^^^^

.. autoclass:: Array

    **Attributes**

    .. autosummary::
        :nosignatures:

        c_type
        data_type
        location
        max
        min
        minmax
        shape
        size

    **Methods**

    .. autosummary::

        as_numpy_array
        copy

.. automethod:: Array.as_numpy_array
.. autoattribute:: Array.c_type
.. automethod:: Array.copy
.. autoattribute:: Array.data_type
.. autoattribute:: Array.location
.. autoattribute:: Array.max
.. autoattribute:: Array.min
.. autoattribute:: Array.minmax
.. autoattribute:: Array.shape
.. autoattribute:: Array.size

.. py:currentmodule:: tecplot.data

Nodemap
^^^^^^^

.. autoclass:: Nodemap

    **Attributes**

    .. autosummary::
        :nosignatures:

        array
        c_type
        num_points_per_element
        shape
        size

    **Methods**

    .. autosummary::

        assignment
        element
        num_elements

.. autoattribute:: Nodemap.array
.. automethod:: Nodemap.assignment
.. autoattribute:: Nodemap.c_type
.. automethod:: Nodemap.element
.. automethod:: Nodemap.num_elements
.. autoattribute:: Nodemap.num_points_per_element
.. autoattribute:: Nodemap.shape
.. autoattribute:: Nodemap.size

.. py:currentmodule:: tecplot.data

Facemap
^^^^^^^

.. autoclass:: Facemap

    **Attributes**

    .. autosummary::
        :nosignatures:

        element_c_type
        node_c_type
        num_unique_nodes

    **Methods**

    .. autosummary::

        alloc
        assignment
        boundary_connection
        face
        left_element
        node
        num_boundary_connections
        num_faces
        num_nodes
        right_element
        set_boundary_connections
        set_elementmap
        set_elements
        set_mapping
        set_nodes

.. automethod:: Facemap.alloc
.. automethod:: Facemap.assignment
.. automethod:: Facemap.boundary_connection
.. autoattribute:: Facemap.element_c_type
.. automethod:: Facemap.face
.. automethod:: Facemap.left_element
.. automethod:: Facemap.node
.. autoattribute:: Facemap.node_c_type
.. automethod:: Facemap.num_boundary_connections
.. automethod:: Facemap.num_faces
.. automethod:: Facemap.num_nodes
.. autoattribute:: Facemap.num_unique_nodes
.. automethod:: Facemap.right_element
.. automethod:: Facemap.set_boundary_connections
.. automethod:: Facemap.set_elementmap
.. automethod:: Facemap.set_elements
.. automethod:: Facemap.set_mapping
.. automethod:: Facemap.set_nodes

.. py:currentmodule:: tecplot.data

FaceNeighbors
^^^^^^^^^^^^^

.. autoclass:: FaceNeighbors

    **Attributes**

    .. autosummary::
        :nosignatures:

        c_type
        mode

    **Methods**

    .. autosummary::

        add_local_neighbors
        add_neighbors
        assignment
        is_obscured
        neighbors
        set_neighbors

.. automethod:: FaceNeighbors.add_local_neighbors
.. automethod:: FaceNeighbors.add_neighbors
.. automethod:: FaceNeighbors.assignment
.. autoattribute:: FaceNeighbors.c_type
.. automethod:: FaceNeighbors.is_obscured
.. autoattribute:: FaceNeighbors.mode
.. automethod:: FaceNeighbors.neighbors
.. automethod:: FaceNeighbors.set_neighbors

Auxiliary Data
--------------

.. py:currentmodule:: tecplot.session

AuxData
^^^^^^^

.. autoclass:: AuxData

    **Methods**

    .. autosummary::

        asdict
        assignment
        index
        items
        keys
        name
        values

.. automethod:: AuxData.asdict
.. automethod:: AuxData.assignment
.. automethod:: AuxData.index
.. automethod:: AuxData.items
.. automethod:: AuxData.keys
.. automethod:: AuxData.name
.. automethod:: AuxData.values
