tecio.TecplotFEMixedZoneReader#

class tecio.TecplotFEMixedZoneReader(zone_index, title, solution_time, strand_id, datapacking, num_nodes, section_shapes, section_num_elements, shared_connectivity)#

Bases: TecplotZoneReader

Read-only handle to one FEMIXED (mixed finite-element) zone.

A FEMIXED zone holds 1 to 16 sections. Every cell in a section has the same shape, and all sections share one spatial dimension (all line, all surface or all volume cells). Cell numbering runs through the sections in order, so cell-centered variables hold num_elements values, the cells of section 0 first. All indices are 0-based.

Parameters:
  • zone_index – 0-based zone index within the dataset.

  • title – Zone title.

  • solution_time – Solution time, 0.0 for static data.

  • strand_id – Strand ID, 0 for static data.

  • datapacking – On-disk value layout.

  • num_nodes – Number of nodes/points.

  • section_shapes – Cell shape of each section.

  • section_num_elements – Number of cells in each section.

  • shared_connectivity – 0-based source zone index if this zone’s connectivity is shared, else None.

Attributes

auxdata

Zone-level auxiliary data.

datapacking

On-disk value layout for this zone.

node_maps

Node connectivity of each section, (section_num_elements, nodes) arrays.

num_elements

Total number of elements/cells over all sections.

num_nodes

Number of nodes/points.

num_sections

Number of sections, 1 to 16.

section_num_elements

Number of cells in each section.

section_shapes

Cell shape of each section.

shared_connectivity

0-based source zone index if connectivity is shared, else None.

solution_time

Solution time, 0.0 for static data.

strand_id

Strand ID, 0 for static data.

title

Zone title string.

variables

Variables in this zone, by 0-based index or exact name.

zone_index

0-based zone index within the dataset.

zone_type

The zone's ZoneType.

Methods

get_array(key)

Return variable data array(s) for this zone.

is_enabled()

True unless the zone reports itself disabled.

property node_maps#

Node connectivity of each section, (section_num_elements, nodes) arrays.

The arrays are views of one allocation, loaded on first access. Node indices are 0-based. Passing section_shapes and node_maps to write_femixed_zone() writes the zone back.

property num_elements#

Total number of elements/cells over all sections.

property num_nodes#

Number of nodes/points.

property num_sections#

Number of sections, 1 to 16.

property section_num_elements#

Number of cells in each section.

property section_shapes#

Cell shape of each section.

property shared_connectivity#

0-based source zone index if connectivity is shared, else None.