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_countsanddegenerate_edgesdetect cells written asFEBRICKorFEQUADRILATERALwith repeated node indices (tetrahedra, pyramids, prisms, triangles).collapsed_zone_typeandcollapse_cellscollapse such cells to their natural zone type (FEBRICKtoFETETRAHEDRON,FEQUADRILATERALtoFETRIANGLE) and keep the cell handedness.expand_cellsgoes the other way.split_cells_by_shapeseparates padded cells in aFEBRICKorFEQUADRILATERALzone by shape for writing them as aFEMIXEDzone. Pyramids and prisms keep the handedness of the brick they came from.cell_face_neighborsfinds the cell across every face of every cell from the node map alone, for triangles, quadrilaterals, tetrahedra and bricks. It returns-1for boundary faces.match_nodesandmatch_cellsfind 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, orNoneif the zones do not match.
TecplotPolyZoneReader.element_faces()andelement_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.tecelretypconsole 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-gridnow 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