0.4.2

On this page

0.4.2#

Added FEMIXED support and unstructured data utilities.

Added#

  • Node-map utilities for classic finite-element zones, importable from tecio:

    • classify_cells, shape_counts and degenerate_edges detect cells written as FEBRICK or FEQUADRILATERAL with repeated node indices (tetrahedra, pyramids, prisms, triangles).

    • collapsed_zone_type and collapse_cells collapse such cells to their natural zone type (FEBRICK to FETETRAHEDRON, FEQUADRILATERAL to FETRIANGLE) and keep the cell handedness. expand_cells goes the other way.

    • split_cells_by_shape separates padded cells in a FEBRICK or FEQUADRILATERAL zone by shape for writing them as a FEMIXED zone. Pyramids and prisms keep the handedness of the brick they came from.

    • cell_face_neighbors finds the cell across every face of every cell from the node map alone, for triangles, quadrilaterals, tetrahedra and bricks. It returns -1 for boundary faces.

    • match_nodes and match_cells find how the nodes and cells of a zone are ordered relative to a reference zone with the same grid since multiple cell orderings could be used for identical unstructured meshes. They return the orders that put nodal and cell-centered variables in the reference order, or None if the zones do not match.

  • TecplotPolyZoneReader.element_faces() and element_nodes() return the faces and the distinct nodes of every element of a polygon or polyhedron zone as (offsets, flat_array), built from the face left and right elements.

  • tecelretyp console script retypes FE zones whose cells are all upcast with repeated nodes, which gives a more compact node map and more descriptive zone metadata.

  • FEMIXED (mixed finite-element) zones suppport (read and write) for SZPLT files.

Changed#

  • tecmerge --merge-grid now compares the grid variables and, for classic FE zones, the connectivity of zones before sharing. A zone with the same grid stored in another node and cell order (e.g. the same mesh in PLT and SZL) shares the grid and has its nodal and cell-centered variables reordered to match. Zones not matching the connectivity in any order retain their grid.

Full changelog: v0.4.1…v0.4.2